Commit e0fb183
feat(deno): migrate root package.json → deno.json imports (Class B, standards#253 longtail) (#15)
excel-economic-numbers-tool is a ReScript-driven Office add-in
(Excel + LibreOffice). The package.json had `@microsoft/office-js` as
the lone runtime dep + `@rescript/core` + `rescript` as devDeps.
Class B migration:
- Add `npm:rescript@^12.0.0` + `npm:@rescript/core@^1.6.0` +
`npm:@microsoft/office-js@^1.1.0` to `deno.json` `imports`.
- Replace the broken bare `rescript build` in the `build` task with
the canonical `deno run -A --node-modules-dir=auto npm:rescript@^12.0.0`
pattern (the bare form would fail in Deno-only environments — Deno
doesn't have npx).
- Add `nodeModulesDir: "auto"` for rescript's install lifecycle.
- Delete `package.json` (now redundant — `deno.json` covers all
runtime + dev deps + scripts).
Office host integration unaffected: `@microsoft/office-js` is loaded
by the Office host from the served manifest, not from the local
`node_modules/`. Deno's `--node-modules-dir=auto` regenerates the
local `node_modules/` at build time for rescript's lifecycle hooks.
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.
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 7f80e0f commit e0fb183
2 files changed
Lines changed: 9 additions & 53 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
9 | 11 | | |
10 | 12 | | |
11 | 13 | | |
| |||
54 | 56 | | |
55 | 57 | | |
56 | 58 | | |
57 | | - | |
58 | | - | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
59 | 65 | | |
This file was deleted.
0 commit comments