Skip to content

Commit 6d0967d

Browse files
feat(deno): migrate rescript_modules npm → Deno (standards#253 STEP 3) (#29)
## Summary Class B migration of `rescript_modules/` from npm → Deno. Authors a fresh `deno.json` (none existed) that wraps the rescript toolchain via `deno run -A --node-modules-dir=auto npm:rescript@^11.0.0 <args>` — preserves the package.json's pinned version. - Adds `rescript_modules/deno.json` with build/clean/watch tasks + imports map (`rescript`, `@rescript/core`) - Deletes redundant `rescript_modules/package.json` stub - Appends standards#67 npm-avoidant patterns to root `.gitignore` Refs: standards#253 STEP 3 (smallest-first batch). ## Test plan - [ ] `deno task build` resolves npm:rescript@^11.0.0 and compiles `src/` under `rescript_modules/` - [ ] `deno task clean` removes generated artefacts - [ ] `deno task watch` runs incremental build 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent c80489c commit 6d0967d

3 files changed

Lines changed: 23 additions & 22 deletions

File tree

.gitignore

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,3 +85,11 @@ deps/
8585
.cache/
8686
build/
8787
dist/
88+
89+
# npm-avoidant (standards#67)
90+
package-lock.json
91+
**/package-lock.json
92+
bun.lockb
93+
yarn.lock
94+
pnpm-lock.yaml
95+
.npmrc

rescript_modules/deno.json

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"$schema": "https://deno.land/x/deno/cli/schemas/config-file.v1.json",
3+
"name": "@hyperpolymath/safe-brute-force-rescript",
4+
"version": "0.1.0",
5+
"tasks": {
6+
"build": "deno run -A --node-modules-dir=auto npm:rescript@^11.0.0 build",
7+
"clean": "deno run -A --node-modules-dir=auto npm:rescript@^11.0.0 clean",
8+
"watch": "deno run -A --node-modules-dir=auto npm:rescript@^11.0.0 build -w"
9+
},
10+
"imports": {
11+
"rescript": "npm:rescript@^11.0.0",
12+
"@rescript/core": "npm:@rescript/core@^1.0.0"
13+
},
14+
"nodeModulesDir": "auto"
15+
}

rescript_modules/package.json

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

0 commit comments

Comments
 (0)