Skip to content

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

Closed
@danielronnkvist

Description

@danielronnkvist

🐛 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions