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

@wakaru/unminify CLI nests output in an extra folder #47

Closed
0xdevalias opened this issue Nov 20, 2023 · 1 comment · Fixed by #64
Closed

@wakaru/unminify CLI nests output in an extra folder #47

0xdevalias opened this issue Nov 20, 2023 · 1 comment · Fixed by #64
Labels
bug Something isn't working scope: cli

Comments

@0xdevalias
Copy link

Just tried out the CLI on a webpack'd chunk (Ref), and it seems that @wakaru/unminify wrapped the output directory I specified in an extra folder.

First I unpacked it:

cd ./unpacked/_next/static/chunks

⇒ npx @wakaru/unpacker 496.js -o ./496-unpacked

Then I unminified it:

⇒ npx @wakaru/unminify ./496-unpacked/* -o ./496-unminified

# ..snip..

I expected that the unminified files would have been in ./496-unminified/*.js, but they actually ended up in ./496-unminified/496-unpacked/*.js

@pionxzh pionxzh added bug Something isn't working scope: cli labels Nov 20, 2023
@pionxzh pionxzh closed this as completed in 7a939b7 Dec 4, 2023
@pionxzh
Copy link
Owner

pionxzh commented Dec 4, 2023

Fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working scope: cli
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants