@vercube/devkit 0.0.24 → 0.0.26

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.
Files changed (2) hide show
  1. package/dist/index.mjs +8 -13
  2. package/package.json +7 -7
package/dist/index.mjs CHANGED
@@ -15,14 +15,12 @@ import { resolve as resolve$1 } from "node:path";
15
15
  * @returns {DevKitTypes.App} The development server application instance.
16
16
  */
17
17
  async function createVercube(cfg) {
18
- const hooks = createHooks();
19
- const config = await loadVercubeConfig({
20
- ...cfg,
21
- dev: true
22
- });
23
18
  return {
24
- hooks,
25
- config
19
+ hooks: createHooks(),
20
+ config: await loadVercubeConfig({
21
+ ...cfg,
22
+ dev: true
23
+ })
26
24
  };
27
25
  }
28
26
 
@@ -100,9 +98,8 @@ async function build$1(ctx) {
100
98
  * @see https://github.com/nitrojs/nitro/blob/v2/src/core/build/dev.ts
101
99
  */
102
100
  async function watch$2(app) {
103
- const bundlerConfig = await getRolldownConfig(app.config.build);
104
101
  watch$1({
105
- ...bundlerConfig,
102
+ ...await getRolldownConfig(app.config.build),
106
103
  onwarn: () => {}
107
104
  }).on("event", (event) => {
108
105
  switch (event.code) {
@@ -149,8 +146,7 @@ function getWatchFunc(bundler) {
149
146
  * @returns {Promise<void>} A promise that resolves when the build is complete.
150
147
  */
151
148
  async function build(app) {
152
- const bundler = app?.config?.build?.bundler ?? "rolldown";
153
- await getBuildFunc(bundler)(app?.config?.build);
149
+ await getBuildFunc(app?.config?.build?.bundler ?? "rolldown")(app?.config?.build);
154
150
  }
155
151
 
156
152
  //#endregion
@@ -162,8 +158,7 @@ async function build(app) {
162
158
  * @see https://github.com/nitrojs/nitro/blob/v2/src/core/build/dev.ts
163
159
  */
164
160
  async function watch(app) {
165
- const bundler = app?.config?.build?.bundler ?? "rolldown";
166
- const watcher = getWatchFunc(bundler);
161
+ const watcher = getWatchFunc(app?.config?.build?.bundler ?? "rolldown");
167
162
  let start;
168
163
  app.hooks.hook("bundler-watch:start", () => {
169
164
  console.clear();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vercube/devkit",
3
- "version": "0.0.24",
3
+ "version": "0.0.26",
4
4
  "description": "Devkit module for Vercube framework",
5
5
  "repository": {
6
6
  "type": "git",
@@ -22,16 +22,16 @@
22
22
  "README.md"
23
23
  ],
24
24
  "dependencies": {
25
- "@oxc-project/runtime": "0.91.0",
25
+ "@oxc-project/runtime": "0.94.0",
26
26
  "consola": "3.4.2",
27
- "dotenv": "17.2.2",
27
+ "dotenv": "17.2.3",
28
28
  "hookable": "5.5.3",
29
- "oxc-parser": "0.91.0",
30
- "oxc-transform": "0.91.0",
29
+ "oxc-parser": "0.94.0",
30
+ "oxc-transform": "0.94.0",
31
31
  "pathe": "2.0.3",
32
- "rolldown": "1.0.0-beta.39",
32
+ "rolldown": "1.0.0-beta.42",
33
33
  "unplugin-isolated-decl": "0.15.2",
34
- "@vercube/core": "0.0.24"
34
+ "@vercube/core": "0.0.26"
35
35
  },
36
36
  "publishConfig": {
37
37
  "access": "public"