Skip to content

Commit 948f590

Browse files
committed
fix: update npm publish command and correct postbuild script typo
1 parent 5259e87 commit 948f590

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

.github/workflows/publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,6 @@ jobs:
3535
registry-url: 'https://registry.npmjs.org'
3636

3737
- name: Publish to npm
38-
run: cd dist && npm publish --access public
38+
run: npm publish --access public
3939
env:
4040
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

package.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,16 @@
2828
"require": "./dist/json-formbuilder.cjs.js"
2929
}
3030
},
31+
"files": [
32+
"dist/**/*",
33+
"README.md",
34+
"LICENSE"
35+
],
3136
"scripts": {
3237
"prebuild": "rimraf dist",
3338
"build": "bunx vite build --config vite.config.ts",
3439
"start:dev": "cd playground && bunx vite --host",
35-
"postbuild": "cpr README.md dist/README.md && cpr LICENSE dist/LICENSE && cpr package.json dist/package.json",
40+
"posatbuild": "cpr README.md dist/README.md && cpr LICENSE dist/LICENSE && cpr package.json dist/package.json",
3641
"test": "bun test",
3742
"test:watch": "bun test --watch"
3843
},

0 commit comments

Comments
 (0)