@defold-typescript/transpiler 0.33.1 → 0.35.0

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/dist/index.js CHANGED
@@ -2225,6 +2225,8 @@ function buildAmbientFiles() {
2225
2225
  ""
2226
2226
  ].join(`
2227
2227
  `),
2228
+ "node_modules/@defold-typescript/types/core-types.d.ts": `export * from "./src/core-types";
2229
+ `,
2228
2230
  "node_modules/@defold-typescript/types/script.d.ts": `export { defineScript } from "./src/lifecycle.js";
2229
2231
  export type { ScriptProperties, ScriptProperty } from "./src/lifecycle.js";
2230
2232
  `,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@defold-typescript/transpiler",
3
- "version": "0.33.1",
3
+ "version": "0.35.0",
4
4
  "description": "TypeScript-to-Lua build pipeline tuned for Defold's runtime.",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -35,7 +35,7 @@
35
35
  "test": "bun test"
36
36
  },
37
37
  "dependencies": {
38
- "@defold-typescript/types": "0.33.1",
38
+ "@defold-typescript/types": "0.35.0",
39
39
  "@typescript-to-lua/language-extensions": "1.19.0",
40
40
  "typescript-to-lua": "^1.36.0"
41
41
  }
package/src/transpile.ts CHANGED
@@ -149,12 +149,16 @@ function buildAmbientFiles(): Record<string, string> {
149
149
  'export type { Hash, Matrix4, Quaternion, Url, Vector, Vector3, Vector4 } from "./src/core-types";',
150
150
  "",
151
151
  ].join("\n"),
152
- // Per-kind subpath entrypoints exist as package exports for the editor.
153
- // Their namespaces are already seeded ambiently below; mirror slice A's
154
- // generated `generateKindIndex` output by re-exporting only the matching
155
- // factory, so a walled source's subpath import resolves to it and the
156
- // call-site erasure fires (otherwise the import lowers to a broken
157
- // `require("@defold-typescript/types/gui-script")`).
152
+ // Published subpath entrypoints that exist as package exports. The per-kind
153
+ // ones mirror slice A's generated `generateKindIndex` output by re-exporting
154
+ // only the matching factory, so a walled source's subpath import resolves to
155
+ // it and the call-site erasure fires (otherwise the import lowers to a broken
156
+ // `require("@defold-typescript/types/gui-script")`); their namespaces are
157
+ // already seeded ambiently below. The `core-types` entry mirrors the
158
+ // package's `exports` map so a materialized surface's published-subpath brand
159
+ // import resolves in-process. It re-exports rather than copies: a second copy
160
+ // would mint `unique symbol` brands that never unify with the package index's.
161
+ "node_modules/@defold-typescript/types/core-types.d.ts": 'export * from "./src/core-types";\n',
158
162
  "node_modules/@defold-typescript/types/script.d.ts":
159
163
  'export { defineScript } from "./src/lifecycle.js";\nexport type { ScriptProperties, ScriptProperty } from "./src/lifecycle.js";\n',
160
164
  "node_modules/@defold-typescript/types/gui-script.d.ts":