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

Unable to pack/publish when out-dir option is used for build #1369

Closed
danielronnkvist opened this issue Feb 27, 2024 · 0 comments · Fixed by #1370
Closed

Unable to pack/publish when out-dir option is used for build #1369

danielronnkvist opened this issue Feb 27, 2024 · 0 comments · Fixed by #1370

Comments

@danielronnkvist
Copy link
Contributor

🐛 Bug description

When running wasm-pack build with the --out-dir option with a value of something else than "pkg" I'm not able to run wasm-pack pack or wasm-pack publish because these commands require the output directory to be the default "pkg".

🤔 Expected Behavior

I should be able to provide an option to the pack and publish commands that will allow me to use them when I've built my package to a different output directory.

👟 Steps to reproduce

wasm-pack build -d web
wasm-pack pack

🌍 Your environment

Include the relevant details of your environment.
wasm-pack version: 0.12.1
rustc version: 1.75.0

danielronnkvist added a commit to Storykit/wasm-pack that referenced this issue Feb 27, 2024
To be able to use these commands when the output directory option to the
build command isn't the default pkg.

Resolves rustwasm#1369
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 a pull request may close this issue.

1 participant