Open ev-rvs opened 3 years ago
Had the same issue, did you find a good workaround?
I believe I generated one myself using npm init -y
, but it's been a while ago. I then pieced together the packages and applied it to the package.json
. I was hoping a bug would be created for this issue. Sorry you experienced this as well. Let me know if that works for you.
Describe the bug Stepping through the steps in the book and when I run the command
wasm-pack build
and thepkg
directory gets created with all the appropriate files except thepackage.json
, which is missing and I have to manually create it.To Reproduce Specs:
wasm-pack build
pkg
directory and you won't see apackage.json
file - see screenshotExpected behavior Copied from book: pkg/ ├── package.json ├── README.md ├── wasm_game_of_life_bg.wasm ├── wasm_game_of_life.d.ts └── wasm_game_of_life.js
Screenshots
Additional context There may also be a bug related to a named project and importing the dependency for
../pkg
andnpm install
, the package is still namedwasm-game-of-life
in thenode_modules
.