|
16 | 16 | "native.build:debug": "node-gyp configure --debug && node-gyp build --debug", |
17 | 17 | "native.prebuild": "prebuildify --napi -t 12.0.0 -t [email protected] -t [email protected] --strip", |
18 | 18 | "native.prebuild-ia32": "prebuildify --napi --arch=ia32 -t 12.0.0 -t [email protected] -t [email protected] --strip", |
19 | | - "js.clean": "shx rm -rf dist dist-test .rollup.cache .parcel-cache **/tsconfig.tsbuildinfo ./index.js ./index.js.map ./index.d.ts", |
| 19 | + "js.clean": "shx rm -rf dist dist-test .rollup.cache .parcel-cache **/tsconfig.tsbuildinfo ./index.* ./*.d.ts", |
20 | 20 | "js.dev": "npm run js.types && cross-env NODE_ENV=development rollup -c -w", |
21 | 21 | "js.build": "npm run js.types && cross-env NODE_ENV=production rollup -c", |
22 | | - "js.types": "(tsc -p ./src/binding/tsconfig.json --emitDeclarationOnly) && (shx mv ./src/binding/node.d.ts index.d.ts)", |
| 22 | + "js.types": "tsc -p ./src/binding/tsconfig.json --emitDeclarationOnly && shx mv ./src/binding/*.d.ts .", |
23 | 23 | "clean": "npm run native.clean && npm run js.clean", |
24 | 24 | "install": "node-gyp-build", |
25 | 25 | "build": "npm run native.build && npm run js.build", |
|
31 | 31 | "benchmark": "npm run benchmark.small && npm run benchmark.regular && npm run benchmark.large && npm run benchmark.tree", |
32 | 32 | "examples.cpp": "cmake -S . -B ./build && cmake --build ./build --config Debug", |
33 | 33 | "bump": "ncu -u --greatest", |
34 | | - "prepare": "npm run build" |
| 34 | + "prepare": "npm run js.clean && npm run build" |
35 | 35 | }, |
36 | 36 | "prettier": "prettier-config-atomic", |
37 | 37 | "files": [ |
38 | 38 | "src", |
39 | 39 | "prebuilds", |
40 | | - "index.js", |
41 | | - "index.d.ts", |
42 | | - "index.js.map", |
| 40 | + "index.*", |
| 41 | + "*.d.ts", |
43 | 42 | "binding.gyp" |
44 | 43 | ], |
45 | 44 | "gypfile": true, |
|
0 commit comments