@@ -80,7 +80,7 @@ const createProject = async (projectName, useTS, customPlugins = {}) => {
80
80
fs . ensureDirSync ( projectPath ( 'node_modules/vue' ) )
81
81
fs . writeFileSync (
82
82
projectPath ( 'node_modules/vue/package.json' ) ,
83
- JSON . stringify ( vuePkg )
83
+ JSON . stringify ( vuePkg , null , 2 )
84
84
)
85
85
86
86
// Add a fake package that should be an external
@@ -90,7 +90,7 @@ const createProject = async (projectName, useTS, customPlugins = {}) => {
90
90
fs . ensureDirSync ( projectPath ( 'node_modules/mockExternal' ) )
91
91
fs . writeFileSync (
92
92
projectPath ( 'node_modules/mockExternal/package.json' ) ,
93
- JSON . stringify ( externalPkg )
93
+ JSON . stringify ( externalPkg , null , 2 )
94
94
)
95
95
// Add mockExternal to app's package.json so that it is detected as external
96
96
const appPkg = JSON . parse (
@@ -99,7 +99,7 @@ const createProject = async (projectName, useTS, customPlugins = {}) => {
99
99
appPkg . dependencies . mockExternal = 'mockExternal'
100
100
// Enable nodeIntegration
101
101
appPkg . vue . pluginOptions = { electronBuilder : { nodeIntegration : true } }
102
- fs . writeFileSync ( projectPath ( 'package.json' ) , JSON . stringify ( appPkg ) )
102
+ fs . writeFileSync ( projectPath ( 'package.json' ) , JSON . stringify ( appPkg , null , 2 ) )
103
103
104
104
return { project, projectName }
105
105
}
0 commit comments