wasm-pack icon indicating copy to clipboard operation
wasm-pack copied to clipboard

Deleting existing package.json when `--no-pack` is passed

Open Enduriel opened this issue 4 months ago • 0 comments

🐛 Bug description

When passing --no-pack to wasm-pack, if an existing package.json is present in the out-dir, it will get deleted

🤔 Expected Behavior

The existing package.json should be left alone, a new one should just not be generated.

👟 Steps to reproduce

Place package.json in /pkg Run wasm-pack build --no-pack

🌍 Your environment

Include the relevant details of your environment. wasm-pack version: 0.13.1 rustc version: 1.91.0-nightly (3672a55b7 2025-08-13)

Enduriel avatar Aug 20 '25 16:08 Enduriel