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

Relay-compiler will delete any file in a hidden directory!! #4861

Open
yuliswe opened this issue Dec 7, 2024 · 0 comments
Open

Relay-compiler will delete any file in a hidden directory!! #4861

yuliswe opened this issue Dec 7, 2024 · 0 comments

Comments

@yuliswe
Copy link

yuliswe commented Dec 7, 2024

Running relay-compiler (tested v16-18) will remove files from __generated__ in any hidden directory such as .wtf/__generated__

For example, when running relay-compiler, all files in .nodevenv/lib/node_modules/npm/node_modules/@sigstore/protobuf-specs/dist/__generated__/ are nuked.

This happens even if I've set the exclude paths in relay.config.js

  excludes: [
    '.nodeenv/**',
    '**/node_modules/**',
    '**/__mocks__/**',
    '**/__generated__/**',
  ],

It breaks my npm installation.

@yuliswe yuliswe changed the title Relay-compiler will delete any file in hidden directory!! Relay-compiler will delete any file in a hidden directory!! Dec 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant