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 committed Dec 14, 2022
1 parent cbfbd30 commit 1dd9c2b
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 1dd9c2b

Please sign in to comment.