Skip to content

Commit

Permalink
fix(projects): fix create-soybean templates
Browse files Browse the repository at this point in the history
  • Loading branch information
honghuangdc committed Dec 7, 2023
1 parent 94d3b5d commit 1731dae
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 3 deletions.
1 change: 1 addition & 0 deletions packages/create-soybean/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ const TEMPLATES = templates.map(t => t.type);

const renameFiles: Record<string, string | undefined> = {
_editorconfig: '.editorconfig',
_gitattributes: '.gitattributes',
_gitignore: '.gitignore',
_npmrc: '.npmrc',
_prettierrc: '.prettierrc'
Expand Down
13 changes: 11 additions & 2 deletions packages/create-soybean/template-ts-lib/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,10 @@
"commit": "soy git-commit",
"cleanup": "soy cleanup",
"update-pkg": "soy ncu",
"release-pkg": "soy release",
"publish-pkg": "pnpm publish --access public",
"release": "run-s \"soy release\" build publish-pkg"
"release": "run-s release-pkg build publish-pkg",
"prepare": "simple-git-hooks"
},
"dependencies": {
"cli-progress": "3.12.0",
Expand All @@ -34,7 +36,7 @@
"ofetch": "1.3.3"
},
"devDependencies": {
"@soybeanjs/cli": "0.8.0",
"@soybeanjs/cli": "0.8.2",
"@soybeanjs/eslint-config": "1.0.5",
"@types/cli-progress": "3.11.5",
"@types/node": "20.10.4",
Expand All @@ -45,5 +47,12 @@
"tsx": "4.6.2",
"typescript": "5.3.3",
"unbuild": "2.0.0"
},
"simple-git-hooks": {
"commit-msg": "pnpm soy git-commit-verify",
"pre-commit": "pnpm typecheck && pnpm lint-staged"
},
"lint-staged": {
"*": "eslint --fix"
}
}
2 changes: 1 addition & 1 deletion packages/create-soybean/template-vue/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"vue-router": "4.2.5"
},
"devDependencies": {
"@soybeanjs/cli": "0.8.0",
"@soybeanjs/cli": "0.8.2",
"@soybeanjs/eslint-config": "1.0.5",
"@types/node": "20.10.4",
"@vitejs/plugin-vue": "4.5.2",
Expand Down

0 comments on commit 1731dae

Please sign in to comment.