WASM-PACK(1)

πŸ“¦ version 0.15.0, in ubuntu stonking

πŸ’– WASM-PACK β€” the publish subcommand (section 1 of the User Commands manual) πŸ’–

okay bestie, sit down, grab a strawberry, because we're talking about wasm-pack publish and it's lowkey the moment your Rust crate becomes ✨a real npm package✨


🌸 NAME 🌸

wasm-pack publish β€” ???? pack up your npm package and publish!

✨ SYNOPSIS ✨

wasm-pack publish [OPTIONS] [PATH]

πŸ¦‹ DESCRIPTION πŸ¦‹

???? pack up your npm package and publish!

that's it. that's the whole vibe. you wrote the Rust, now we're shipping it to the npm-verse and the vibe check is passed. πŸ‘‘

πŸŽ€ Arguments: πŸŽ€

  • [PATH] β€” the path to the Rust crate. if you don't set it, it goes searching up the path from the current directory like it's looking for you in a crowd. so either tell it where your crate lives, or just be standing in the right place and it'll find you. iykyk.

πŸ’… OPTIONS πŸ’…

  • -t, --target <TARGET> β€” sets the target environment. the possible values are bundler, nodejs, web, and no-modules. the default is bundler. pick your fighter. πŸ₯Š
  • -a, --access <ACCESS> β€” the access level for the package to be published. that's the whole note, bestie, that's what it does.
  • --tag <TAG> β€” the distribution tag being used for publishing. go look at https://docs.npmjs.com/cli/dist-tag for the full lore. no cap.
  • -d, --pkg-dir <PKG_DIRECTORY> β€” the name of the output directory where the npm package is stored. the default is pkg. so like, that's where your little bundle of joy gets tucked in. 🍼
  • -h, --help β€” print help. iconic behaviour, honestly. always here for you. 🫢

ok quick disclaimer, this page isn't playin' β€” if you were looking for --verbose, --dry-run, or some secret extra flag, it's not here. these five options are the whole cast and they understood the assignment. πŸ’€

and that's the page!! you ate. go publish something. πŸ’–βœ¨πŸŽ€πŸ¦‹πŸŒΈπŸ«Ά

this was wasm-pack publish, version 0.15.0+ds, from June 2026 β€” mwah, sending u off with that, periodt. πŸ‘‘πŸŒˆβ­

πŸ“¦ where this page comes from