Skip to content

Commit

Permalink
Merge pull request #147 from isaacplmann/patch-1
Browse files Browse the repository at this point in the history
Fix path in package.json script
  • Loading branch information
manfredsteyer authored Dec 23, 2020
2 parents 36fbe52 + 1016eab commit 7d8eb80
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/schematics/externals/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -137,10 +137,10 @@ function updateScripts(path: string, config: any, tree: Tree, _options: any, _co

// Heuristic for default project
if (!project.root) {
config.scripts['build:externals'] = `ng build --extra-webpack-config ${path}webpack.externals.js --prod ${additionalFlags}`;
config.scripts['build:externals'] = `ng build --extra-webpack-config ${path}/webpack.externals.js --prod ${additionalFlags}`;
}

if (_options.project) {
config.scripts[`build:${_options.project}:externals`] = `ng build --extra-webpack-config ${path}webpack.externals.js --prod --project ${_options.project} ${additionalFlags}`;
config.scripts[`build:${_options.project}:externals`] = `ng build --extra-webpack-config ${path}/webpack.externals.js --prod --project ${_options.project} ${additionalFlags}`;
}
}
}

0 comments on commit 7d8eb80

Please sign in to comment.