@defold-typescript/types 0.20.2 → 0.20.4
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@defold-typescript/types",
|
|
3
|
-
"version": "0.20.
|
|
3
|
+
"version": "0.20.4",
|
|
4
4
|
"description": "TypeScript types for the Defold engine's Lua APIs.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -61,6 +61,7 @@
|
|
|
61
61
|
"typecheck": "tsc -p tsconfig.json --noEmit",
|
|
62
62
|
"regen": "bun scripts/regen.ts",
|
|
63
63
|
"generate-api-availability": "bun scripts/generate-api-availability.ts",
|
|
64
|
+
"generate-api-signatures": "bun scripts/generate-api-signatures.ts --write",
|
|
64
65
|
"import-defold-release": "bun scripts/import-defold-release.ts",
|
|
65
66
|
"sync-api-docs": "bun scripts/sync-api-docs.ts",
|
|
66
67
|
"ref-doc-delta": "bun scripts/ref-doc-delta.ts --target defold-1.9.8 --namespace label --present label.get_text --absent label.set_text"
|
|
@@ -15,6 +15,10 @@ const EXACT_VERSION = /^\d+\.\d+\.\d+$/;
|
|
|
15
15
|
const LUA_NAMESPACE = /^[a-z][a-z0-9]*(\.[a-z][a-z0-9]*)*$/;
|
|
16
16
|
const PACKAGE_ROOT = resolve(import.meta.dir, "..");
|
|
17
17
|
|
|
18
|
+
// The set of namespaces promoted into the generated surface at Defold 1.13.0.
|
|
19
|
+
// Held here rather than derived from the root release model because the
|
|
20
|
+
// per-package `rootDir` boundary forbids importing outside this package tree;
|
|
21
|
+
// `scripts/release-model.test.ts` correspondence-guards this against the model.
|
|
18
22
|
export const DEFOLD_1_13_PROMOTED_NAMESPACES = [
|
|
19
23
|
"b2d.chain",
|
|
20
24
|
"b2d.fixture",
|
package/scripts/sync-api-docs.ts
CHANGED
|
@@ -6,6 +6,11 @@ import { DEFOLD_TYPE_MAP } from "../src/core-types";
|
|
|
6
6
|
import { parseScriptApi } from "../src/script-api";
|
|
7
7
|
import { MODULE_MANIFEST } from "./regen";
|
|
8
8
|
|
|
9
|
+
// The current pinned Defold release. This value and the two fixture-path
|
|
10
|
+
// templates below are held here rather than imported from the root release
|
|
11
|
+
// model because the per-package `rootDir` boundary forbids a types-package
|
|
12
|
+
// module importing outside its own tree; `scripts/release-model.test.ts`
|
|
13
|
+
// correspondence-guards these against the model so drift fails CI.
|
|
9
14
|
export const DEFOLD_VERSION = "1.13.0";
|
|
10
15
|
export const refDocUrl = (version = DEFOLD_VERSION): string =>
|
|
11
16
|
`https://github.com/defold/defold/releases/download/${version}/ref-doc.zip`;
|