From 110c29d18f32cfa80bee3cab12c397785230ec85 Mon Sep 17 00:00:00 2001 From: turbocrime <134443988+turbocrime@users.noreply.github.com> Date: Wed, 24 Apr 2024 05:59:07 -0700 Subject: [PATCH] wasm clean script, all-check clean (#974) --- package.json | 2 +- packages/wasm/package.json | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 1a57e2c085..f9bed58794 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,7 @@ "repository": "penumbra-zone/web.git", "packageManager": "pnpm@8.6.11", "scripts": { - "all-check": "pnpm install && pnpm compile && pnpm format-check && pnpm lint && pnpm test && pnpm build && pnpm format-check:rust && pnpm lint:rust && pnpm test:rust", + "all-check": "pnpm clean && pnpm install && pnpm compile && pnpm format-check && pnpm lint && pnpm test && pnpm build && pnpm format-check:rust && pnpm lint:rust && pnpm test:rust", "build": "turbo run build", "changeset": "changeset", "changeset:publish": "changeset publish", diff --git a/packages/wasm/package.json b/packages/wasm/package.json index b294c36a50..a7a18d706b 100644 --- a/packages/wasm/package.json +++ b/packages/wasm/package.json @@ -4,7 +4,8 @@ "license": "(MIT OR Apache-2.0)", "type": "module", "scripts": { - "clean": "rm -rfv dist wasm ; cargo clean --manifest-path ./crate/Cargo.toml", + "clean": "rm -v wasm/index*", + "clean:rust": "cargo clean --manifest-path ./crate/Cargo.toml", "compile": "cd crate ; wasm-pack build --no-pack --target bundler --out-name index --out-dir ../wasm", "dev": "cargo watch -C ./crate --postpone -- pnpm turbo run compile", "lint": "eslint \"src/*.ts*\"",