@defold-typescript/types 0.29.0 → 0.30.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.
@@ -1,3 +1,5 @@
1
+ /// <reference types="lua-types/5.1" />
2
+ /// <reference types="lua-types/special/jit-only" />
1
3
  import "./b2d";
2
4
  import "./b2d_body";
3
5
  import "./buffer";
@@ -1,3 +1,5 @@
1
+ /// <reference types="lua-types/5.1" />
2
+ /// <reference types="lua-types/special/jit-only" />
1
3
  import "./b2d";
2
4
  import "./b2d_body";
3
5
  import "./b2d_chain";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@defold-typescript/types",
3
- "version": "0.29.0",
3
+ "version": "0.30.0",
4
4
  "description": "TypeScript types for the Defold engine's Lua APIs.",
5
5
  "license": "MIT",
6
6
  "repository": {
package/scripts/regen.ts CHANGED
@@ -699,7 +699,10 @@ export function generateVersionIndex(
699
699
  ]
700
700
  .map((module) => `import "./${module}";`)
701
701
  .join("\n");
702
- return `${imports}\n\nexport {};\n`;
702
+ // A pinned consumer names this surface in `types` and never loads the
703
+ // package entrypoint, so the stdlib directives have to lead here too. A
704
+ // runtime surface is LuaJIT, so it takes both lines.
705
+ return `${LUA_STDLIB_REFERENCES}${imports}\n\nexport {};\n`;
703
706
  }
704
707
 
705
708
  // The `src/`-relative prefix a kind index living in `<generatedDir>/kinds/` needs