Skip to content

Commit

Permalink
fix(scripts): adjust migration
Browse files Browse the repository at this point in the history
closes #74
  • Loading branch information
NathanWalker committed Jan 24, 2019
1 parent edb942e commit a4fb0b6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@nstudio/schematics",
"version": "7.2.3",
"version": "7.2.4",
"description": "Cross-platform (xplat) tools for Nx workspaces.",
"readmeFilename": "README.md",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion src/migrations/update-7-0-1/update-7-0-1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ function updateNativeScriptApps(tree: Tree, context: SchematicContext) {
const mainPath = join(cwd, 'node_modules/@nstudio/schematics/src/app.nativescript/_files/app/main.ts');
// console.log('webpackConfigPath:', webpackConfigPath);
let mainFile = fs.readFileSync(mainPath, 'UTF-8');
mainFile = mainFile.replace('<%= npmScope %>', npmScope);
mainFile = mainFile.replace('<% if (routing || sample) { %>', '').replace('<%= npmScope %>', npmScope).replace('<% } %>', '');

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

0 comments on commit a4fb0b6

Please sign in to comment.