@ttsc/wasm 0.11.0-dev.20260517 → 0.11.0-dev.20260518-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.
Files changed (54) hide show
  1. package/README.md +1 -1
  2. package/build/build-wasm.cjs +5 -5
  3. package/build/pack-prepare.cjs +1 -1
  4. package/dist/go.mod +15 -15
  5. package/dist/ttsc.wasm +0 -0
  6. package/go.mod +15 -15
  7. package/package.json +2 -2
  8. /package/{vendor → shim-vendor}/shim/ast/extra-shim.json +0 -0
  9. /package/{vendor → shim-vendor}/shim/ast/go.mod +0 -0
  10. /package/{vendor → shim-vendor}/shim/ast/lint.go +0 -0
  11. /package/{vendor → shim-vendor}/shim/ast/shim.go +0 -0
  12. /package/{vendor → shim-vendor}/shim/ast/surface.go +0 -0
  13. /package/{vendor → shim-vendor}/shim/bundled/extra-shim.json +0 -0
  14. /package/{vendor → shim-vendor}/shim/bundled/go.mod +0 -0
  15. /package/{vendor → shim-vendor}/shim/bundled/shim.go +0 -0
  16. /package/{vendor → shim-vendor}/shim/checker/extra-shim.json +0 -0
  17. /package/{vendor → shim-vendor}/shim/checker/go.mod +0 -0
  18. /package/{vendor → shim-vendor}/shim/checker/shim.go +0 -0
  19. /package/{vendor → shim-vendor}/shim/compiler/extra-shim.json +0 -0
  20. /package/{vendor → shim-vendor}/shim/compiler/go.mod +0 -0
  21. /package/{vendor → shim-vendor}/shim/compiler/shim.go +0 -0
  22. /package/{vendor → shim-vendor}/shim/core/extra-shim.json +0 -0
  23. /package/{vendor → shim-vendor}/shim/core/go.mod +0 -0
  24. /package/{vendor → shim-vendor}/shim/core/shim.go +0 -0
  25. /package/{vendor → shim-vendor}/shim/diagnosticwriter/go.mod +0 -0
  26. /package/{vendor → shim-vendor}/shim/diagnosticwriter/lint.go +0 -0
  27. /package/{vendor → shim-vendor}/shim/diagnosticwriter/shim.go +0 -0
  28. /package/{vendor → shim-vendor}/shim/lsp/extra-shim.json +0 -0
  29. /package/{vendor → shim-vendor}/shim/lsp/go.mod +0 -0
  30. /package/{vendor → shim-vendor}/shim/lsp/go.sum +0 -0
  31. /package/{vendor → shim-vendor}/shim/lsp/shim.go +0 -0
  32. /package/{vendor → shim-vendor}/shim/parser/extra-shim.json +0 -0
  33. /package/{vendor → shim-vendor}/shim/parser/go.mod +0 -0
  34. /package/{vendor → shim-vendor}/shim/parser/shim.go +0 -0
  35. /package/{vendor → shim-vendor}/shim/printer/go.mod +0 -0
  36. /package/{vendor → shim-vendor}/shim/printer/shim.go +0 -0
  37. /package/{vendor → shim-vendor}/shim/scanner/extra-shim.json +0 -0
  38. /package/{vendor → shim-vendor}/shim/scanner/go.mod +0 -0
  39. /package/{vendor → shim-vendor}/shim/scanner/shim.go +0 -0
  40. /package/{vendor → shim-vendor}/shim/tsoptions/extra-shim.json +0 -0
  41. /package/{vendor → shim-vendor}/shim/tsoptions/go.mod +0 -0
  42. /package/{vendor → shim-vendor}/shim/tsoptions/shim.go +0 -0
  43. /package/{vendor → shim-vendor}/shim/tspath/extra-shim.json +0 -0
  44. /package/{vendor → shim-vendor}/shim/tspath/go.mod +0 -0
  45. /package/{vendor → shim-vendor}/shim/tspath/shim.go +0 -0
  46. /package/{vendor → shim-vendor}/shim/vfs/cachedvfs/extra-shim.json +0 -0
  47. /package/{vendor → shim-vendor}/shim/vfs/cachedvfs/go.mod +0 -0
  48. /package/{vendor → shim-vendor}/shim/vfs/cachedvfs/shim.go +0 -0
  49. /package/{vendor → shim-vendor}/shim/vfs/extra-shim.json +0 -0
  50. /package/{vendor → shim-vendor}/shim/vfs/go.mod +0 -0
  51. /package/{vendor → shim-vendor}/shim/vfs/osvfs/extra-shim.json +0 -0
  52. /package/{vendor → shim-vendor}/shim/vfs/osvfs/go.mod +0 -0
  53. /package/{vendor → shim-vendor}/shim/vfs/osvfs/shim.go +0 -0
  54. /package/{vendor → shim-vendor}/shim/vfs/shim.go +0 -0
