@peachy/core 0.0.10 → 0.0.11

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
@@ -1,9 +1,9 @@
1
1
  #!/usr/bin/env node
2
+ import { loadUserOptions } from "../load.mjs";
2
3
  import { build } from "./build.mjs";
3
4
  import { watch } from "./watch.mjs";
4
- import { loadUserOptions } from "../load.mjs";
5
- import { minArgs } from "minargs";
6
5
  import { join } from "node:path";
6
+ import { minArgs } from "minargs";
7
7
 
8
8
  //#region src/cli/bin.ts
9
9
  const { positionals } = minArgs();
@@ -1,6 +1,6 @@
1
1
  import { getOptions } from "../options.mjs";
2
- import { build } from "rolldown";
3
2
  import { join, resolve } from "node:path";
3
+ import { build } from "rolldown";
4
4
 
5
5
  //#region src/cli/build.ts
6
6
  async function build$1(config) {
package/dist/options.mjs CHANGED
@@ -1,11 +1,12 @@
1
1
  import { broadcastMessage, createWebSocketServer } from "./cli/ws.mjs";
2
2
  import { PEACHY_ICONS_DEFAULT_PATH } from "./constants.mjs";
3
+ import { resolve } from "node:path";
4
+ import { cssPlugin } from "@peachy/plugin-css";
3
5
  import { reactHMRPlugin } from "@peachy/plugin-react";
6
+ import { resourcesPlugin } from "@peachy/plugin-resources";
4
7
  import { gjsRunner } from "@peachy/plugin-runner";
5
- import { resolve } from "node:path";
6
8
  import { replacePlugin } from "rolldown/plugins";
7
9
  import { cleandir } from "rollup-plugin-cleandir";
8
- import { resourcesPlugin } from "@peachy/plugin-resources";
9
10
 
10
11
  //#region src/options.ts
11
12
  function getOptions(options) {
@@ -39,8 +40,10 @@ function getOptions(options) {
39
40
  setRunnerEnv(key, value) {
40
41
  options.runner.env[key] = value;
41
42
  },
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 ?? PEACHY_ICONS_DEFAULT_PATH
43
- }) : null
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,
44
+ bundle: typeof options.user.resources === "object" ? options.user.resources.bundle : void 0
45
+ }) : null,
46
+ cssPlugin({ prod })
44
47
  ]
45
48
  },
46
49
  output: {
package/dist/types.d.mts CHANGED
@@ -1,3 +1,4 @@
1
+ import { BundledResource } from "@peachy/plugin-resources";
1
2
  import { RunnerOptions } from "@peachy/plugin-runner";
2
3
 
3
4
  //#region src/types.d.ts
@@ -21,6 +22,10 @@ interface UserOptions {
21
22
  * Default is true
22
23
  */
23
24
  icons?: boolean | string;
25
+ /**
26
+ * Resources to bundle automatically
27
+ */
28
+ bundle?: BundledResource[];
24
29
  };
25
30
  }
26
31
  interface InternalOptions {
package/package.json CHANGED
@@ -1,11 +1,17 @@
1
1
  {
2
2
  "name": "@peachy/core",
3
- "version": "0.0.10",
3
+ "version": "0.0.11",
4
4
  "description": "Base peachy CLI",
5
- "type": "module",
5
+ "license": "MIT",
6
+ "author": "Angelo Verlain <hey@vixalien.com>",
6
7
  "bin": {
7
8
  "peachy": "./dist/cli/bin.mjs"
8
9
  },
10
+ "files": [
11
+ "dist",
12
+ "tsconfig.json"
13
+ ],
14
+ "type": "module",
9
15
  "exports": {
10
16
  ".": {
11
17
  "import": "./dist/index.mjs",
@@ -13,28 +19,23 @@
13
19
  },
14
20
  "./tsconfig": "./tsconfig.json"
15
21
  },
16
- "author": "Angelo Verlain <hey@vixalien.com>",
17
- "license": "MIT",
18
- "devDependencies": {
19
- "@types/node": "^25.2.1",
20
- "@types/ws": "^8.18.1",
21
- "tsdown": "0.20.3",
22
- "tsx": "^4.21.0"
23
- },
24
22
  "dependencies": {
25
- "@peachy/types": "^2025.2.4",
23
+ "@peachy/types": "^0.0.0-girgen.2",
26
24
  "minargs": "^2.1.0",
27
25
  "rolldown": "1.0.0-rc.3",
28
26
  "rollup-plugin-cleandir": "^3.0.0",
29
27
  "ws": "^8.19.0",
30
- "@peachy/plugin-runner": "0.0.10",
31
- "@peachy/plugin-react": "0.0.10",
32
- "@peachy/plugin-resources": "0.0.10"
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"
32
+ },
33
+ "devDependencies": {
34
+ "@types/node": "^25.2.1",
35
+ "@types/ws": "^8.18.1",
36
+ "tsdown": "0.20.3",
37
+ "tsx": "^4.21.0"
33
38
  },
34
- "files": [
35
- "dist",
36
- "tsconfig.json"
37
- ],
38
39
  "scripts": {
39
40
  "build": "tsdown"
40
41
  }
package/tsconfig.json CHANGED
@@ -9,15 +9,18 @@
9
9
  "module": "Preserve",
10
10
  "moduleResolution": "bundler",
11
11
  "noEmit": true,
12
- "skipLibCheck": true,
12
+ "skipLibCheck": true
13
13
  },
14
14
  "include": [
15
15
  // when installed locally
16
16
  "./node_modules/@peachy/types/types/index.d.ts",
17
- "./node_modules/@peachy/plugin-resources/src/types/global.d.ts",
17
+ "./node_modules/@peachy/plugin-resources/src/modules.d.ts",
18
+ "./node_modules/@peachy/plugin-css/src/modules.d.ts",
18
19
  // when installed via npm/pnpm
19
20
  "../types/types/index.d.ts",
20
- "../plugin-resources/src/types/global.d.ts",
21
- "${configDir}/src/**/*",
21
+ "../plugin-resources/src/modules.d.ts",
22
+ "../plugin-css/src/modules.d.ts",
23
+ "${configDir}/src/**/*"
22
24
  ],
25
+ "exclude": ["dist", "${configDir}/dist"]
23
26
  }