generated from joyqi/typescript-module-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
52 lines (52 loc) · 1.42 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
48
49
50
51
52
{
"name": "dan-api",
"keywords": [],
"author": "namebeta",
"license": "",
"description": "Node.js client library for dan.com api.",
"repository": {
"type": "git",
"url": "git+https://github.com/namebeta/node-dan-api.git"
},
"homepage": "https://github.com/namebeta/node-dan-api#readme",
"bugs": {
"url": "https://github.com/namebeta/node-dan-api/issues"
},
"version": "0.0.1",
"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/mocha": "latest",
"@types/node": "^18.11.11",
"assert": "latest",
"mocha": "latest",
"ts-node": "latest",
"tsc-esm-fix": "latest",
"typescript": "latest"
},
"engines": {
"node": ">=18.0.0",
"pnpm": ">=7.0.0"
},
"dependencies": {
"axios": "1.1.3"
}
}