package/README.md CHANGED
@@ -113,7 +113,7 @@ The host installs `globalThis[apiName].plugin({ name, command, ...opts })` that
113
113
 
114
114
  The published `@ttsc/wasm` tarball ships:
115
115
 
116
- - A rewritten root `go.mod` whose `replace` directives point at `./vendor/shim/*` (vendored at pack time from `packages/ttsc/shim/`).
116
+ - A rewritten root `go.mod` whose `replace` directives point at `./shim-vendor/shim/*` (vendored at pack time from `packages/ttsc/shim/`).
117
117
  - The full `host/`, `cmd/`, `build/` Go source so consumers can `go build -tags '...'` their own wasm against your host helper.
118
118
  - `dist/ttsc.wasm` + `dist/wasm_exec.js` — the no-plugin sanity binary and the Go runtime loader.
119
119
 
@@ -24,7 +24,7 @@ const packageRoot = path.resolve(__dirname, "..");
24
24
  const repoRoot = path.resolve(packageRoot, "..", "..");
25
25
  const ttscDir = path.join(repoRoot, "packages", "ttsc");
26
26
  const shimSrc = path.join(ttscDir, "shim");
27
- const vendorDir = path.join(packageRoot, "vendor");
27
+ const vendorDir = path.join(packageRoot, "shim-vendor");
28
28
  const vendorShimDir = path.join(vendorDir, "shim");
29
29
  const outDir = path.join(packageRoot, "dist");
30
30
  const wasmOut = path.join(outDir, "ttsc.wasm");
@@ -123,7 +123,7 @@ function buildWasm() {
123
123
  );
124
124
  }
125
125
 
126
- // Mirror packages/ttsc/shim/* into packages/wasm/vendor/shim/* so the
126
+ // Mirror packages/ttsc/shim/* into packages/wasm/shim-vendor/shim/* so the
127
127
  // published @ttsc/wasm tarball is self-contained: consumers extending the
128
128
  // wasm binary against the @ttsc/wasm Go module no longer need a sibling
129
129
  // `packages/ttsc/shim/` working tree. The vendored copy is checked in so
@@ -159,7 +159,7 @@ function copyTree(src, dst) {
159
159
  }
160
160
  }
161
161
 
162
- // Rewrite go.mod so the published copy points at ./vendor/shim/* instead of
162
+ // Rewrite go.mod so the published copy points at ./shim-vendor/shim/* instead of
163
163
  // ../ttsc/shim/*. The `replace github.com/samchon/ttsc/packages/ttsc => ...`
164
164
  // line is dropped: consumers of the published tarball who want to compile
165
165
  // their own wasm binary must supply that module themselves (documented in
@@ -178,13 +178,13 @@ function rewritePublishedGoMod() {
178
178
  ) {
179
179
  continue;
180
180
  }
181
- // Rewrite each shim replace from ../ttsc/shim/X to ./vendor/shim/X.
181
+ // Rewrite each shim replace from ../ttsc/shim/X to ./shim-vendor/shim/X.
182
182
  const shimMatch = trimmed.match(
183
183
  /^(github\.com\/microsoft\/typescript-go\/shim\/[A-Za-z0-9_/]+)\s+=>\s+\.\.\/ttsc\/shim\/([A-Za-z0-9_/]+)$/,
184
184
  );
185
185
  if (shimMatch) {
186
186
  const indent = line.match(/^\s*/)[0];
187
- out.push(`${indent}${shimMatch[1]} => ./vendor/shim/${shimMatch[2]}`);
187
+ out.push(`${indent}${shimMatch[1]} => ./shim-vendor/shim/${shimMatch[2]}`);
188
188
  continue;
189
189
  }
