@gameslate/sdk 0.3.2 → 0.3.3
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/build/build-plugin.d.mts +21 -0
- package/package.json +9 -3
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/** Builds a plugin folder (manifest.json, live.ts, optional assets.ts) into what the core loads. */
|
|
2
|
+
export interface BuildPluginOptions {
|
|
3
|
+
srcDir: string;
|
|
4
|
+
/** replaced */
|
|
5
|
+
outDir: string;
|
|
6
|
+
/** core versions it was tested with (the manifest's testedWith) */
|
|
7
|
+
testedWith: string[];
|
|
8
|
+
/** esbuild aliases for the sandbox builds (a monorepo pointing at sources) */
|
|
9
|
+
alias?: Record<string, string>;
|
|
10
|
+
/** esbuild aliases for the Node build of extract.ts */
|
|
11
|
+
nodeAlias?: Record<string, string>;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
/** The built manifest (id, version, code hashes, …). */
|
|
15
|
+
export interface BuiltManifest {
|
|
16
|
+
id: string;
|
|
17
|
+
version: string;
|
|
18
|
+
[key: string]: unknown;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export function buildPlugin(options: BuildPluginOptions): Promise<BuiltManifest>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gameslate/sdk",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.3",
|
|
4
4
|
"description": "Build plugins for GameSlate, the second-screen companion for PC games: the plugin contract, game-state and catalogue schemas, and the plugin builder.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -20,7 +20,10 @@
|
|
|
20
20
|
"types": "./lib/plugin/index.d.ts",
|
|
21
21
|
"default": "./lib/plugin/index.js"
|
|
22
22
|
},
|
|
23
|
-
"./build":
|
|
23
|
+
"./build": {
|
|
24
|
+
"types": "./build/build-plugin.d.mts",
|
|
25
|
+
"default": "./build/build-plugin.mjs"
|
|
26
|
+
},
|
|
24
27
|
"./host": {
|
|
25
28
|
"types": "./lib/host/index.d.ts",
|
|
26
29
|
"default": "./lib/host/index.js"
|
|
@@ -47,7 +50,10 @@
|
|
|
47
50
|
"types": "./lib/plugin/index.d.ts",
|
|
48
51
|
"default": "./lib/plugin/index.js"
|
|
49
52
|
},
|
|
50
|
-
"./build":
|
|
53
|
+
"./build": {
|
|
54
|
+
"types": "./build/build-plugin.d.mts",
|
|
55
|
+
"default": "./build/build-plugin.mjs"
|
|
56
|
+
},
|
|
51
57
|
"./host": {
|
|
52
58
|
"types": "./lib/host/index.d.ts",
|
|
53
59
|
"default": "./lib/host/index.js"
|