Skip to content

Commit

Permalink
fix: remove-package from demo flavours used
Browse files Browse the repository at this point in the history
Only delete the specific package from demo flavours used rather than
depend on a package.json being present.

Closes: NativeScript#8
  • Loading branch information
pekevski committed Sep 15, 2021
1 parent afc17e3 commit 87b6108
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions packages/plugin-tools/src/generators/remove-package/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,11 @@ export default function (tree: Tree, schema: Schema) {

for (const t of getDemoTypes()) {
const demoAppRoot = getDemoAppRoot(t);
removeDemoFiles(tree, t, demoAppRoot);
removeFromDemoIndex(tree, t, demoAppRoot);
updateDemoDependencies(tree, t, demoAppRoot);
if (tree.exists(demoAppRoot)) {
removeDemoFiles(tree, t, demoAppRoot);
removeFromDemoIndex(tree, t, demoAppRoot);
updateDemoDependencies(tree, t, demoAppRoot);
}
}

removeSharedDemoFiles(tree);
Expand Down

0 comments on commit 87b6108

Please sign in to comment.