Skip to content

Ensure parent directory exists when using --output on CLI#1530

Merged
fabiosantoscode merged 3 commits intoterser:masterfrom
RyanZim:fix-962
Oct 16, 2024
Merged

Ensure parent directory exists when using --output on CLI#1530
fabiosantoscode merged 3 commits intoterser:masterfrom
RyanZim:fix-962

Conversation

@RyanZim
Copy link
Copy Markdown
Contributor

@RyanZim RyanZim commented May 18, 2024

Resolves #962

Happy to add tests for this, but I didn't see any existing tests for the --output CLI option; am I missing them?

@fabiosantoscode
Copy link
Copy Markdown
Collaborator

Hey there! Thanks for the PR

You could add a test with --output on test/mocha/cli.js. I didn't find an existing one either!

@RyanZim
Copy link
Copy Markdown
Contributor Author

RyanZim commented Sep 5, 2024

Finally got around to adding a test for this (sorry for the long wait). Ready for review.

Copy link
Copy Markdown
Collaborator

@fabiosantoscode fabiosantoscode left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good, let me look at CI now

@fabiosantoscode fabiosantoscode merged commit 142f56a into terser:master Oct 16, 2024
@fabiosantoscode
Copy link
Copy Markdown
Collaborator

Great, thank you!

@RyanZim RyanZim deleted the fix-962 branch October 17, 2024 13:20
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

Successfully merging this pull request may close these issues.

Terser returns error if folders, specified in --output parameter are not present in file system

2 participants