Skip to content

Commit c19ad24

Browse files
committed
base: add deno task npm-clean.
1 parent 5e3905a commit c19ad24

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

CONTRIBUTING.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,13 @@ allowing them to reference each other during development and testing.
117117
The `deno task npm-pack` command runs `npm pack --dry-run` for all packages to
118118
validate their structure and contents without actually creating package files.
119119

120+
- `deno task npm-clean`: Clean npm build artifacts
121+
122+
The `deno task npm-clean` command removes all directories and files generated by
123+
the `npm-build` process, returning the npm workspace to its initial state. This
124+
includes removing the `npm/packages`, `npm/samples`, and `npm/test` directories
125+
that contain the built npm packages and related files.
126+
120127
- `deno task bun-link`: Link packages for Bun runtime testing
121128

122129
The `deno task bun-link` command creates Bun links for all packages, enabling

deno.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,7 @@
130130
"check:hpke-js": "cd packages/hpke-js && deno task check",
131131
"check:ml-kem": "cd packages/ml-kem && deno task check",
132132
"npm": "deno task npm-build && deno task npm-link && deno task npm-pack && cd npm && npm install",
133+
"npm-clean": "rm -rf npm/packages npm/samples npm/test",
133134
"npm-build": "deno task npm-build:common && deno task npm-build:core && deno task npm-build:chacha20poly1305 && deno task npm-build:dhkem-x25519 && deno task npm-build:dhkem-x448 && deno task npm-build:dhkem-secp256k1 && deno task npm-build:hybridkem-x-wing && deno task npm-build:hpke-js && deno task npm-build:ml-kem",
134135
"npm-build:common": "cd packages/common && deno task npm-build",
135136
"npm-build:core": "cd packages/core && deno task npm-build",

0 commit comments

Comments
 (0)