Closed sebj54 closed 2 months ago
Thanks for this @sebj54 would you like to try a PR here? https://github.com/NativeScript/plugin-tools Otherwise we'll try to get a patch for this in next release cycle.
Yes sure! Do you know which file is causing the issue?
Otherwise I'll try to find out 😅
I think it may just be inadvertent change in your workspace locally.
the command does look wrong in that output:
nx g @myscope/plugin-tools:focus-packages
It should be:
nx g @nativescript/plugin-tools:focus-packages
If you find yours differs, just update workspace-scripts.js to match that.
Thanks for your answer but I think I misspoke. I understand what is causing the focus.reset
script to fail but my question should have been:
Do you know what script is actually replacing the scope?
Don't worry though, I'll figure it out (and I already think it is this line: https://github.com/NativeScript/plugin-tools/blob/9667c86f3e74893403e38508d54e2b19575dccb2/packages/plugin-tools/src/generators/config/index.ts#L105)
When changing npm scope by running
npm run config
, it seems that a global search + replace is made but there is an incorrectly replaced line: https://github.com/NativeScript/plugin-seed/blob/ecac7537937edf86e9d178e5ade2beb263fb382f/tools/workspace-scripts.js#L75The line is replaced like this:
And that breaks the reset command 🤷