From 735db897ff71fa634ed9220321f614299f3064da Mon Sep 17 00:00:00 2001 From: etiennept <47983879+etiennept@users.noreply.github.com> Date: Fri, 29 Dec 2023 17:39:34 +0100 Subject: [PATCH] Update package.json replace mv pkg with out-dir --- js/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/package.json b/js/package.json index e8744994..c1405e4b 100644 --- a/js/package.json +++ b/js/package.json @@ -10,7 +10,7 @@ "scripts": { "fmt": "rome format . --write && rome check . --apply-unsafe", "test": "rome ci . && wasm-pack build --debug --target nodejs && mocha", - "build": "rm -rf pkg && wasm-pack build --release --target web --out-name web && mv pkg pkg-web && wasm-pack build --release --target nodejs --out-name node && mv pkg pkg-node && node build_package.js && rm -r pkg-web && rm -r pkg-node", + "build": "rm -rf pkg && wasm-pack build --release --target web --out-name web --out-dir pkg-web && wasm-pack build --release --target nodejs --out-name node --out-dir pkg-node && node build_package.js && rm -r pkg-web && rm -r pkg-node", "release": "npm run build && npm publish ./pkg", "pack": "npm run build && npm pack ./pkg" },