Skip to content

Commit b4fea69

Browse files
committed
chore: rename scripts
1 parent 7394b9b commit b4fea69

File tree

2 files changed

+17
-17
lines changed

2 files changed

+17
-17
lines changed

.github/workflows/CI.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -63,15 +63,15 @@ jobs:
6363

6464
- name: Prebuildify x64
6565
if: ${{ contains(matrix.node_version, '12') && contains(matrix.node_arch, 'x64') }}
66-
run: npm run native.prebuild
66+
run: npm run prebuild.native
6767

6868
- name: Prebuildify x86
6969
if: ${{ contains(matrix.node_version, '12') && contains(matrix.node_arch, 'x86') }}
70-
run: npm run native.prebuild-ia32
70+
run: npm run prebuild.native.ia32
7171

7272
# - name: Prebuildify arm64
7373
# if: ${{ contains(matrix.node_version, '15') && contains(matrix.node_arch, 'arm64') }}
74-
# run: npm run native.prebuild-arm64
74+
# run: npm run prebuild.native-arm64
7575

7676
- name: Upload artifacts
7777
uses: actions/upload-artifact@v2.0.1
@@ -127,7 +127,7 @@ jobs:
127127
- name: Install dependencies only
128128
run: |
129129
npm install --ignore-scripts
130-
npm run js.build
130+
npm run build.js
131131
132132
- name: Download articats
133133
uses: actions/download-artifact@v2

package.json

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -14,27 +14,27 @@
1414
"test.lint": "eslint .",
1515
"tidy": "clang-tidy src/*.cc src/*.h",
1616
"tidy.fix": "clang-tidy src/*.cc src/*.h --fix --fix-errors",
17-
"native.clean": "shx rm -rf build prebuilds",
18-
"native.build": "node-gyp configure --release && node-gyp build --release",
19-
"native.build:debug": "node-gyp configure --debug && node-gyp build --debug",
20-
"native.prebuild": "prebuildify --napi -t 12.0.0 -t electron@6.0.0 -t electron@9.3.5 --strip --tag-libc",
21-
"native.prebuild-ia32": "prebuildify --napi --arch=ia32 -t 12.0.0 -t electron@6.0.0 -t electron@9.3.5 --strip --tag-libc",
22-
"js.clean": "shx rm -rf dist dist-test .rollup.cache .parcel-cache **/tsconfig.tsbuildinfo ./index.* ./*.d.ts",
23-
"js.dev": "npm run js.types && cross-env NODE_ENV=development parcel watch --target main ./src/binding/index.ts",
24-
"js.build": "npm run js.types && cross-env NODE_ENV=production parcel build --target main ./src/binding/index.ts",
25-
"js.types": "tsc -p ./src/binding/tsconfig.json --emitDeclarationOnly && shx mv ./src/binding/*.d.ts .",
26-
"clean": "npm run native.clean && npm run js.clean",
17+
"clean.native": "shx rm -rf build prebuilds",
18+
"build.native": "node-gyp configure --release && node-gyp build --release",
19+
"build.native.debug": "node-gyp configure --debug && node-gyp build --debug",
20+
"prebuild.native": "prebuildify --napi -t 12.0.0 -t electron@6.0.0 -t electron@9.3.5 --strip --tag-libc",
21+
"prebuild.native.ia32": "prebuildify --napi --arch=ia32 -t 12.0.0 -t electron@6.0.0 -t electron@9.3.5 --strip --tag-libc",
22+
"clean.js": "shx rm -rf dist dist-test .rollup.cache .parcel-cache **/tsconfig.tsbuildinfo ./index.* ./*.d.ts",
23+
"dev.js": "npm run types.js && cross-env NODE_ENV=development parcel watch --target main ./src/binding/index.ts",
24+
"build.js": "npm run types.js && cross-env NODE_ENV=production parcel build --target main ./src/binding/index.ts",
25+
"types.js": "tsc -p ./src/binding/tsconfig.json --emitDeclarationOnly && shx mv ./src/binding/*.d.ts .",
26+
"clean": "npm run clean.native && npm run clean.js",
2727
"install": "node-gyp-build",
28-
"build": "npm run native.build && npm run js.build",
28+
"build": "npm run build.native && npm run build.js",
2929
"test": "shx rm -rf dist-test && shx cp -r test dist-test && coffee --compile dist-test && shx rm -rf dist-test/*.coffee && jasmine dist-test/*-spec.js",
3030
"benchmark.regular": "node benchmark/benchmark.js",
3131
"benchmark.large": "node benchmark/benchmark-large.js",
3232
"benchmark.small": "node benchmark/benchmark-small.js",
3333
"benchmark.tree": "node benchmark/benchmark-tree.js",
3434
"benchmark": "npm run benchmark.small && npm run benchmark.regular && npm run benchmark.large && npm run benchmark.tree",
3535
"examples.cpp": "cmake -S . -B ./build && cmake --build ./build --config Debug",
36-
"bump": "ncu -u --greatest",
37-
"prepare": "npm run js.clean && npm run build"
36+
"bump": "ncu -u && ncu -u /parcel/ --greatest",
37+
"prepare": "npm run clean.js && npm run build"
3838
},
3939
"prettier": "prettier-config-atomic",
4040
"files": [

0 commit comments

Comments
 (0)