You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
remove-package tool doesn't work off current plugin-seed #8
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 /app with 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)
Actually @pekevski i like your suggested fix better if you want to PR that? If you don’t have time no worries - I may revert the other tomorrow as I think your suggestion would cover more and be simpler.
Activity
pekevski commentedon Sep 15, 2021
Looks like #7 tries to address the issue, however I think checking for existence covers a wider range of possibilities
NathanWalker commentedon Sep 15, 2021
@pekevski thanks for ping on this. I’m going to work on getting updates out by tomorrow afternoon on this.
NathanWalker commentedon Sep 15, 2021
Actually @pekevski i like your suggested fix better if you want to PR that? If you don’t have time no worries - I may revert the other tomorrow as I think your suggestion would cover more and be simpler.
pekevski commentedon Sep 15, 2021
Sure ill quickly do it now for you
fix: remove-package from demo flavours used
fix: remove-package from demo flavours used (#9)