@vercube/devkit 0.0.21 → 0.0.22
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 +3 -2
- package/dist/index.mjs +10 -10
- package/package.json +7 -7
package/dist/index.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Hookable } from "hookable";
|
|
2
|
-
import { ConfigTypes } from "@vercube/core";
|
|
2
|
+
import { ConfigTypes, DeepPartial } from "@vercube/core";
|
|
3
3
|
import { Worker } from "node:worker_threads";
|
|
4
4
|
|
|
5
5
|
//#region src/Types/DevKitTypes.d.ts
|
|
@@ -64,9 +64,10 @@ declare namespace DevKitTypes {
|
|
|
64
64
|
//#region src/Common/App.d.ts
|
|
65
65
|
/**
|
|
66
66
|
* Creates a development server application.
|
|
67
|
+
* @param {DeepPartial<ConfigTypes.Config>} cfg - The configuration for the application.
|
|
67
68
|
* @returns {DevKitTypes.App} The development server application instance.
|
|
68
69
|
*/
|
|
69
|
-
declare function createVercube(): Promise<DevKitTypes.App>;
|
|
70
|
+
declare function createVercube(cfg?: DeepPartial<ConfigTypes.Config>): Promise<DevKitTypes.App>;
|
|
70
71
|
//#endregion
|
|
71
72
|
//#region src/Build/Build.d.ts
|
|
72
73
|
/**
|
package/dist/index.mjs
CHANGED
|
@@ -11,11 +11,15 @@ import { fork } from "node:child_process";
|
|
|
11
11
|
//#region src/Common/App.ts
|
|
12
12
|
/**
|
|
13
13
|
* Creates a development server application.
|
|
14
|
+
* @param {DeepPartial<ConfigTypes.Config>} cfg - The configuration for the application.
|
|
14
15
|
* @returns {DevKitTypes.App} The development server application instance.
|
|
15
16
|
*/
|
|
16
|
-
async function createVercube() {
|
|
17
|
+
async function createVercube(cfg) {
|
|
17
18
|
const hooks = createHooks();
|
|
18
|
-
const config = await loadVercubeConfig({
|
|
19
|
+
const config = await loadVercubeConfig({
|
|
20
|
+
...cfg,
|
|
21
|
+
dev: true
|
|
22
|
+
});
|
|
19
23
|
return {
|
|
20
24
|
hooks,
|
|
21
25
|
config
|
|
@@ -98,22 +102,18 @@ async function watch$2(app) {
|
|
|
98
102
|
});
|
|
99
103
|
watcher.on("event", (event) => {
|
|
100
104
|
switch (event.code) {
|
|
101
|
-
case "START":
|
|
105
|
+
case "START":
|
|
102
106
|
app.hooks.callHook("bundler-watch:init");
|
|
103
107
|
return;
|
|
104
|
-
|
|
105
|
-
case "BUNDLE_START": {
|
|
108
|
+
case "BUNDLE_START":
|
|
106
109
|
app.hooks.callHook("bundler-watch:start");
|
|
107
110
|
return;
|
|
108
|
-
|
|
109
|
-
case "END": {
|
|
111
|
+
case "END":
|
|
110
112
|
app.hooks.callHook("bundler-watch:end");
|
|
111
113
|
return;
|
|
112
|
-
|
|
113
|
-
case "ERROR": {
|
|
114
|
+
case "ERROR":
|
|
114
115
|
console.error(event.error);
|
|
115
116
|
app.hooks.callHook("bundler-watch:error", event.error);
|
|
116
|
-
}
|
|
117
117
|
}
|
|
118
118
|
});
|
|
119
119
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vercube/devkit",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.22",
|
|
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.
|
|
25
|
+
"@oxc-project/runtime": "0.82.1",
|
|
26
26
|
"consola": "3.4.2",
|
|
27
27
|
"dotenv": "17.2.1",
|
|
28
28
|
"hookable": "5.5.3",
|
|
29
|
-
"oxc-parser": "0.
|
|
30
|
-
"oxc-transform": "0.
|
|
29
|
+
"oxc-parser": "0.82.1",
|
|
30
|
+
"oxc-transform": "0.82.1",
|
|
31
31
|
"pathe": "2.0.3",
|
|
32
|
-
"rolldown": "1.0.0-beta.
|
|
33
|
-
"unplugin-isolated-decl": "0.
|
|
34
|
-
"@vercube/core": "0.0.
|
|
32
|
+
"rolldown": "1.0.0-beta.32",
|
|
33
|
+
"unplugin-isolated-decl": "0.15.0",
|
|
34
|
+
"@vercube/core": "0.0.22"
|
|
35
35
|
},
|
|
36
36
|
"publishConfig": {
|
|
37
37
|
"access": "public"
|