From 50868b996071126dc57665255c391234df0c0d6f Mon Sep 17 00:00:00 2001 From: James Campbell Date: Wed, 14 Dec 2022 14:45:16 +0000 Subject: [PATCH] Add web target to pkg builder in makefile --- nucypher-core-wasm/Makefile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/nucypher-core-wasm/Makefile b/nucypher-core-wasm/Makefile index 3d5c4ff0..903cb136 100644 --- a/nucypher-core-wasm/Makefile +++ b/nucypher-core-wasm/Makefile @@ -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