Skip to content

Commit 4df3752

Browse files
authored
fix: The readme file is not being published in package deployments (#523)
1 parent 8fa069e commit 4df3752

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
"homepage": "https://github.com/P5-wrapper/react",
77
"license": "MIT",
88
"files": [
9+
"README.md",
910
"dist/component/*"
1011
],
1112
"types": "./dist/component/main.d.ts",
@@ -28,6 +29,8 @@
2829
"integrate": "pnpm format:check && pnpm lint && pnpm test && pnpm build",
2930
"lint": "eslint --config config/eslint/eslint.config.ts",
3031
"lint:fix": "pnpm lint --fix",
32+
"prepublishOnly": "cp .github/README.md ./README.md",
33+
"postpublish": "rm ./README.md",
3134
"prettier": "prettier --config config/prettier/prettier.json --ignore-path .gitignore",
3235
"test": "vitest run --silent --config config/vite/vite.config.ts",
3336
"test:coverage": "vitest run --silent --coverage --config config/vite/vite.config.ts",

0 commit comments

Comments
 (0)