Skip to content

Commit

Permalink
Update pkg/javascript not to generate package.json and README.md on w…
Browse files Browse the repository at this point in the history
…asm-pack build (gluesql#1327)

update wasm-pack build not to generate unused package.json and README.md files in dist-* directory.
  • Loading branch information
panarch committed Jul 22, 2023
1 parent 6f848dc commit fb1944e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions pkg/javascript/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ description.workspace = true
license.workspace = true
repository.workspace = true
documentation.workspace = true
readme = false

[lib]
crate-type = ["cdylib", "rlib"]
Expand Down
4 changes: 2 additions & 2 deletions pkg/javascript/DEVELOPMENT.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ opt-level = "s"
### Build
```
# browser module, webpack and rollup
wasm-pack build --target web --no-typescript --release --out-dir ./dist_web
wasm-pack build --no-pack --target web --no-typescript --release --out-dir ./dist_web
# nodejs
wasm-pack build --target nodejs --no-typescript --release --out-dir ./dist_nodejs -- --no-default-features --features nodejs
wasm-pack build --no-pack --target nodejs --no-typescript --release --out-dir ./dist_nodejs -- --no-default-features --features nodejs
```

### 🔬 Test in Headless Browsers with `wasm-pack test`
Expand Down

0 comments on commit fb1944e

Please sign in to comment.