kirbyup 2.0.0 → 2.0.1
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.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { cac } from 'cac';
|
|
2
|
-
import { n as name, b as build, s as serve, v as version, h as handleError } from './shared/kirbyup.
|
|
2
|
+
import { n as name, b as build, s as serve, v as version, h as handleError } from './shared/kirbyup.3c5fa7eb.mjs';
|
|
3
3
|
import 'node:fs';
|
|
4
4
|
import 'node:fs/promises';
|
|
5
5
|
import 'pathe';
|
package/dist/index.mjs
CHANGED
|
@@ -2,7 +2,7 @@ import 'node:fs';
|
|
|
2
2
|
import 'node:fs/promises';
|
|
3
3
|
import 'pathe';
|
|
4
4
|
import 'vite';
|
|
5
|
-
export { b as build, s as serve } from './shared/kirbyup.
|
|
5
|
+
export { b as build, s as serve } from './shared/kirbyup.3c5fa7eb.mjs';
|
|
6
6
|
import 'postcss-load-config';
|
|
7
7
|
import 'postcss-logical';
|
|
8
8
|
import 'postcss-dir-pseudo-class';
|
|
@@ -3270,7 +3270,7 @@ function vuePlugin(rawOptions = {}) {
|
|
|
3270
3270
|
}
|
|
3271
3271
|
|
|
3272
3272
|
const name = "kirbyup";
|
|
3273
|
-
const version = "2.0.
|
|
3273
|
+
const version = "2.0.1";
|
|
3274
3274
|
|
|
3275
3275
|
class PrettyError extends Error {
|
|
3276
3276
|
constructor(message) {
|
|
@@ -3424,8 +3424,9 @@ function kirbyupHmrPlugin(options) {
|
|
|
3424
3424
|
return;
|
|
3425
3425
|
server.httpServer.once("listening", async () => {
|
|
3426
3426
|
const entryPath = entry.replace(`${config.root}/`, "");
|
|
3427
|
-
const { address, port } = server.httpServer.address();
|
|
3428
|
-
const
|
|
3427
|
+
const { address, family, port } = server.httpServer.address();
|
|
3428
|
+
const hostname = family === "IPv6" ? `[${address}]` : address;
|
|
3429
|
+
const baseUrl = `http://${hostname}:${port}${config.base}`;
|
|
3429
3430
|
const entryUrl = new URL(entryPath, baseUrl).href;
|
|
3430
3431
|
const pm = await detect().catch(() => "npm");
|
|
3431
3432
|
await writeFile(indexMjs, getViteProxyModule(entryUrl, pm));
|