@vercube/devkit 1.2.1 → 1.2.2

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 CHANGED
@@ -2,7 +2,7 @@ import { ConfigTypes, DeepPartial } from "@vercube/core";
2
2
  import { Hookable } from "hookable";
3
3
  import { Worker } from "node:worker_threads";
4
4
  //#region src/Types/DevKitTypes.d.ts
5
- declare namespace DevKitTypes {
5
+ export declare namespace DevKitTypes {
6
6
  export type BuildFunc = (ctx?: ConfigTypes.BuildOptions) => void | Promise<void>;
7
7
  export type WatchFunc = (app?: App) => void | Promise<void>;
8
8
  type HookResult = void | Promise<void>;
@@ -68,7 +68,7 @@ declare namespace DevKitTypes {
68
68
  * @param cfg - Partial config merged before load (typically sets `dev: true` via spread).
69
69
  * @returns App handle with `hooks` and resolved `config`.
70
70
  */
71
- declare function createVercube(cfg?: DeepPartial<ConfigTypes.Config>): Promise<DevKitTypes.App>;
71
+ export declare function createVercube(cfg?: DeepPartial<ConfigTypes.Config>): Promise<DevKitTypes.App>;
72
72
  //#endregion
73
73
  //#region src/Build/Build.d.ts
74
74
  /**
@@ -76,7 +76,7 @@ declare function createVercube(cfg?: DeepPartial<ConfigTypes.Config>): Promise<D
76
76
  * @param {DevKitTypes.App} app - The application instance.
77
77
  * @returns {Promise<void>} A promise that resolves when the build is complete.
78
78
  */
79
- declare function build(app: DevKitTypes.App): Promise<void>;
79
+ export declare function build(app: DevKitTypes.App): Promise<void>;
80
80
  //#endregion
81
81
  //#region src/Build/Watch.d.ts
82
82
  /**
@@ -85,7 +85,7 @@ declare function build(app: DevKitTypes.App): Promise<void>;
85
85
  * This file is highly inspired by Nitro
86
86
  * @see https://github.com/nitrojs/nitro/blob/v2/src/core/build/dev.ts
87
87
  */
88
- declare function watch(app: DevKitTypes.App): Promise<void>;
88
+ export declare function watch(app: DevKitTypes.App): Promise<void>;
89
89
  //#endregion
90
90
  //#region src/Server/DevServer.d.ts
91
91
  /**
@@ -95,6 +95,5 @@ declare function watch(app: DevKitTypes.App): Promise<void>;
95
95
  * This file is highly inspired by Nitro
96
96
  * @see https://github.com/nitrojs/nitro/blob/v2/src/core/dev-server/server.ts
97
97
  */
98
- declare function createDevServer(app: DevKitTypes.App): DevKitTypes.DevServer;
99
- //#endregion
100
- export { DevKitTypes, build, createDevServer, createVercube, watch };
98
+ export declare function createDevServer(app: DevKitTypes.App): DevKitTypes.DevServer;
99
+ //#endregion
package/dist/index.mjs CHANGED
@@ -122,7 +122,8 @@ async function build$1(ctx) {
122
122
  * @returns Resolves when config load and all plugin `hooks` calls finish.
123
123
  */
124
124
  async function reloadDevkitResolvedConfig(app) {
125
- const next = await loadVercubeConfig({ dev: true }, { cwd: app.config.build?.root ?? process.cwd() });
125
+ const cwd = app.config.build?.root ?? process.cwd();
126
+ const next = await loadVercubeConfig({ dev: true }, { cwd });
126
127
  app.config = next;
127
128
  await invokeVercubePluginDevHooks(next.plugins, {
128
129
  hooks: app.hooks,
@@ -148,8 +149,9 @@ async function watch$3(app) {
148
149
  ];
149
150
  const startRolldown = async () => {
150
151
  rolldownWatcher?.close();
152
+ const bundlerConfig = await getRolldownConfig(app.config.build);
151
153
  const watcher = watch$1({
152
- ...await getRolldownConfig(app.config.build),
154
+ ...bundlerConfig,
153
155
  onwarn: () => {}
154
156
  });
155
157
  rolldownWatcher = watcher;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vercube/devkit",
3
- "version": "1.2.1",
3
+ "version": "1.2.2",
4
4
  "description": "Devkit module for Vercube framework",
5
5
  "repository": {
6
6
  "type": "git",
@@ -22,19 +22,19 @@
22
22
  "README.md"
23
23
  ],
24
24
  "dependencies": {
25
- "@oxc-project/runtime": "0.144.0",
26
- "c12": "4.0.0-beta.5",
25
+ "@oxc-project/runtime": "0.151.0",
26
+ "@vercube/core": "1.2.2",
27
+ "c12": "4.0.0-rc.2",
27
28
  "chokidar": "5.0.0",
28
29
  "consola": "3.4.2",
29
30
  "defu": "6.1.7",
30
- "dotenv": "17.4.2",
31
- "hookable": "6.1.1",
32
- "oxc-parser": "0.144.0",
33
- "oxc-transform": "0.144.0",
31
+ "dotenv": "18.0.4",
32
+ "hookable": "6.1.2",
33
+ "oxc-parser": "0.151.0",
34
+ "oxc-transform": "0.151.0",
34
35
  "pathe": "2.0.3",
35
- "rolldown": "1.2.4",
36
- "unplugin-isolated-decl": "0.17.0",
37
- "@vercube/core": "1.2.1"
36
+ "rolldown": "1.2.11",
37
+ "unplugin-isolated-decl": "0.17.0"
38
38
  },
39
39
  "publishConfig": {
40
40
  "access": "public"