-
-
Notifications
You must be signed in to change notification settings - Fork 192
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
Add support for moving folders to system trash #113
Conversation
The 'trash' NPM package is added This dependency uses ESModule, requiring project refactoring Fixes voidcosmos#60
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.
Nice one adding the --trash
option but if adding one single feature could make rewriting most of the original project structure, i don't think it is ideal for a merge. You can look for a typescript port for trash
lib or an alternative package.
export * from './cli.constants.js'; | ||
export * from './main.constants.js'; | ||
export * from './messages.constants.js'; | ||
export * from './sort.result.js'; | ||
export * from './spinner.constants.js'; | ||
export * from './update.constants.js'; | ||
export * from './recursive-rmdir-node-support.constants.js'; |
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.
Just curious why suffix file names with .js
extension?
export * from './console.service.js'; | ||
export * from './files.service.js'; | ||
export * from './https.service.js'; | ||
export * from './linux-files.service.js'; | ||
export * from './results.service.js'; | ||
export * from './spinner.service.js'; | ||
export * from './stream.service.js'; | ||
export * from './update.service.js'; | ||
export * from './windows-files.service.js'; |
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.
huh?
Hi! Now that there should be no more ESM problems, could you reopen the PR with only the changes related to the feature? I will merge it as soon as possible. Thank! |
Adds a
--trash
flag to the CLI to move anode_modules
to system trash rather than deleting directly.To use the
trash
module, the project needs to be rewritten to use ESModulesThere is one test still outstanding that isn't running as I work out some compat issues, but wanted to create this now to solicit some feedback.
See #60