build: 发版打包配置

This commit is contained in:
streakingman 2022-09-19 20:28:44 +08:00
parent 6556d118f7
commit 560e9d9d35
3 changed files with 7 additions and 2 deletions

2
.gitignore vendored
View File

@ -8,7 +8,7 @@ pnpm-debug.log*
lerna-debug.log*
node_modules
dist
# dist
dist-ssr
*.local

5
.versionrc.cjs Normal file
View File

@ -0,0 +1,5 @@
module.exports = {
scripts: {
postbump: 'yarn build && git add dist/*',
},
};

View File

@ -9,7 +9,7 @@
"preview": "vite preview",
"prepare": "husky install",
"release:first": "standard-version -- --first-release",
"release": "standard-version"
"release": "standard-version --commit-all"
},
"dependencies": {
"react": "^18.2.0",