@peachy/core 0.0.11 → 0.0.13

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 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 {};
@@ -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 };
@@ -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
@@ -2,6 +2,5 @@
2
2
  function defineConfig(options) {
3
3
  return options;
4
4
  }
5
-
6
5
  //#endregion
7
- export { defineConfig };
6
+ export { defineConfig };
@@ -1,5 +1,4 @@
1
1
  //#region src/constants.ts
2
2
  const PEACHY_ICONS_DEFAULT_PATH = "data/icons";
3
-
4
3
  //#endregion
5
- export { PEACHY_ICONS_DEFAULT_PATH };
4
+ export { PEACHY_ICONS_DEFAULT_PATH };
package/dist/env.d.mts ADDED
@@ -0,0 +1 @@
1
+ export { };
package/dist/index.mjs CHANGED
@@ -1,3 +1,2 @@
1
1
  import { defineConfig } from "./config.mjs";
2
-
3
- export { defineConfig };
2
+ export { defineConfig };
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 ?? PEACHY_ICONS_DEFAULT_PATH,
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.11",
3
+ "version": "0.0.13",
4
4
  "description": "Base peachy CLI",
5
5
  "license": "MIT",
6
6
  "author": "Angelo Verlain <hey@vixalien.com>",
@@ -9,33 +9,41 @@
9
9
  },
10
10
  "files": [
11
11
  "dist",
12
- "tsconfig.json"
12
+ "tsconfig.json",
13
+ "tsconfig.app.json"
13
14
  ],
14
15
  "type": "module",
15
16
  "exports": {
16
17
  ".": {
17
18
  "import": "./dist/index.mjs",
18
- "types": "./dist/index.d.ts"
19
+ "types": "./dist/index.d.mts"
19
20
  },
20
- "./tsconfig": "./tsconfig.json"
21
+ "./tsconfig.lib": "./tsconfig.json",
22
+ "./tsconfig.app": "./tsconfig.app.json",
23
+ "./types": {
24
+ "types": "./dist/env.d.mts"
25
+ }
21
26
  },
22
27
  "dependencies": {
23
- "@peachy/types": "^0.0.0-girgen.2",
24
28
  "minargs": "^2.1.0",
25
- "rolldown": "1.0.0-rc.3",
29
+ "rolldown": "1.0.0-rc.14",
26
30
  "rollup-plugin-cleandir": "^3.0.0",
27
- "ws": "^8.19.0",
28
- "@peachy/plugin-css": "0.0.11",
29
- "@peachy/plugin-react": "0.0.11",
30
- "@peachy/plugin-runner": "0.0.11",
31
- "@peachy/plugin-resources": "0.0.11"
31
+ "ws": "^8.20.0",
32
+ "@peachy/plugin-css": "0.0.13",
33
+ "@peachy/plugin-react": "0.0.13",
34
+ "@peachy/plugin-resources": "0.0.13",
35
+ "@peachy/plugin-runner": "0.0.13"
32
36
  },
33
37
  "devDependencies": {
34
- "@types/node": "^25.2.1",
38
+ "@peachy/types": "^2026.4.9",
39
+ "@types/node": "^25.5.2",
35
40
  "@types/ws": "^8.18.1",
36
- "tsdown": "0.20.3",
41
+ "tsdown": "0.21.7",
37
42
  "tsx": "^4.21.0"
38
43
  },
44
+ "peerDependencies": {
45
+ "@peachy/types": "^2026.3.10"
46
+ },
39
47
  "scripts": {
40
48
  "build": "tsdown"
41
49
  }
@@ -0,0 +1,17 @@
1
+ {
2
+ "$schema": "https://json.schemastore.org/tsconfig",
3
+ "compilerOptions": {
4
+ "strict": true,
5
+ "esModuleInterop": true,
6
+ "lib": ["es2024"],
7
+ "allowSyntheticDefaultImports": true,
8
+ "target": "ES2020",
9
+ "module": "Preserve",
10
+ "moduleResolution": "bundler",
11
+ "noEmit": true,
12
+ "skipLibCheck": true,
13
+ "types": ["@peachy/core/types"]
14
+ },
15
+ "include": ["@peachy/core/types", "${configDir}/src"],
16
+ "exclude": ["dist", "${configDir}/dist"]
17
+ }
package/tsconfig.json CHANGED
@@ -1,26 +1,8 @@
1
1
  {
2
+ "$schema": "https://json.schemastore.org/tsconfig",
3
+ "extends": "./tsconfig.app.json",
2
4
  "compilerOptions": {
3
- "strict": true,
4
- "checkJs": true,
5
- "esModuleInterop": true,
6
- "lib": ["es2024"],
7
- "allowSyntheticDefaultImports": true,
8
- "target": "ES2020",
9
- "module": "Preserve",
10
- "moduleResolution": "bundler",
11
- "noEmit": true,
12
- "skipLibCheck": true
13
- },
14
- "include": [
15
- // when installed locally
16
- "./node_modules/@peachy/types/types/index.d.ts",
17
- "./node_modules/@peachy/plugin-resources/src/modules.d.ts",
18
- "./node_modules/@peachy/plugin-css/src/modules.d.ts",
19
- // when installed via npm/pnpm
20
- "../types/types/index.d.ts",
21
- "../plugin-resources/src/modules.d.ts",
22
- "../plugin-css/src/modules.d.ts",
23
- "${configDir}/src/**/*"
24
- ],
25
- "exclude": ["dist", "${configDir}/dist"]
5
+ "isolatedDeclarations": true,
6
+ "composite": true
7
+ }
26
8
  }