Skip to content

Commit 2d69b4f

Browse files
committed
chore: Separate prepare and build scripts
It appears that executing prepare before publish fails, although it succeeded before install.
1 parent a3de000 commit 2d69b4f

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

.github/workflows/ci.yml

+2
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ jobs:
2121
version: latest
2222
run_install: |
2323
- args: [--frozen-lockfile, --no-verify-store-integrity]
24+
- name: Build
25+
run: npm run build
2426
- name: Test
2527
run: npm test
2628
- name: Coverage

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
"node": ">= 14"
4040
},
4141
"scripts": {
42-
"prepare": "npm run compile:jsonlint && rollup -c && npm run minify && npm run compile:tests",
42+
"build": "npm run compile:jsonlint && rollup -c && npm run minify && npm run compile:tests",
4343
"compile:jsonlint": "cat.js src/prefix.js.txt src/unicode.js src/custom-parser.js src/pointer.js src/native-parser.js src/configurable-parser.js src/suffix.js.txt > lib/jsonlint.js",
4444
"minify": "esbuild --minify --sourcemap --outfile=web/jsonlint.min.js lib/jsonlint.js && esbuild --minify --sourcemap --outfile=web/validator.min.js lib/validator.js && esbuild --minify --sourcemap --outfile=web/formatter.min.js lib/formatter.js && esbuild --minify --sourcemap --outfile=web/sorter.min.js lib/sorter.js && esbuild --minify --sourcemap --outfile=web/printer.min.js lib/printer.js && esbuild --minify --sourcemap --outfile=web/ajv.min.js node_modules/ajv6/dist/ajv.bundle.js",
4545
"compile:tests": "tsc --moduleResolution node --module es2022 test/types.test.ts && mv.js test/types.test.js test/types.test.mjs",

0 commit comments

Comments
 (0)