-
-
Notifications
You must be signed in to change notification settings - Fork 3
Closed
Description
Looks like the plugin seed only has demos for plain/ts and angular apps in the /apps directory. So when a developer npm run add's a plugin it will only get added / removed from the following directories:
/apps/demo
/apps/demo-angular
Looks like the remove-package code loops through all flavours of demo without actually checking they exist in the file tree.
Would the appropriate fix be to
- Add all the demo flavours to
/appwith a package.json; or - Add something like:
for (const t of getDemoTypes()) {
const demoAppRoot = getDemoAppRoot(t);
if (tree.exists(demoAppRoot)) {
removeDemoFiles(tree, t, demoAppRoot);
removeFromDemoIndex(tree, t, demoAppRoot);
updateDemoDependencies(tree, demoAppRoot);
}
}
to packages/plugin-tools/src/generators/remove-package/index.ts?
(Happy to make the fix based on the best way forward as well)
Metadata
Metadata
Assignees
Labels
No labels