190
190
  out.push(line);
@@ -7,7 +7,7 @@
7
7
  // resolve.
8
8
  //
9
9
  // build-wasm.cjs emits a rewritten `dist/go.mod` that points at the
10
- // vendored `./vendor/shim/*` tree. Pack-prepare swaps the working-tree
10
+ // vendored `./shim-vendor/shim/*` tree. Pack-prepare swaps the working-tree
11
11
  // `go.mod` for that copy just before pack, then restores the original
12
12
  // afterwards. The original is stashed in `build/.go.mod.stash` so an
13
13
  // interrupted pack can be recovered by running `--restore`.
package/dist/go.mod CHANGED
@@ -7,21 +7,21 @@ go 1.26
7
7
  // replace directive mirrors `packages/ttsc/go.mod`. Without these, the
8
8
  // public proxy cannot resolve the in-tree shim modules.
9
9
  replace (
10
- github.com/microsoft/typescript-go/shim/ast => ./vendor/shim/ast
11
- github.com/microsoft/typescript-go/shim/bundled => ./vendor/shim/bundled
12
- github.com/microsoft/typescript-go/shim/checker => ./vendor/shim/checker
13
- github.com/microsoft/typescript-go/shim/compiler => ./vendor/shim/compiler
14
- github.com/microsoft/typescript-go/shim/core => ./vendor/shim/core
15
- github.com/microsoft/typescript-go/shim/diagnosticwriter => ./vendor/shim/diagnosticwriter
16
- github.com/microsoft/typescript-go/shim/lsp => ./vendor/shim/lsp
17
- github.com/microsoft/typescript-go/shim/parser => ./vendor/shim/parser
18
- github.com/microsoft/typescript-go/shim/printer => ./vendor/shim/printer
19
- github.com/microsoft/typescript-go/shim/scanner => ./vendor/shim/scanner
20
- github.com/microsoft/typescript-go/shim/tsoptions => ./vendor/shim/tsoptions
21
- github.com/microsoft/typescript-go/shim/tspath => ./vendor/shim/tspath
22
- github.com/microsoft/typescript-go/shim/vfs => ./vendor/shim/vfs
23
- github.com/microsoft/typescript-go/shim/vfs/cachedvfs => ./vendor/shim/vfs/cachedvfs
24
- github.com/microsoft/typescript-go/shim/vfs/osvfs => ./vendor/shim/vfs/osvfs
10
+ github.com/microsoft/typescript-go/shim/ast => ./shim-vendor/shim/ast
11
+ github.com/microsoft/typescript-go/shim/bundled => ./shim-vendor/shim/bundled
12
+ github.com/microsoft/typescript-go/shim/checker => ./shim-vendor/shim/checker
13
+ github.com/microsoft/typescript-go/shim/compiler => ./shim-vendor/shim/compiler
14
+ github.com/microsoft/typescript-go/shim/core => ./shim-vendor/shim/core
15
+ github.com/microsoft/typescript-go/shim/diagnosticwriter => ./shim-vendor/shim/diagnosticwriter
16
+ github.com/microsoft/typescript-go/shim/lsp => ./shim-vendor/shim/lsp
17
+ github.com/microsoft/typescript-go/shim/parser => ./shim-vendor/shim/parser
18
+ github.com/microsoft/typescript-go/shim/printer => ./shim-vendor/shim/printer
19
+ github.com/microsoft/typescript-go/shim/scanner => ./shim-vendor/shim/scanner
20
+ github.com/microsoft/typescript-go/shim/tsoptions => ./shim-vendor/shim/tsoptions
21
+ github.com/microsoft/typescript-go/shim/tspath => ./shim-vendor/shim/tspath
22
+ github.com/microsoft/typescript-go/shim/vfs => ./shim-vendor/shim/vfs
23
+ github.com/microsoft/typescript-go/shim/vfs/cachedvfs => ./shim-vendor/shim/vfs/cachedvfs
24
+ github.com/microsoft/typescript-go/shim/vfs/osvfs => ./shim-vendor/shim/vfs/osvfs
25
25
  )
