Skip to content

Commit 98a9081

Browse files
committed
fix(build): copy readme before publishing
1 parent bea43ee commit 98a9081

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/react-netlify-forms/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,8 @@
2828
},
2929
"scripts": {
3030
"build": "bun build ./src/index.js --outdir ./dist --production --minify --sourcemap=linked --external react --jsx=react-jsx",
31-
"start": "bun run build --watch"
31+
"start": "bun run build --watch",
32+
"prepublishOnly": "bunx cp ../../README.md ./dist/README.md"
3233
},
3334
"peerDependencies": {
3435
"react": "^16.8.0 || ^17.0.2 || ^18.0.0 || ^19.0.0"

0 commit comments

Comments
 (0)