feat: add TypeRT remote gateway infrastructure

This commit is contained in:
imccyu
2026-08-05 11:17:47 +08:00
parent effd8e1ebd
commit 64a963da0b
98 changed files with 7812 additions and 444 deletions

View File

@@ -0,0 +1,20 @@
import { defineConfig } from 'tsdown'
import { typertPlugin } from './packages/typert/generator/lib/types/tsdown-plugin.js'
/**
* Host-only TypeRT contract prepass. The generator and its project references
* are compiled first; the plugin then analyzes Host source and emits local and
* Host-for-Client artifacts before either aggregate consumes Remote subpaths.
*/
export default defineConfig({
workspace: ['packages/typert/generator'],
entry: ['lib/types/{index,invariant}.js'],
outDir: 'lib',
format: ['esm'],
platform: 'node',
target: 'es2024',
fixedExtension: false,
dts: false,
clean: false,
plugins: [typertPlugin({ mode: 'workspace', faces: ['host'] })],
})