26
26
 
27
27
  require (
package/dist/ttsc.wasm CHANGED
Binary file
package/go.mod CHANGED
@@ -7,21 +7,21 @@ go 1.26
7
7
  // replace directive mirrors `packages/ttsc/go.mod`. Without these, the
8
8
  // public proxy cannot resolve the in-tree shim modules.
9
9
  replace (
10
- github.com/microsoft/typescript-go/shim/ast => ./vendor/shim/ast
11
- github.com/microsoft/typescript-go/shim/bundled => ./vendor/shim/bundled
12
- github.com/microsoft/typescript-go/shim/checker => ./vendor/shim/checker
13
- github.com/microsoft/typescript-go/shim/compiler => ./vendor/shim/compiler
14
- github.com/microsoft/typescript-go/shim/core => ./vendor/shim/core
15
- github.com/microsoft/typescript-go/shim/diagnosticwriter => ./vendor/shim/diagnosticwriter
16
- github.com/microsoft/typescript-go/shim/lsp => ./vendor/shim/lsp
17
- github.com/microsoft/typescript-go/shim/parser => ./vendor/shim/parser
18
- github.com/microsoft/typescript-go/shim/printer => ./vendor/shim/printer
19
- github.com/microsoft/typescript-go/shim/scanner => ./vendor/shim/scanner
20
- github.com/microsoft/typescript-go/shim/tsoptions => ./vendor/shim/tsoptions
21
- github.com/microsoft/typescript-go/shim/tspath => ./vendor/shim/tspath
22
- github.com/microsoft/typescript-go/shim/vfs => ./vendor/shim/vfs
23
- github.com/microsoft/typescript-go/shim/vfs/cachedvfs => ./vendor/shim/vfs/cachedvfs
24
- github.com/microsoft/typescript-go/shim/vfs/osvfs => ./vendor/shim/vfs/osvfs
10
+ github.com/microsoft/typescript-go/shim/ast => ./shim-vendor/shim/ast
11
+ github.com/microsoft/typescript-go/shim/bundled => ./shim-vendor/shim/bundled
12
+ github.com/microsoft/typescript-go/shim/checker => ./shim-vendor/shim/checker
13
+ github.com/microsoft/typescript-go/shim/compiler => ./shim-vendor/shim/compiler
14
+ github.com/microsoft/typescript-go/shim/core => ./shim-vendor/shim/core
15
+ github.com/microsoft/typescript-go/shim/diagnosticwriter => ./shim-vendor/shim/diagnosticwriter
16
+ github.com/microsoft/typescript-go/shim/lsp => ./shim-vendor/shim/lsp
17
+ github.com/microsoft/typescript-go/shim/parser => ./shim-vendor/shim/parser
18
+ github.com/microsoft/typescript-go/shim/printer => ./shim-vendor/shim/printer
19
+ github.com/microsoft/typescript-go/shim/scanner => ./shim-vendor/shim/scanner
20
+ github.com/microsoft/typescript-go/shim/tsoptions => ./shim-vendor/shim/tsoptions
21
+ github.com/microsoft/typescript-go/shim/tspath => ./shim-vendor/shim/tspath
22
+ github.com/microsoft/typescript-go/shim/vfs => ./shim-vendor/shim/vfs
23
+ github.com/microsoft/typescript-go/shim/vfs/cachedvfs => ./shim-vendor/shim/vfs/cachedvfs
24
+ github.com/microsoft/typescript-go/shim/vfs/osvfs => ./shim-vendor/shim/vfs/osvfs
25
25
  )
26
26
 
27
27
  require (
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ttsc/wasm",
3
- "version": "0.11.0-dev.20260517",
3
+ "version": "0.11.0-dev.20260518-2",
4
4
  "description": "Build in-browser ttsc playgrounds. Compose ttsc + typescript-go with your own plugins via the Go host helper.",
5
5
  "main": "lib/src/index.js",
6
6
  "types": "lib/src/index.d.ts",
@@ -11,7 +11,7 @@
11
11
  "host",
12
12
  "cmd",
13
13
  "build",
14
- "vendor",
14
+ "shim-vendor",
15
15
  "go.mod",
16
16
  "go.sum",
17
17
  "README.md"
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes