-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
47 lines (45 loc) · 1.16 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
{
"name": "typescript-module-template",
"keywords": [],
"author": "",
"license": "",
"description": "",
"repository": {
"type": "git",
"url": ""
},
"homepage": "https://",
"bugs": {
"url": "https://"
},
"version": "latest",
"exports": {
".": {
"types": "./lib/types/index.d.ts",
"import": "./lib/mjs/index.js",
"require": "./lib/cjs/index.js"
},
"./package.json": "./package.json"
},
"main": "lib/cjs/index.js",
"module": "lib/mjs/index.js",
"types": "lib/types/index.d.ts",
"scripts": {
"clear": "rm -rf ./lib",
"patch:esm-js": "npx tsc-esm-fix --tsconfig=tsconfig.mjs.json",
"patch:esm-type": "echo '{ \"type\": \"module\" }' >> lib/mjs/package.json",
"build:esm": "npx tsc -p tsconfig.mjs.json && npm run patch:esm-js && npm run patch:esm-type",
"build:cjs": "npx tsc",
"build": "npm run clear && npm run build:esm && npm run build:cjs",
"test": "npx mocha"
},
"devDependencies": {
"@types/node": "latest",
"@types/mocha": "latest",
"assert": "latest",
"mocha": "latest",
"ts-node": "latest",
"tsc-esm-fix": "latest",
"typescript": "latest"
}
}