Skip to content

Commit 7e4f729

Browse files
authored
Refactor/ast transformers part 1 (#1813)
New modular transformer stack. * Stand up @commontools/ts-transformers: normalized data-flow analysis, rule-based opaque-ref rewrite, schema-injection rule, import helpers, and comprehensive fixture coverage * Share transformer utilities across the workspace (common-tools-imports, common-tools-symbols, call-kind detection, binding plans) with robust helper reuse and canonical derive substitution * Wire the new package into @commontools/js-runtime: use the modular transformers, tighten virtual FS/module resolution, streamline environment lib handling, and keep compiler tests up to date with explicit CommonTools typings * Document roadmap and open gaps (transformers_notes.md), expand fixtures/tests to guard edge cases, and align schema generation via schema-generator’s createSchemaTransformerV2
1 parent ec5102c commit 7e4f729

File tree

138 files changed

+7841
-4655
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

138 files changed

+7841
-4655
lines changed

deno.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212
"./packages/integration",
1313
"./packages/js-runtime",
1414
"./packages/js-sandbox",
15+
"./packages/ts-transformers",
16+
"./packages/test-support",
1517
"./packages/schema-generator",
1618
"./packages/llm",
1719
"./packages/memory",
@@ -86,7 +88,7 @@
8688
"docs/",
8789
"packages/seeder/templates/",
8890
"packages/static/assets/",
89-
"packages/js-runtime/test/fixtures",
91+
"packages/ts-transformers/test/fixtures",
9092
"packages/schema-generator/test/fixtures",
9193
"packages/vendor-astral"
9294
]

deno.lock

Lines changed: 10 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/js-runtime/deno.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@commontools/js-runtime",
33
"tasks": {
4-
"test": "deno test --allow-read --allow-write --allow-run --allow-env=API_URL,\"TSC_*\",NODE_INSPECTOR_IPC,VSCODE_INSPECTOR_OPTIONS,NODE_ENV test/*.test.ts"
4+
"test": "deno test --allow-read --allow-write --allow-run --allow-env=UPDATE_GOLDENS,API_URL,\"TSC_*\",NODE_INSPECTOR_IPC,VSCODE_INSPECTOR_OPTIONS,NODE_ENV test/*.test.ts"
55
},
66
"imports": {
77
"typescript": "npm:typescript",

packages/js-runtime/test/fixture-based.test.ts

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

0 commit comments

Comments
 (0)