Skip to content

Commit f99bfad

Browse files
azuclaude
andcommitted
fix: replace prepublish with prepare script for pnpm compatibility
- Remove deprecated prepublish script - Add build command to prepare script to ensure lib directory exists before testing - Fixes CI test failure where example directory couldn't find built files 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
1 parent c06ebd6 commit f99bfad

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,11 @@
2626
"scripts": {
2727
"build": "textlint-scripts build",
2828
"watch": "textlint-scripts build --watch",
29-
"prepublish": "npm run --if-present build",
3029
"pretest": "node tool/create-fixtures.js",
3130
"test": "textlint-scripts test && npm run test:textlint",
3231
"test:textlint": "(cd example && pnpm install && npm test)",
3332
"format": "prettier --write \"**/*.{js,jsx,ts,tsx,css}\"",
34-
"prepare": "git config --local core.hooksPath .githooks"
33+
"prepare": "git config --local core.hooksPath .githooks && npm run --if-present build"
3534
},
3635
"keywords": [
3736
"textlint",

0 commit comments

Comments
 (0)