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.
- package/internal/cwd/cwd.go +16 -0
- package/lib/compiler/internal/compileProjectInMemory.js +1 -1
- package/lib/compiler/internal/compileProjectInMemory.js.map +1 -1
- package/lib/compiler/internal/runBuild.js +3 -47
- package/lib/compiler/internal/runBuild.js.map +1 -1
- package/lib/compiler/internal/sharedHostHelpers.d.ts +47 -0
- package/lib/compiler/internal/sharedHostHelpers.js +101 -0
- package/lib/compiler/internal/sharedHostHelpers.js.map +1 -0
- package/lib/compiler/internal/transformProjectInMemory.js +3 -47
- package/lib/compiler/internal/transformProjectInMemory.js.map +1 -1
- package/lib/plugin/internal/loadProjectPlugins.js +70 -1
- package/lib/plugin/internal/loadProjectPlugins.js.map +1 -1
- package/lib/structures/ITtscPlugin.d.ts +10 -0
- package/lib/structures/ITtscPlugin.js.map +1 -1
- package/package.json +9 -8
- package/shim/ast/lint.go +2 -5
- package/shim/ast/shim.go +8 -0
- package/shim/ast/surface.go +685 -0
- package/shim/checker/shim.go +8 -0
- package/src/compiler/internal/compileProjectInMemory.ts +1 -1
- package/src/compiler/internal/runBuild.ts +3 -57
- package/src/compiler/internal/sharedHostHelpers.ts +105 -0
- package/src/compiler/internal/transformProjectInMemory.ts +3 -57
- package/src/plugin/internal/loadProjectPlugins.ts +104 -5
- package/src/structures/ITtscPlugin.ts +11 -0
- package/tools/gen_shims/main.go +29 -9
|
@@ -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":";;;
|
|
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.
|
|
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-
|
|
35
|
-
"@ttsc/linux-
|
|
36
|
-
"@ttsc/
|
|
37
|
-
"@ttsc/
|
|
38
|
-
"@ttsc/darwin-
|
|
39
|
-
"@ttsc/win32-
|
|
40
|
-
"@ttsc/win32-
|
|
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
|
-
//
|
|
4
|
-
//
|
|
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 (
|