Skip to content

Commit 145c812

Browse files
committed
fix: npm pkg fix bin script
1 parent f1eb67c commit 145c812

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ Use `postversion` hook on [semantic-release](https://github.com/semantic-release
2727

2828
{
2929
"scripts": {
30-
"postversion": "npx sync-npm-version-to-jsr && git add ."
30+
"postversion": "npx sync-npm-version-to-jsr && git add jsr.json"
3131
}
3232
}
3333
```

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
"test": "node --test --experimental-strip-types",
3838
"preci": "npm run lint",
3939
"ci": "npm run prepublishOnly && npm run postversion",
40-
"postversion": "npm run prepublishOnly && node dist/bin.js && git add .",
40+
"postversion": "npm run prepublishOnly && node dist/bin.js && git add jsr.json",
4141
"prepublishOnly": "tsc -b --clean && tsc",
4242
"prepare": "husky"
4343
},
@@ -54,7 +54,7 @@
5454
],
5555
"type": "module",
5656
"bin": {
57-
"sync-npm-version-to-jsr": "./dist/bin.js"
57+
"sync-npm-version-to-jsr": "dist/bin.js"
5858
},
5959
"exports": "./dist/index.js",
6060
"types": "./dist/index.d.ts"

0 commit comments

Comments
 (0)