Skip to content

Commit 062481f

Browse files
feat(deno): migrate visualization/ package.json → deno.json (Class B, standards#253 longtail) (#38)
## Summary Class B — npm-wrapper-via-Deno. `anamnesis-visualization` is a ReScript + React + Vite + Jest stack. All dependencies wrap through `deno run -A --node-modules-dir=auto npm:<tool>` per the canonical template at `docs/migrations/npm-to-deno-template/MIGRATION.md`. ## Changes - `visualization/deno.json` (new) — tasks for all `package.json` scripts (`rescript:build`, `rescript:clean`, `rescript:dev`, `dev`, `build`, `preview`, `test`, `test:watch`, `test:coverage`). - Tasks use `deno run -A --node-modules-dir=auto npm:<tool>@<semver>` (rescript / vite / jest); resolves rescript through its install-lifecycle via `nodeModulesDir: "auto"`. - `imports` map populated for all runtime + dev deps with `npm:` specifiers. - `visualization/package.json` deleted. Note: jest test discovery still works via the existing `__tests__/` convention; deno-test conversion is a per-repo follow-up. ## Test plan - [ ] `deno task rescript:build` produces `.bs.js` output (preserves existing `bs.js` suffix from `rescript.json`) - [ ] `deno task build` chains rescript build + vite build - [ ] `deno task test` runs the jest test suite Per per-repo follow-up tracker for standards#253 (campaign closed 2026-05-31, longtail tracked in `project_estate_npm_to_deno_2026_05_28.md`). Refs hyperpolymath/standards#253. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 9fbfbfe commit 062481f

2 files changed

Lines changed: 31 additions & 31 deletions

File tree

visualization/deno.json

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
{
2+
"$schema": "https://deno.land/x/deno/cli/schemas/config-file.v1.json",
3+
"name": "@hyperpolymath/anamnesis-visualization",
4+
"version": "0.1.0",
5+
"license": "MPL-2.0",
6+
"tasks": {
7+
"rescript:build": "deno run -A --node-modules-dir=auto npm:rescript@^12.0.0",
8+
"rescript:clean": "deno run -A --node-modules-dir=auto npm:rescript@^12.0.0 clean",
9+
"rescript:dev": "deno run -A --node-modules-dir=auto npm:rescript@^12.0.0 build -w",
10+
"dev": "deno run -A --node-modules-dir=auto npm:vite@^8.0.6",
11+
"build": "deno task rescript:build && deno run -A --node-modules-dir=auto npm:vite@^8.0.6 build",
12+
"preview": "deno run -A --node-modules-dir=auto npm:vite@^8.0.6 preview",
13+
"test": "deno run -A --node-modules-dir=auto npm:jest@^29.0.0",
14+
"test:watch": "deno run -A --node-modules-dir=auto npm:jest@^29.0.0 --watch",
15+
"test:coverage": "deno run -A --node-modules-dir=auto npm:jest@^29.0.0 --coverage"
16+
},
17+
"imports": {
18+
"rescript": "npm:rescript@^12.0.0",
19+
"@rescript/core": "npm:@rescript/core@^1.0.0",
20+
"@rescript/react": "npm:@rescript/react@^0.12.0",
21+
"react": "npm:react@^18.2.0",
22+
"react-dom": "npm:react-dom@^18.2.0",
23+
"reagraph": "npm:reagraph@^4.0.0",
24+
"@vitejs/plugin-react": "npm:@vitejs/plugin-react@^4.2.0",
25+
"vite": "npm:vite@^8.0.6",
26+
"@glennsl/rescript-jest": "npm:@glennsl/rescript-jest@^0.11.0",
27+
"jest": "npm:jest@^29.0.0",
28+
"jest-environment-jsdom": "npm:jest-environment-jsdom@^29.0.0"
29+
},
30+
"nodeModulesDir": "auto"
31+
}

visualization/package.json

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

0 commit comments

Comments
 (0)