@peachy/plugin-runner 0.0.11 → 0.0.12
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.d.mts +8 -8
- package/dist/index.mjs +1 -3
- package/package.json +4 -4
package/dist/index.d.mts
CHANGED
|
@@ -10,20 +10,20 @@ declare function gjsRunner({
|
|
|
10
10
|
type ReloadHandler = () => Promise<void>;
|
|
11
11
|
interface ReactGJSPluginOptions {
|
|
12
12
|
/**
|
|
13
|
-
|
|
14
|
-
|
|
13
|
+
* Whether to print debug messages
|
|
14
|
+
*/
|
|
15
15
|
debug?: boolean;
|
|
16
16
|
/**
|
|
17
|
-
|
|
18
|
-
|
|
17
|
+
* Broadcast message to all connected clients
|
|
18
|
+
*/
|
|
19
19
|
sendMessage: (message: HMRMessage) => void;
|
|
20
20
|
/**
|
|
21
|
-
|
|
22
|
-
|
|
21
|
+
* Called when a reload handler is needed
|
|
22
|
+
*/
|
|
23
23
|
setReloadHandler: (handler: ReloadHandler) => void;
|
|
24
24
|
/**
|
|
25
|
-
|
|
26
|
-
|
|
25
|
+
* Runner options
|
|
26
|
+
*/
|
|
27
27
|
options: RunnerOptions;
|
|
28
28
|
}
|
|
29
29
|
interface RunnerOptions {
|
package/dist/index.mjs
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { spawn } from "node:child_process";
|
|
2
2
|
import { join, resolve } from "node:path";
|
|
3
|
-
|
|
4
3
|
//#region src/index.ts
|
|
5
4
|
let gjs = null, restarting = false;
|
|
6
5
|
async function spawnConsole(entry, debug = false, env) {
|
|
@@ -82,6 +81,5 @@ function getInputToOutputMap(bundle) {
|
|
|
82
81
|
});
|
|
83
82
|
return map;
|
|
84
83
|
}
|
|
85
|
-
|
|
86
84
|
//#endregion
|
|
87
|
-
export { gjsRunner };
|
|
85
|
+
export { gjsRunner };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@peachy/plugin-runner",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.12",
|
|
4
4
|
"description": "Run your GJS applications",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "",
|
|
@@ -10,9 +10,9 @@
|
|
|
10
10
|
"type": "module",
|
|
11
11
|
"main": "./dist/index.mjs",
|
|
12
12
|
"devDependencies": {
|
|
13
|
-
"@types/node": "^25.
|
|
14
|
-
"rolldown": "1.0.0-rc.
|
|
15
|
-
"tsdown": "0.
|
|
13
|
+
"@types/node": "^25.3.5",
|
|
14
|
+
"rolldown": "1.0.0-rc.7",
|
|
15
|
+
"tsdown": "0.21.0",
|
|
16
16
|
"typescript": "^5.9.3",
|
|
17
17
|
"@peachy/internal-utilities": "0.0.0"
|
|
18
18
|
},
|