Skip to content

Commit 1770898

Browse files
feat(deno): migrate broad-spectrum npm → Deno (standards#253) (#154)
## Summary Class B (npm-wrapper via Deno) migration of `broad-spectrum/` sub-tree. - Deletes `broad-spectrum/package.json` (stub: rescript + @rescript/core + gentype devDeps; scripts wrapping rescript) - Updates `broad-spectrum/deno.json` to add wrapped `build`/`clean`/`watch` tasks: `deno run -A --node-modules-dir=auto npm:rescript <args>` - Appends npm-avoidant lock-file patterns to root `.gitignore` Triage note: deno.json already exists and had Deno-native `audit`/`test`/`dev`/`fmt`/`lint` tasks. The `build`/`clean`/`watch` lifecycle previously living in package.json is now wrapped via Deno's `npm:` specifier so functionality survives the delete. No `gentype` task was bare-referenced anywhere. Scope: only `broad-spectrum/` + root `.gitignore`. No lock files were present to remove. Refs: standards#253 STEP 3 (smallest-first batch). ## Test plan - [ ] CI green on default checks - [ ] `deno task -c broad-spectrum/deno.json build` resolves rescript via npm: specifier (post-merge spot-check optional) Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 5b40aba commit 1770898

3 files changed

Lines changed: 11 additions & 16 deletions

File tree

.gitignore

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,3 +98,11 @@ node_modules/
9898
.cache/
9999
build/
100100
dist/
101+
102+
# npm-avoidant (standards#67)
103+
package-lock.json
104+
**/package-lock.json
105+
bun.lockb
106+
yarn.lock
107+
pnpm-lock.yaml
108+
.npmrc

broad-spectrum/deno.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
{
22
"tasks": {
3+
"build": "deno run -A --node-modules-dir=auto npm:rescript build",
4+
"clean": "deno run -A --node-modules-dir=auto npm:rescript clean",
5+
"watch": "deno run -A --node-modules-dir=auto npm:rescript build -w",
36
"audit": "deno run --allow-net --allow-read --allow-env src/Main.js",
47
"test": "deno run --allow-net --allow-read --allow-env tests/UrlParser_test.js",
58
"dev": "deno run --watch --allow-net --allow-read --allow-env src/Main.js",

broad-spectrum/package.json

Lines changed: 0 additions & 16 deletions
This file was deleted.

0 commit comments

Comments
 (0)