Skip to content

Commit a4fb0b6

Browse files
committed
fix(scripts): adjust migration
closes #74
1 parent edb942e commit a4fb0b6

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@nstudio/schematics",
3-
"version": "7.2.3",
3+
"version": "7.2.4",
44
"description": "Cross-platform (xplat) tools for Nx workspaces.",
55
"readmeFilename": "README.md",
66
"scripts": {

src/migrations/update-7-0-1/update-7-0-1.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ function updateNativeScriptApps(tree: Tree, context: SchematicContext) {
2020
const mainPath = join(cwd, 'node_modules/@nstudio/schematics/src/app.nativescript/_files/app/main.ts');
2121
// console.log('webpackConfigPath:', webpackConfigPath);
2222
let mainFile = fs.readFileSync(mainPath, 'UTF-8');
23-
mainFile = mainFile.replace('<%= npmScope %>', npmScope);
23+
mainFile = mainFile.replace('<% if (routing || sample) { %>', '').replace('<%= npmScope %>', npmScope).replace('<% } %>', '');
2424

2525
const hmrNavigationPath = join(cwd, 'node_modules/@nstudio/schematics/src/xplat/_nativescript_files/utils/livesync-navigation.ts');
2626
let hmrNavigation = fs.readFileSync(hmrNavigationPath, 'UTF-8');

0 commit comments

Comments
 (0)