Skip to content

Commit

Permalink
Add web target to pkg builder in makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
theref authored and piotr-roslaniec committed Jan 3, 2023
1 parent 5710d7d commit 50868b9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions nucypher-core-wasm/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,17 @@ pkg: src
# Build for both targets
wasm-pack build -t bundler -d pkg/pkg-bundler
wasm-pack build -t nodejs -d pkg/pkg-node
wasm-pack build -t web -d pkg/pkg-web

# Clean-up non-essential files
(cd pkg/pkg-bundler && rm package.json README.md .gitignore LICENSE)
(cd pkg/pkg-node && rm package.json README.md .gitignore LICENSE)
(cd pkg/pkg-web && rm package.json README.md .gitignore LICENSE)

# Types are duplicated, clean them up to avoid confusion
mv pkg/pkg-node/nucypher_core_wasm.d.ts pkg/
rm pkg/pkg-bundler/nucypher_core_wasm.d.ts
rm pkg/pkg-web/nucypher_core_wasm.d.ts

# Copy template
cp package.template.json pkg/package.json
Expand Down

0 comments on commit 50868b9

Please sign in to comment.