Skip to content

Commit d179c06

Browse files
authored
chore: rename prepack to prepare in package.json (#225)
Otherwise, `npm install && npm test` (aka `npm it`) fails on a clean checkout, and using this package as a git dependency wouldn't work.
1 parent 540470d commit d179c06

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

.github/workflows/unit-tests.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,6 @@ jobs:
2121
run: npm ci
2222
- name: Check
2323
run: npm run check
24-
- name: Build
25-
run: npm run build
2624
- name: Test
2725
run: npm test
2826
- name: Coverage

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@
2121
"main": "lib/index.js",
2222
"exports": {
2323
"require": "./lib/index.js",
24-
"import": "./.esm-wrapper.mjs"
24+
"import": "./.esm-wrapper.mjs",
25+
"types": "./lib/index.d.ts"
2526
},
2627
"types": "./lib/index.d.ts",
2728
"files": [
@@ -39,7 +40,7 @@
3940
"test-time": "ts-node ./test/time-testing.ts",
4041
"build": "npm run compile-ts && gen-esm-wrapper . ./.esm-wrapper.mjs",
4142
"coverage": "nyc report --reporter=text-lcov | coveralls",
42-
"prepack": "npm run build",
43+
"prepare": "npm run build",
4344
"compile-ts": "tsc -p tsconfig.json",
4445
"lint": "eslint \"{src,test,examples,bin}/**/*.ts\"",
4546
"depcheck": "depcheck",

0 commit comments

Comments
 (0)