@@ -255,7 +255,7 @@ module.exports = async (api, options, rootOptions) => {
255
255
writeRootFiles ( api , options , genConfig . dirPathPrefix ) ;
256
256
257
257
// create nsconfig.json in ./ or ./ns-example
258
- nsconfigSetup ( genConfig . dirPathPrefix , api . resolve ( 'nsconfig.json' ) , genConfig . nativeAppPathModifier , genConfig . appResourcesPathModifier ) ;
258
+ nsconfigSetup ( genConfig . dirPathPrefix , api . resolve ( 'nsconfig.json' ) , genConfig . nativeAppPathModifier , genConfig . appResourcesPathModifier , options ) ;
259
259
260
260
// copy over .vue with native.vue files
261
261
if ( options . isNativeOnly ) {
@@ -579,7 +579,7 @@ const gitignoreAdditions = (module.exports.gitignoreAdditions = async (api) => {
579
579
580
580
// setup nsconfig.json file. for new projects it will write to the root of the project
581
581
// and for existing projects it will write it to the ./ns-example directory
582
- const nsconfigSetup = ( module . exports . nsconfigSetup = async ( dirPathPrefix , nsconfigPath , nativeAppPathModifier , appResourcesPathModifier ) => {
582
+ const nsconfigSetup = ( module . exports . nsconfigSetup = async ( dirPathPrefix , nsconfigPath , nativeAppPathModifier , appResourcesPathModifier , options ) => {
583
583
let nsconfigContent = '' ;
584
584
585
585
try {
@@ -595,11 +595,11 @@ const nsconfigSetup = (module.exports.nsconfigSetup = async (dirPathPrefix, nsco
595
595
596
596
nsconfigContent . appPath = nativeAppPathModifier . slice ( 0 , - 1 ) ;
597
597
nsconfigContent . appResourcesPath = appResourcesPathModifier ;
598
-
599
- if ( options . isNewProject ) {
598
+
599
+ if ( options . isNewProject ) {
600
600
nsconfigContent . useLegacyWorkflow = false ;
601
601
}
602
-
602
+
603
603
fs . writeFileSync (
604
604
dirPathPrefix + 'nsconfig.json' ,
605
605
JSON . stringify ( nsconfigContent , null , 2 ) ,
0 commit comments