-
-
Notifications
You must be signed in to change notification settings - Fork 101
feat: prevent overwriting non-empty directories #220
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
base: main
Are you sure you want to change the base?
Conversation
| import type { AddOn, PackageManager } from '@tanstack/cta-engine' | ||
|
|
||
| import type { Framework } from '@tanstack/cta-engine/dist/types/types.js' | ||
| import { InitialData } from '../../cta-ui/src/types' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It’s not part of the main change, but I removed an unused import.
|
I think it will be better to let people choose like
source issue: #198 |
|
@WahidinAji Thank you for your feedback! I've updated the code and it now asks the user for confirmation before exiting:
|
|
It needs a force flag. |
|
@jherr I've added a |
| selectGit, | ||
| selectDeployment, | ||
| selectGit, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed ESLint's sort-imports warning introduced in c2ef696.


Added validation in
packages/cta-cli/src/options.tsto check whether the target directory exists and is non-empty. Previously, the CLI would overwrite existing files. Now it exits with an error message instead.Closes #198.