@deot/dev-dever 2.6.2 → 2.7.0
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.cjs +5 -3
- package/dist/index.js +5 -3
- package/package.json +6 -6
package/dist/index.cjs
CHANGED
|
@@ -136,10 +136,12 @@ const run = (options) => devShared.Utils.autoCatch(async () => {
|
|
|
136
136
|
}
|
|
137
137
|
process.env.DEV_OPTIONS = encodeURIComponent(JSON.stringify(devOptions));
|
|
138
138
|
const server = await vite.createServer(options$);
|
|
139
|
-
|
|
140
|
-
const { local = [], network = [] } =
|
|
141
|
-
const url = network[0] || local[0] || `http://localhost:${
|
|
139
|
+
await server.listen();
|
|
140
|
+
const { local = [], network = [] } = server.resolvedUrls || {};
|
|
141
|
+
const url = network[0] || local[0] || `http://localhost:${server.config.server.port}`;
|
|
142
142
|
entries.forEach((item) => devShared.Logger.log(` > ${item}: ${chalk.cyan(`${url}${item}.html`)}`));
|
|
143
|
+
server.printUrls();
|
|
144
|
+
server.bindCLIShortcuts({ print: true });
|
|
143
145
|
});
|
|
144
146
|
|
|
145
147
|
exports.run = run;
|
package/dist/index.js
CHANGED
|
@@ -111,10 +111,12 @@ const run = (options) => Utils.autoCatch(async () => {
|
|
|
111
111
|
}
|
|
112
112
|
process.env.DEV_OPTIONS = encodeURIComponent(JSON.stringify(devOptions));
|
|
113
113
|
const server = await createServer(options$);
|
|
114
|
-
|
|
115
|
-
const { local = [], network = [] } =
|
|
116
|
-
const url = network[0] || local[0] || `http://localhost:${
|
|
114
|
+
await server.listen();
|
|
115
|
+
const { local = [], network = [] } = server.resolvedUrls || {};
|
|
116
|
+
const url = network[0] || local[0] || `http://localhost:${server.config.server.port}`;
|
|
117
117
|
entries.forEach((item) => Logger.log(` > ${item}: ${chalk.cyan(`${url}${item}.html`)}`));
|
|
118
|
+
server.printUrls();
|
|
119
|
+
server.bindCLIShortcuts({ print: true });
|
|
118
120
|
});
|
|
119
121
|
|
|
120
122
|
export { run };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@deot/dev-dever",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.7.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -21,14 +21,14 @@
|
|
|
21
21
|
"access": "public"
|
|
22
22
|
},
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@deot/dev-react": "^2.
|
|
25
|
-
"@deot/dev-shared": "^2.
|
|
26
|
-
"@deot/dev-vue": "^2.
|
|
24
|
+
"@deot/dev-react": "^2.7.0",
|
|
25
|
+
"@deot/dev-shared": "^2.7.0",
|
|
26
|
+
"@deot/dev-vue": "^2.7.0",
|
|
27
27
|
"ejs": "^3.1.9",
|
|
28
|
-
"vite": "^
|
|
28
|
+
"vite": "^5.0.5"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
|
-
"@deot/dev-test": "^2.
|
|
31
|
+
"@deot/dev-test": "^2.7.0",
|
|
32
32
|
"cross-env": "^7.0.3"
|
|
33
33
|
}
|
|
34
34
|
}
|