Bug: running caz removes local `node_modules/.bin/caz` entry
Prerequisites:
- Have
cazas a top leveldevDependencyin my workspaces based monorepo - Have a local template that I want to use
- run
npm exec -- caz .templates/my-template packages/my-new-package - See the weird and slow "Installing template dependencies..." text
- Get the first prompt
- Cancel
- Try step 3 again, failure
Expected behaviour:
- It shouldn't install anything
- It shouldn't remove any existing dependencies
I need to confirm the issue you mentioned first.
Can you provide a replicated repo. @Nokel81
这是自动回信息! 您好!首先感谢你的来信!如果不出意外最短在一个月内会得到我的回复,如果没有我的回复,说明我还需要更多的时间!
You can add a package.json to the template directory to prevent this issue from occurring. I will correct this issue later
I ran into the same issue. In my case the jsdoc package, which is a dev dependency, was removed. After running npm i, all my dependencies are restored. But how is this possible? Does caz somehow manipulate the node_modules folder?
这是自动回信息! 您好!首先感谢你的来信!如果不出意外最短在一个月内会得到我的回复,如果没有我的回复,说明我还需要更多的时间!