Skip to content

Commit faa44b0

Browse files
committed
Switch back to running the script with prepare because postinstall will also run when installing the package from npm (#198)
1 parent ca27ed5 commit faa44b0

File tree

3 files changed

+1
-4
lines changed

3 files changed

+1
-4
lines changed

.github/workflows/main.yml

-2
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,6 @@ jobs:
4343

4444
- run: npm run build
4545

46-
- run: npm run postinstall
47-
4846
- run: npm run test-dist
4947

5048
- run: npm run demo

package-lock.json

-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
"demo": "cd demo && tsc && node demo.js",
4242
"lint": "eslint --max-warnings=0 .",
4343
"issue": "cd issue && tsc && node issue.js",
44-
"postinstall": "node npm-postinstall.mjs",
44+
"prepare": "node npm-postinstall.mjs",
4545
"test": "vitest run",
4646
"test-dist": "node tests/dist/test-dist",
4747
"update-index": "cd tools && tsc && node update-index.js ../src"

0 commit comments

Comments
 (0)