ttsc 0.10.0 → 0.10.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -42,6 +42,16 @@ export interface ITtscPlugin {
42
42
  * - `source: "go.mod"` when the module root itself is the command package.
43
43
  */
44
44
  source: string;
45
+ /**
46
+ * Other transform plugin names or transform specifiers that this native
47
+ * sidecar can execute in the same compiler pass.
48
+ *
49
+ * Package auto-discovery may find multiple transform packages that must share
50
+ * one emit host. When one descriptor lists another entry here, ttsc keeps the
51
+ * original plugin config in `--plugins-json` but points the composed entry at
52
+ * this descriptor's native source so both entries resolve to one binary.
53
+ */
54
+ composes?: string[];
45
55
  /**
46
56
  * Pipeline stage implemented by the sidecar.
47
57
  *
@@ -1 +1 @@
1
- {"version":3,"file":"ITtscPlugin.js","sourceRoot":"","sources":["../../src/structures/ITtscPlugin.ts"],"names":[],"mappings":";;;AA8DA,0BACE,KAAwD;IAExD,OAAO,KAAK,CAAC;AACf,CAAC"}
1
+ {"version":3,"file":"ITtscPlugin.js","sourceRoot":"","sources":["../../src/structures/ITtscPlugin.ts"],"names":[],"mappings":";;;AAyEA,0BACE,KAAwD;IAExD,OAAO,KAAK,CAAC;AACf,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ttsc",
3
- "version": "0.10.0",
3
+ "version": "0.10.2",
4
4
  "description": "General-purpose TypeScript-Go compiler, plugin host, and runtime.",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",
@@ -31,13 +31,13 @@
31
31
  "rimraf": "^6.1.2"
32
32
  },
33
33
  "optionalDependencies": {
34
- "@ttsc/linux-arm": "0.10.0",
35
- "@ttsc/linux-x64": "0.10.0",
36
- "@ttsc/linux-arm64": "0.10.0",
37
- "@ttsc/darwin-arm64": "0.10.0",
38
- "@ttsc/darwin-x64": "0.10.0",
39
- "@ttsc/win32-x64": "0.10.0",
40
- "@ttsc/win32-arm64": "0.10.0"
34
+ "@ttsc/linux-x64": "0.10.2",
35
+ "@ttsc/linux-arm": "0.10.2",
36
+ "@ttsc/darwin-x64": "0.10.2",
37
+ "@ttsc/linux-arm64": "0.10.2",
38
+ "@ttsc/darwin-arm64": "0.10.2",
39
+ "@ttsc/win32-arm64": "0.10.2",
40
+ "@ttsc/win32-x64": "0.10.2"
41
41
  },
42
42
  "sideEffects": false,
43
43
  "files": [
@@ -46,6 +46,7 @@
46
46
  "driver",
47
47
  "go.mod",
48
48
  "go.sum",
49
+ "internal",
49
50
  "package.json",
50
51
  "lib",
51
52
  "shim",
package/shim/ast/lint.go CHANGED
@@ -1,10 +1,7 @@
1
1
  // Lint-oriented additions to the AST shim.
2
2
  //
3
- // The handcrafted shim.go in this directory exposes only the kinds/types the
4
- // existing fixtures need. Lint rules walk a much wider AST surface (every
5
- // statement / expression node), so this file extends the shim with the
6
- // kinds, type aliases, helpers, and node-flag constants the `@ttsc/lint`
7
- // plugin (and any other AST-walking plugin) needs to navigate the tree.
3
+ // This file groups the helpers and node-flag constants the `@ttsc/lint`
4
+ // plugin needs to navigate the tree.
8
5
  //
9
6
  // Everything here is a pure re-export of `internal/ast` symbols — there is
10
7
  // no behavior, no copy of upstream logic. Adding a new node type is
package/shim/ast/shim.go CHANGED
@@ -1,3 +1,11 @@
1
+ // gen_shims:hand-maintained
2
+ //
3
+ // This shim file mixes generated re-exports with hand-written `go:linkname`
4
+ // declarations (see GetSourceFileOfNode / GetNodeAtPosition below). gen_shims
5
+ // detects the marker on the first line and skips this file. Remove the marker
6
+ // only if you are intentionally regenerating and willing to re-add the
7
+ // hand-maintained content.
8
+
1
9
  package ast
2
10
 
3
11
  import (