Commit d6422de
refactor(apps): converge deno-runtime AST onto real acorn types
Drop the hand-written acorn.d.ts / acorn-walk.d.ts declaration shims and
use the real acorn / acorn-walk package types, matching node-runtime:
- ast/operations.ts, ast/mod.ts: remove @deno-types comments, import the
real exports (FullAncestorWalkerCallback, AnyNode, Node, ...)
- ast/tests: import acorn types from the package; ast_blocks fixtures
spread { start, end } to satisfy the real node types
- bump acorn 8.10.0 -> 8.17.0 and acorn-walk 8.2.0 -> 8.3.5 to match the
versions node-runtime resolves (AnyNode only exists in newer acorn)
- set compilerOptions.strict: false to match node-runtime's tsconfig, as
the real acorn-walk callback types are looser than the deleted shim
deno task test stays green (21 passed); deno check on the AST files is
clean. No behavior change intended.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent 291522a commit d6422de
8 files changed
Lines changed: 114 additions & 1121 deletions
File tree
- packages/apps/deno-runtime
- lib/ast
- tests
- data
This file was deleted.
0 commit comments