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

Output directory is recursively removed #75

Open
romhml opened this issue Oct 13, 2024 · 0 comments
Open

Output directory is recursively removed #75

romhml opened this issue Oct 13, 2024 · 0 comments

Comments

@romhml
Copy link
Contributor

romhml commented Oct 13, 2024

I had a small surprise while exploring ways to generate types for a Nuxt Module, the directory specified in the --outputDir is recursively removed.

Reproduction: https://stackblitz.com/edit/stackblitz-starters-kjvwap

Running pnpm nuxt-component-meta playground --outputDir ../ will remove the parent folder. While this might not be the brightest idea, I think the punishment for it is a bit hard.

Ideally, the cli should only remove its files from the --outputDir directory.

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