Skip to content

Commit 44e6f3b

Browse files
committed
feat: use HMR by default for newly created projects (aligned with the NativeScript 5.4 templates)
1 parent 300fba5 commit 44e6f3b

File tree

4 files changed

+8
-4
lines changed

4 files changed

+8
-4
lines changed

src/add-ns/_ns-files/nsconfig.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,6 @@
33
"appPath": "<%= sourceDir %>",
44
"nsext": "<%= nsext %>",
55
"webext": "<%= webext %>",
6-
"shared": true
6+
"shared": true,
7+
"useLegacyWorkflow": false
78
}

src/models/nsconfig.d.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,6 @@ export interface NsConfig {
33
appPath: string,
44
nsext: string,
55
webext: string,
6-
shared: boolean
6+
shared: boolean,
7+
useLegacyWorkflow: boolean
78
}

src/ng-new/shared/_files/nsconfig.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,6 @@
33
"appPath": "<%= sourcedir %>",
44
"nsext": ".tns",
55
"webext": "",
6-
"shared": true
6+
"shared": true,
7+
"useLegacyWorkflow": false
78
}

src/utils.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,8 @@ export function createEmptySharedProject(projectName: string, webExtension: stri
180180
'appPath': 'src',
181181
'nsext': '.tns',
182182
'webext': '',
183-
'shared': true
183+
'shared': true,
184+
'useLegacyWorkflow': false
184185
}));
185186

186187
return <any>appTree;

0 commit comments

Comments
 (0)