Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: running caz removes local node_modules/.bin/caz entry #174

Open
Nokel81 opened this issue Nov 9, 2023 · 5 comments
Open

Bug: running caz removes local node_modules/.bin/caz entry #174

Nokel81 opened this issue Nov 9, 2023 · 5 comments
Labels

Comments

@Nokel81
Copy link

Nokel81 commented Nov 9, 2023

Prerequisites:

  1. Have caz as a top level devDependency in my workspaces based monorepo
  2. Have a local template that I want to use
  3. run npm exec -- caz .templates/my-template packages/my-new-package
  4. See the weird and slow "Installing template dependencies..." text
  5. Get the first prompt
  6. Cancel
  7. Try step 3 again, failure

Expected behaviour:

  1. It shouldn't install anything
  2. It shouldn't remove any existing dependencies
@zce
Copy link
Owner

zce commented Dec 18, 2023

I need to confirm the issue you mentioned first.

Can you provide a replicated repo. @Nokel81

@findersky

This comment was marked as off-topic.

@zce
Copy link
Owner

zce commented Dec 18, 2023

You can add a package.json to the template directory to prevent this issue from occurring. I will correct this issue later

@zce zce added the bug label Dec 18, 2023
@MartinLoeper
Copy link

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?

@findersky
Copy link

findersky commented Apr 29, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants