fix: fix packages/vue/package.json format error when execute pnpm dev or pnpm build:ui command (#387)

This commit is contained in:
Kagol 2023-08-16 11:25:00 +08:00 committed by GitHub
parent 159fd4fc47
commit c1d78fda3b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -90,7 +90,7 @@ const createEntry = (mode) => {
if (mode === 'all') { if (mode === 'all') {
// 重写package.json, 并格式化 // 重写package.json, 并格式化
PKGContent.dependencies = PKGDeps PKGContent.dependencies = PKGDeps
fs.writeFileSync(PKG_PATH, JSON.stringify(PKGContent, null, '\t')) fs.writeFileSync(PKG_PATH, JSON.stringify(PKGContent, null, 2))
} }
const template = handlebarsRender({ const template = handlebarsRender({