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

fix: wasm-pack bin script entry #1250

Merged
merged 1 commit into from
Apr 4, 2023
Merged

fix: wasm-pack bin script entry #1250

merged 1 commit into from
Apr 4, 2023

Conversation

ahippler
Copy link
Contributor

@ahippler ahippler commented Mar 22, 2023

A bin entry in a package.json has to be a local file and not a command to be linked by a package manager.

See https://docs.npmjs.com/cli/v9/configuring-npm/package-json#bin

To use this, supply a bin field in your package.json which is a map of command name to local file name.

this fixes #1248

@ahippler ahippler changed the title fix: add shebang to binary script fix: wasm-pack bin script entry Mar 22, 2023
@ahippler
Copy link
Contributor Author

@drager could you please review and make a new release?

Copy link
Member

@drager drager left a comment

Choose a reason for hiding this comment

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

Thanks!

@drager drager merged commit d136b04 into rustwasm:master Apr 4, 2023
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.

Unable to find wasm-pack on 0.11.0
2 participants