@peachy/core 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/cli/bin.mjs +1 -3
- package/dist/cli/build.mjs +1 -3
- package/dist/cli/watch.mjs +1 -3
- package/dist/cli/ws.mjs +1 -3
- package/dist/config.mjs +1 -2
- package/dist/constants.mjs +1 -2
- package/dist/index.mjs +1 -2
- package/dist/load.mjs +1 -3
- package/dist/options.mjs +2 -4
- package/package.json +9 -9
- package/tsconfig.json +3 -2
package/dist/cli/bin.mjs
CHANGED
|
@@ -4,7 +4,6 @@ import { build } from "./build.mjs";
|
|
|
4
4
|
import { watch } from "./watch.mjs";
|
|
5
5
|
import { join } from "node:path";
|
|
6
6
|
import { minArgs } from "minargs";
|
|
7
|
-
|
|
8
7
|
//#region src/cli/bin.ts
|
|
9
8
|
const { positionals } = minArgs();
|
|
10
9
|
const config = {
|
|
@@ -44,6 +43,5 @@ Positional arguments:
|
|
|
44
43
|
`);
|
|
45
44
|
}
|
|
46
45
|
process.exit(0);
|
|
47
|
-
|
|
48
46
|
//#endregion
|
|
49
|
-
export {
|
|
47
|
+
export {};
|
package/dist/cli/build.mjs
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { getOptions } from "../options.mjs";
|
|
2
2
|
import { join, resolve } from "node:path";
|
|
3
3
|
import { build } from "rolldown";
|
|
4
|
-
|
|
5
4
|
//#region src/cli/build.ts
|
|
6
5
|
async function build$1(config) {
|
|
7
6
|
const { input, output } = getOptions(config);
|
|
@@ -12,6 +11,5 @@ async function build$1(config) {
|
|
|
12
11
|
const firstOut = resolve(process.cwd(), join("dist", result.output[0].fileName));
|
|
13
12
|
console.log(firstOut);
|
|
14
13
|
}
|
|
15
|
-
|
|
16
14
|
//#endregion
|
|
17
|
-
export { build$1 as build };
|
|
15
|
+
export { build$1 as build };
|
package/dist/cli/watch.mjs
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { getOptions } from "../options.mjs";
|
|
2
2
|
import { watch } from "rolldown";
|
|
3
|
-
|
|
4
3
|
//#region src/cli/watch.ts
|
|
5
4
|
function watch$1(config) {
|
|
6
5
|
return new Promise((resolve) => {
|
|
@@ -17,6 +16,5 @@ function watch$1(config) {
|
|
|
17
16
|
watcher.on("close", () => resolve());
|
|
18
17
|
});
|
|
19
18
|
}
|
|
20
|
-
|
|
21
19
|
//#endregion
|
|
22
|
-
export { watch$1 as watch };
|
|
20
|
+
export { watch$1 as watch };
|
package/dist/cli/ws.mjs
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { WebSocketServer } from "ws";
|
|
2
|
-
|
|
3
2
|
//#region src/cli/ws.ts
|
|
4
3
|
function createWebSocketServer() {
|
|
5
4
|
const wss = new WebSocketServer({ port: 0 });
|
|
@@ -28,6 +27,5 @@ function broadcastMessage(wss, message) {
|
|
|
28
27
|
if (client.readyState === WebSocket.OPEN) client.send(message);
|
|
29
28
|
});
|
|
30
29
|
}
|
|
31
|
-
|
|
32
30
|
//#endregion
|
|
33
|
-
export { broadcastMessage, createWebSocketServer };
|
|
31
|
+
export { broadcastMessage, createWebSocketServer };
|
package/dist/config.mjs
CHANGED
package/dist/constants.mjs
CHANGED
package/dist/index.mjs
CHANGED
package/dist/load.mjs
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import fs from "fs/promises";
|
|
2
2
|
import path from "path";
|
|
3
|
-
|
|
4
3
|
//#region src/load.ts
|
|
5
4
|
const CONFIG_NAMES = [
|
|
6
5
|
"peachy.config.ts",
|
|
@@ -37,6 +36,5 @@ async function loadUserOptions() {
|
|
|
37
36
|
async function exists(path) {
|
|
38
37
|
return fs.stat(path).then((info) => info.isFile()).catch(() => false);
|
|
39
38
|
}
|
|
40
|
-
|
|
41
39
|
//#endregion
|
|
42
|
-
export { loadUserOptions };
|
|
40
|
+
export { loadUserOptions };
|
package/dist/options.mjs
CHANGED
|
@@ -7,7 +7,6 @@ import { resourcesPlugin } from "@peachy/plugin-resources";
|
|
|
7
7
|
import { gjsRunner } from "@peachy/plugin-runner";
|
|
8
8
|
import { replacePlugin } from "rolldown/plugins";
|
|
9
9
|
import { cleandir } from "rollup-plugin-cleandir";
|
|
10
|
-
|
|
11
10
|
//#region src/options.ts
|
|
12
11
|
function getOptions(options) {
|
|
13
12
|
const { wss, port, setReloadHandler } = createWebSocketServer();
|
|
@@ -40,7 +39,7 @@ function getOptions(options) {
|
|
|
40
39
|
setRunnerEnv(key, value) {
|
|
41
40
|
options.runner.env[key] = value;
|
|
42
41
|
},
|
|
43
|
-
iconsPath: options.user.resources == true || options.user.resources?.icons === true ? PEACHY_ICONS_DEFAULT_PATH : options.user.resources?.icons == false ? false : options.user.resources?.icons ??
|
|
42
|
+
iconsPath: options.user.resources == true || options.user.resources?.icons === true ? PEACHY_ICONS_DEFAULT_PATH : options.user.resources?.icons == false ? false : options.user.resources?.icons ?? "data/icons",
|
|
44
43
|
bundle: typeof options.user.resources === "object" ? options.user.resources.bundle : void 0
|
|
45
44
|
}) : null,
|
|
46
45
|
cssPlugin({ prod })
|
|
@@ -56,6 +55,5 @@ function getOptions(options) {
|
|
|
56
55
|
}
|
|
57
56
|
};
|
|
58
57
|
}
|
|
59
|
-
|
|
60
58
|
//#endregion
|
|
61
|
-
export { getOptions };
|
|
59
|
+
export { getOptions };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@peachy/core",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.12",
|
|
4
4
|
"description": "Base peachy CLI",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Angelo Verlain <hey@vixalien.com>",
|
|
@@ -20,20 +20,20 @@
|
|
|
20
20
|
"./tsconfig": "./tsconfig.json"
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@peachy/types": "^
|
|
23
|
+
"@peachy/types": "^2026.3.10",
|
|
24
24
|
"minargs": "^2.1.0",
|
|
25
|
-
"rolldown": "1.0.0-rc.
|
|
25
|
+
"rolldown": "1.0.0-rc.7",
|
|
26
26
|
"rollup-plugin-cleandir": "^3.0.0",
|
|
27
27
|
"ws": "^8.19.0",
|
|
28
|
-
"@peachy/plugin-css": "0.0.
|
|
29
|
-
"@peachy/plugin-react": "0.0.
|
|
30
|
-
"@peachy/plugin-
|
|
31
|
-
"@peachy/plugin-
|
|
28
|
+
"@peachy/plugin-css": "0.0.12",
|
|
29
|
+
"@peachy/plugin-react": "0.0.12",
|
|
30
|
+
"@peachy/plugin-resources": "0.0.12",
|
|
31
|
+
"@peachy/plugin-runner": "0.0.12"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
|
-
"@types/node": "^25.
|
|
34
|
+
"@types/node": "^25.3.5",
|
|
35
35
|
"@types/ws": "^8.18.1",
|
|
36
|
-
"tsdown": "0.
|
|
36
|
+
"tsdown": "0.21.0",
|
|
37
37
|
"tsx": "^4.21.0"
|
|
38
38
|
},
|
|
39
39
|
"scripts": {
|
package/tsconfig.json
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"compilerOptions": {
|
|
3
3
|
"strict": true,
|
|
4
|
-
"checkJs": true,
|
|
5
4
|
"esModuleInterop": true,
|
|
6
5
|
"lib": ["es2024"],
|
|
7
6
|
"allowSyntheticDefaultImports": true,
|
|
@@ -9,7 +8,9 @@
|
|
|
9
8
|
"module": "Preserve",
|
|
10
9
|
"moduleResolution": "bundler",
|
|
11
10
|
"noEmit": true,
|
|
12
|
-
"skipLibCheck": true
|
|
11
|
+
"skipLibCheck": true,
|
|
12
|
+
"isolatedDeclarations": true,
|
|
13
|
+
"composite": true
|
|
13
14
|
},
|
|
14
15
|
"include": [
|
|
15
16
|
// when installed locally
|