@nuxt/cli-nightly 3.26.0-20250607-210256-59f83b1 → 3.26.0-20250607-223602-1089c0e

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 (36) hide show
  1. package/bin/nuxi.mjs +1 -0
  2. package/dist/chunks/add.mjs +308 -290
  3. package/dist/chunks/add2.mjs +291 -307
  4. package/dist/chunks/analyze.mjs +8 -7
  5. package/dist/chunks/build.mjs +11 -11
  6. package/dist/chunks/cleanup.mjs +8 -7
  7. package/dist/chunks/dev-child.mjs +11 -71
  8. package/dist/chunks/dev.mjs +142 -117
  9. package/dist/chunks/devtools.mjs +3 -2
  10. package/dist/chunks/generate.mjs +8 -8
  11. package/dist/chunks/index.mjs +379 -12
  12. package/dist/chunks/index2.mjs +15 -0
  13. package/dist/chunks/info.mjs +8 -6
  14. package/dist/chunks/init.mjs +7 -5
  15. package/dist/chunks/prepare.mjs +7 -6
  16. package/dist/chunks/preview.mjs +6 -5
  17. package/dist/chunks/search.mjs +3 -2
  18. package/dist/chunks/test.mjs +3 -2
  19. package/dist/chunks/typecheck.mjs +6 -6
  20. package/dist/chunks/upgrade.mjs +9 -8
  21. package/dist/dev/index.d.mts +75 -0
  22. package/dist/dev/index.d.ts +75 -0
  23. package/dist/dev/index.mjs +21 -0
  24. package/dist/index.mjs +2 -1
  25. package/dist/shared/cli-nightly.B9AmABr3.mjs +5 -0
  26. package/dist/shared/{cli-nightly.DPQxxyDx.mjs → cli-nightly.BUFTQIaz.mjs} +1 -1
  27. package/dist/shared/{cli-nightly.DlcAx0De.mjs → cli-nightly.BrKZotr9.mjs} +11 -9
  28. package/dist/shared/{cli-nightly.DDBHWicM.mjs → cli-nightly.Bu_9IHj2.mjs} +2 -2
  29. package/dist/shared/{cli-nightly.DTVmTXKJ.mjs → cli-nightly.Cq6GVhe3.mjs} +7 -6
  30. package/dist/shared/{cli-nightly.BnfAj4iy.mjs → cli-nightly.DPmMxQ6h.mjs} +1 -1
  31. package/dist/shared/{cli-nightly.CjK7ZDKA.mjs → cli-nightly.DSXVWJCf.mjs} +9 -10
  32. package/dist/shared/cli-nightly.Dc8ncNQ_.mjs +27 -0
  33. package/dist/shared/{cli-nightly.DdmGgrsK.mjs → cli-nightly.DkO5RR_e.mjs} +1 -1
  34. package/package.json +2 -1
  35. package/dist/chunks/dev2.mjs +0 -293
  36. package/dist/shared/cli-nightly.COGWopdX.mjs +0 -26
@@ -1,17 +1,18 @@
1
1
  import { defineCommand } from 'citty';
2
2
  import { resolve } from 'pathe';
3
- import { l as loadKit } from '../shared/cli-nightly.DlcAx0De.mjs';
4
- import { c as cleanupNuxtDirs } from '../shared/cli-nightly.DDBHWicM.mjs';
5
- import { b as legacyRootDirArgs, c as cwdArgs } from '../shared/cli-nightly.CjK7ZDKA.mjs';
6
- import 'jiti';
3
+ import { l as loadKit } from '../shared/cli-nightly.BrKZotr9.mjs';
4
+ import { c as cleanupNuxtDirs } from '../shared/cli-nightly.Bu_9IHj2.mjs';
5
+ import { l as legacyRootDirArgs, c as cwdArgs } from '../shared/cli-nightly.DSXVWJCf.mjs';
6
+ import 'node:url';
7
+ import 'exsolve';
7
8
  import 'node:fs';
8
9
  import 'ohash';
9
- import '../shared/cli-nightly.BnfAj4iy.mjs';
10
+ import '../shared/cli-nightly.B9AmABr3.mjs';
11
+ import 'consola';
12
+ import '../shared/cli-nightly.DPmMxQ6h.mjs';
10
13
  import 'node:path';
11
14
  import 'node:process';
12
15
  import 'std-env';
13
- import 'consola';
14
- import 'node:url';
15
16
 
16
17
  const cleanup = defineCommand({
17
18
  meta: {
@@ -1,26 +1,11 @@
1
1
  import process from 'node:process';
2
2
  import { defineCommand } from 'citty';
3
- import defu from 'defu';
4
3
  import { resolve } from 'pathe';
5
4
  import { isTest } from 'std-env';
6
- import { _ as _getDevServerOverrides, a as _getDevServerDefaults, c as createNuxtDevServer } from './dev2.mjs';
7
- import { o as overrideEnv } from '../shared/cli-nightly.DdmGgrsK.mjs';
8
- import { b as legacyRootDirArgs, d as dotEnvArgs, e as envNameArgs, l as logLevelArgs, c as cwdArgs, a as logger } from '../shared/cli-nightly.CjK7ZDKA.mjs';
9
- import 'node:events';
10
- import 'chokidar';
11
- import 'h3';
12
- import 'jiti';
13
- import 'listhen';
14
- import 'perfect-debounce';
15
- import 'ufo';
16
- import '../shared/cli-nightly.BnfAj4iy.mjs';
17
- import 'node:fs';
18
- import '../shared/cli-nightly.DlcAx0De.mjs';
19
- import '../shared/cli-nightly.DDBHWicM.mjs';
20
- import 'ohash';
21
- import 'youch';
5
+ import { l as legacyRootDirArgs, d as dotEnvArgs, e as envNameArgs, a as logLevelArgs, c as cwdArgs } from '../shared/cli-nightly.DSXVWJCf.mjs';
22
6
  import 'node:path';
23
7
  import 'consola';
8
+ import '../shared/cli-nightly.B9AmABr3.mjs';
24
9
  import 'node:url';
25
10
 
26
11
  const devChild = defineCommand({
@@ -33,65 +18,20 @@ const devChild = defineCommand({
33
18
  ...logLevelArgs,
34
19
  ...envNameArgs,
35
20
  ...dotEnvArgs,
36
- ...legacyRootDirArgs
21
+ ...legacyRootDirArgs,
22
+ clear: {
23
+ type: "boolean",
24
+ description: "Clear console on restart",
25
+ negativeDescription: "Disable clear console on restart"
26
+ }
37
27
  },
38
28
  async run(ctx) {
39
29
  if (!process.send && !isTest) {
40
- logger.warn("`nuxi _dev` is an internal command and should not be used directly. Please use `nuxi dev` instead.");
30
+ console.warn("`nuxi _dev` is an internal command and should not be used directly. Please use `nuxi dev` instead.");
41
31
  }
42
- overrideEnv("development");
43
32
  const cwd = resolve(ctx.args.cwd || ctx.args.rootDir);
44
- const devContext = JSON.parse(process.env.__NUXT_DEV__ || "null") || {};
45
- function sendIPCMessage(message) {
46
- if (process.send) {
47
- process.send(message);
48
- } else {
49
- logger.info(
50
- "Dev server event:",
51
- Object.entries(message).map((e) => `${e[0]}=${JSON.stringify(e[1])}`).join(" ")
52
- );
53
- }
54
- }
55
- process.once("unhandledRejection", (reason) => {
56
- sendIPCMessage({ type: "nuxt:internal:dev:rejection", message: reason instanceof Error ? reason.toString() : "Unhandled Rejection" });
57
- process.exit();
58
- });
59
- const devServerOverrides = _getDevServerOverrides({
60
- public: devContext.public
61
- });
62
- const devServerDefaults = _getDevServerDefaults({
63
- hostname: devContext.hostname,
64
- https: devContext.proxy?.https
65
- }, devContext.publicURLs);
66
- const nuxtDev = await createNuxtDevServer({
67
- cwd,
68
- overrides: defu(ctx.data?.overrides, devServerOverrides),
69
- defaults: devServerDefaults,
70
- logLevel: ctx.args.logLevel,
71
- clear: !!ctx.args.clear,
72
- dotenv: { cwd, fileName: ctx.args.dotenv },
73
- envName: ctx.args.envName,
74
- port: process.env._PORT ?? void 0,
75
- devContext
76
- });
77
- nuxtDev.on("loading:error", (_error) => {
78
- sendIPCMessage({ type: "nuxt:internal:dev:loading:error", error: {
79
- message: _error.message,
80
- stack: _error.stack,
81
- name: _error.name,
82
- code: _error.code
83
- } });
84
- });
85
- nuxtDev.on("loading", (message) => {
86
- sendIPCMessage({ type: "nuxt:internal:dev:loading", message });
87
- });
88
- nuxtDev.on("restart", () => {
89
- sendIPCMessage({ type: "nuxt:internal:dev:restart" });
90
- });
91
- nuxtDev.on("ready", (payload) => {
92
- sendIPCMessage({ type: "nuxt:internal:dev:ready", port: payload.port });
93
- });
94
- await nuxtDev.init();
33
+ const { initialize } = await import('./index.mjs').then(function (n) { return n.a; });
34
+ await initialize({ cwd, args: ctx.args }, ctx);
95
35
  }
96
36
  });
97
37
 
@@ -1,35 +1,36 @@
1
1
  import { fork } from 'node:child_process';
2
2
  import process from 'node:process';
3
3
  import { defineCommand } from 'citty';
4
- import defu from 'defu';
5
- import { createJiti } from 'jiti';
4
+ import { createProxyServer } from 'httpxy';
5
+ import { listen } from 'listhen';
6
6
  import { getArgs, parseArgs } from 'listhen/cli';
7
7
  import { resolve } from 'pathe';
8
8
  import { satisfies } from 'semver';
9
9
  import { isTest, isBun } from 'std-env';
10
- import { s as showVersions } from '../shared/cli-nightly.COGWopdX.mjs';
11
- import { _ as _getDevServerOverrides, a as _getDevServerDefaults, r as renderError } from './dev2.mjs';
12
- import { o as overrideEnv } from '../shared/cli-nightly.DdmGgrsK.mjs';
13
- import { l as loadKit } from '../shared/cli-nightly.DlcAx0De.mjs';
14
- import { e as envNameArgs, b as legacyRootDirArgs, d as dotEnvArgs, l as logLevelArgs, c as cwdArgs, a as logger } from '../shared/cli-nightly.CjK7ZDKA.mjs';
15
- import 'consola/utils';
16
- import 'pkg-types';
10
+ import { i as initialize, r as renderError } from './index.mjs';
11
+ import { s as showVersions } from '../shared/cli-nightly.Dc8ncNQ_.mjs';
12
+ import { o as overrideEnv } from '../shared/cli-nightly.DkO5RR_e.mjs';
13
+ import { l as loadKit } from '../shared/cli-nightly.BrKZotr9.mjs';
14
+ import { l as logger } from '../shared/cli-nightly.B9AmABr3.mjs';
15
+ import { e as envNameArgs, l as legacyRootDirArgs, d as dotEnvArgs, a as logLevelArgs, c as cwdArgs } from '../shared/cli-nightly.DSXVWJCf.mjs';
16
+ import 'defu';
17
17
  import 'node:events';
18
18
  import 'chokidar';
19
19
  import 'h3';
20
- import 'listhen';
21
20
  import 'perfect-debounce';
22
21
  import 'ufo';
23
- import '../shared/cli-nightly.BnfAj4iy.mjs';
22
+ import '../shared/cli-nightly.DPmMxQ6h.mjs';
24
23
  import 'node:fs';
25
- import '../shared/cli-nightly.DDBHWicM.mjs';
24
+ import '../shared/cli-nightly.Bu_9IHj2.mjs';
26
25
  import 'ohash';
27
26
  import 'youch';
28
- import 'node:path';
29
- import 'consola';
27
+ import 'consola/utils';
28
+ import 'exsolve';
30
29
  import 'node:url';
30
+ import 'consola';
31
+ import 'node:path';
31
32
 
32
- let startTime = Date.now();
33
+ const startTime = Date.now();
33
34
  const forkSupported = !isTest && (!isBun || isBunForkSupported());
34
35
  const listhenArgs = getArgs();
35
36
  const command = defineCommand({
@@ -90,7 +91,7 @@ const command = defineCommand({
90
91
  async run(ctx) {
91
92
  overrideEnv("development");
92
93
  const cwd = resolve(ctx.args.cwd || ctx.args.rootDir);
93
- await showVersions(cwd);
94
+ showVersions(cwd);
94
95
  const { loadNuxtConfig } = await loadKit(cwd);
95
96
  const nuxtOptions = await loadNuxtConfig({
96
97
  cwd,
@@ -103,69 +104,65 @@ const command = defineCommand({
103
104
  ...ctx.data?.overrides
104
105
  }
105
106
  });
106
- const listenOptions = _resolveListenOptions(nuxtOptions, ctx.args);
107
- if (ctx.args.fork) {
108
- const devProxy = await _createDevProxy(nuxtOptions, listenOptions);
109
- const subprocess = await _startSubprocess(devProxy, ctx.rawArgs, listenOptions);
110
- return {
111
- listener: devProxy?.listener,
112
- async close() {
113
- await devProxy?.listener.close();
114
- subprocess?.kill(0);
115
- }
116
- };
117
- } else {
118
- const { createNuxtDevServer } = await import('./dev2.mjs').then(function (n) { return n.d; });
119
- const devServerOverrides = _getDevServerOverrides({
120
- public: listenOptions.public
121
- });
122
- const devServerDefaults = _getDevServerDefaults({
107
+ const listenOptions = resolveListenOptions(nuxtOptions, ctx.args);
108
+ if (!ctx.args.fork) {
109
+ const { listener, close: close2 } = await initialize({
110
+ cwd,
111
+ args: ctx.args,
123
112
  hostname: listenOptions.hostname,
124
- https: listenOptions.https
125
- });
126
- const devServer = await createNuxtDevServer(
127
- {
128
- cwd,
129
- overrides: defu(ctx.data?.overrides, devServerOverrides),
130
- defaults: devServerDefaults,
131
- logLevel: ctx.args.logLevel,
132
- clear: ctx.args.clear,
133
- dotenv: {
134
- cwd,
135
- fileName: ctx.args.dotenv
136
- },
137
- envName: ctx.args.envName,
138
- loadingTemplate: nuxtOptions.devServer.loadingTemplate,
139
- devContext: {}
140
- },
141
- listenOptions
142
- );
143
- await devServer.init();
113
+ public: listenOptions.public,
114
+ publicURLs: void 0,
115
+ proxy: {
116
+ https: listenOptions.https
117
+ }
118
+ }, { data: ctx.data }, listenOptions);
144
119
  return {
145
- listener: devServer?.listener,
120
+ listener,
146
121
  async close() {
147
- await devServer.listener.close();
148
- await devServer.close();
122
+ await close2();
123
+ await listener.close();
149
124
  }
150
125
  };
151
126
  }
127
+ const devProxy = await createDevProxy(nuxtOptions, listenOptions);
128
+ const urls = await devProxy.listener.getURLs();
129
+ const { onRestart, onReady, close } = await initialize({
130
+ cwd,
131
+ args: ctx.args,
132
+ hostname: listenOptions.hostname,
133
+ public: listenOptions.public,
134
+ publicURLs: urls.map((r) => r.url),
135
+ proxy: {
136
+ url: devProxy.listener.url,
137
+ urls,
138
+ https: devProxy.listener.https
139
+ }
140
+ });
141
+ onReady((port) => devProxy.setAddress(`http://127.0.0.1:${port}`));
142
+ const fork2 = startSubprocess(cwd, ctx.args, ctx.rawArgs, listenOptions);
143
+ onRestart(async (devServer) => {
144
+ await devServer.close();
145
+ const subprocess = await fork2;
146
+ await subprocess.initialize(devProxy);
147
+ });
148
+ return {
149
+ listener: devProxy.listener,
150
+ async close() {
151
+ await close();
152
+ const subprocess = await fork2;
153
+ subprocess.kill(0);
154
+ await devProxy.listener.close();
155
+ }
156
+ };
152
157
  }
153
158
  });
154
- async function _createDevProxy(nuxtOptions, listenOptions) {
155
- const jiti = createJiti(nuxtOptions.rootDir);
159
+ async function createDevProxy(nuxtOptions, listenOptions) {
156
160
  let loadingMessage = "Nuxt dev server is starting...";
157
161
  let error;
162
+ let address;
158
163
  let loadingTemplate = nuxtOptions.devServer.loadingTemplate;
159
- for (const url of nuxtOptions.modulesDir) {
160
- if (loadingTemplate) {
161
- break;
162
- }
163
- loadingTemplate = await jiti.import("@nuxt/ui-templates", { parentURL: url }).then((r) => r.loading);
164
- }
165
- const { createProxyServer } = await import('httpxy');
166
164
  const proxy = createProxyServer({});
167
- let address;
168
- const handler = (req, res) => {
165
+ const listener = await listen((req, res) => {
169
166
  if (error) {
170
167
  renderError(req, res, error);
171
168
  return;
@@ -173,25 +170,38 @@ async function _createDevProxy(nuxtOptions, listenOptions) {
173
170
  if (!address) {
174
171
  res.statusCode = 503;
175
172
  res.setHeader("Content-Type", "text/html");
176
- res.end(loadingTemplate({ loading: loadingMessage }));
177
- return;
173
+ if (loadingTemplate) {
174
+ res.end(loadingTemplate({ loading: loadingMessage }));
175
+ return;
176
+ }
177
+ async function resolveLoadingMessage() {
178
+ const { createJiti } = await import('jiti');
179
+ const jiti = createJiti(nuxtOptions.rootDir);
180
+ for (const url of nuxtOptions.modulesDir) {
181
+ const r = await jiti.import("@nuxt/ui-templates", {
182
+ parentURL: url,
183
+ try: true
184
+ });
185
+ if (r) {
186
+ loadingTemplate = r.loading;
187
+ res.end(r.loading({ loading: loadingMessage }));
188
+ break;
189
+ }
190
+ }
191
+ }
192
+ return resolveLoadingMessage();
178
193
  }
179
- return proxy.web(req, res, { target: address });
180
- };
181
- const wsHandler = (req, socket, head) => {
194
+ proxy.web(req, res, { target: address });
195
+ }, listenOptions);
196
+ listener.server.on("upgrade", (req, socket, head) => {
182
197
  if (!address) {
183
198
  socket.destroy();
184
199
  return;
185
200
  }
186
201
  return proxy.ws(req, socket, { target: address }, head);
187
- };
188
- const { listen } = await import('listhen');
189
- const listener = await listen(handler, listenOptions);
190
- listener.server.on("upgrade", wsHandler);
202
+ });
191
203
  return {
192
204
  listener,
193
- handler,
194
- wsHandler,
195
205
  setAddress: (_addr) => {
196
206
  address = _addr;
197
207
  },
@@ -206,38 +216,48 @@ async function _createDevProxy(nuxtOptions, listenOptions) {
206
216
  }
207
217
  };
208
218
  }
209
- async function _startSubprocess(devProxy, rawArgs, listenArgs) {
219
+ async function startSubprocess(cwd, args, rawArgs, listenOptions) {
210
220
  let childProc;
221
+ let devProxy;
222
+ let ready;
211
223
  const kill = (signal) => {
212
224
  if (childProc) {
213
225
  childProc.kill(signal);
214
226
  childProc = void 0;
215
227
  }
216
228
  };
217
- const restart = async () => {
218
- devProxy.clearError();
229
+ async function initialize2(proxy) {
230
+ devProxy = proxy;
231
+ const urls = await devProxy.listener.getURLs();
232
+ await ready;
233
+ childProc.send({
234
+ type: "nuxt:internal:dev:context",
235
+ context: {
236
+ cwd,
237
+ args,
238
+ hostname: listenOptions.hostname,
239
+ public: listenOptions.public,
240
+ publicURLs: urls.map((r) => r.url),
241
+ proxy: {
242
+ url: devProxy.listener.url,
243
+ urls,
244
+ https: devProxy.listener.https
245
+ }
246
+ }
247
+ });
248
+ }
249
+ async function restart() {
250
+ devProxy?.clearError();
219
251
  if (process.platform === "win32") {
220
252
  kill("SIGTERM");
221
253
  } else {
222
254
  kill("SIGHUP");
223
255
  }
224
- childProc = fork(globalThis.__nuxt_cli__.entry, ["_dev", ...rawArgs], {
225
- execArgv: [
226
- "--enable-source-maps",
227
- process.argv.find((a) => a.includes("--inspect"))
228
- ].filter(Boolean),
256
+ childProc = fork(globalThis.__nuxt_cli__.devEntry, rawArgs, {
257
+ execArgv: ["--enable-source-maps", process.argv.find((a) => a.includes("--inspect"))].filter(Boolean),
229
258
  env: {
230
259
  ...process.env,
231
- __NUXT_DEV__: JSON.stringify({
232
- hostname: listenArgs.hostname,
233
- public: listenArgs.public,
234
- publicURLs: await devProxy.listener.getURLs().then((r) => r.map((r2) => r2.url)),
235
- proxy: {
236
- url: devProxy.listener.url,
237
- urls: await devProxy.listener.getURLs(),
238
- https: devProxy.listener.https
239
- }
240
- })
260
+ __NUXT__FORK: "true"
241
261
  }
242
262
  });
243
263
  childProc.on("close", (errorCode) => {
@@ -245,28 +265,32 @@ async function _startSubprocess(devProxy, rawArgs, listenArgs) {
245
265
  process.exit(errorCode);
246
266
  }
247
267
  });
248
- childProc.on("message", (message) => {
249
- if (message.type === "nuxt:internal:dev:ready") {
250
- devProxy.setAddress(`http://127.0.0.1:${message.port}`);
251
- if (startTime) {
252
- logger.debug(`Dev server ready for connections in ${Date.now() - startTime}ms`);
253
- startTime = void 0;
268
+ ready = new Promise((resolve2, reject) => {
269
+ childProc.on("error", reject);
270
+ childProc.on("message", (message) => {
271
+ if (message.type === "nuxt:internal:dev:fork-ready") {
272
+ resolve2();
273
+ } else if (message.type === "nuxt:internal:dev:ready") {
274
+ devProxy.setAddress(`http://127.0.0.1:${message.port}`);
275
+ if (startTime) {
276
+ logger.debug(`Dev server ready for connections in ${Date.now() - startTime}ms`);
277
+ }
278
+ } else if (message.type === "nuxt:internal:dev:loading") {
279
+ devProxy.setAddress(void 0);
280
+ devProxy.setLoadingMessage(message.message);
281
+ devProxy.clearError();
282
+ } else if (message.type === "nuxt:internal:dev:loading:error") {
283
+ devProxy.setAddress(void 0);
284
+ devProxy.setError(message.error);
285
+ } else if (message.type === "nuxt:internal:dev:restart") {
286
+ restart();
287
+ } else if (message.type === "nuxt:internal:dev:rejection") {
288
+ logger.info(`Restarting Nuxt due to error: \`${message.message}\``);
289
+ restart();
254
290
  }
255
- } else if (message.type === "nuxt:internal:dev:loading") {
256
- devProxy.setAddress(void 0);
257
- devProxy.setLoadingMessage(message.message);
258
- devProxy.clearError();
259
- } else if (message.type === "nuxt:internal:dev:loading:error") {
260
- devProxy.setAddress(void 0);
261
- devProxy.setError(message.error);
262
- } else if (message.type === "nuxt:internal:dev:restart") {
263
- restart();
264
- } else if (message.type === "nuxt:internal:dev:rejection") {
265
- logger.info(`Restarting Nuxt due to error: \`${message.message}\``);
266
- restart();
267
- }
291
+ });
268
292
  });
269
- };
293
+ }
270
294
  for (const signal of [
271
295
  "exit",
272
296
  "SIGTERM",
@@ -279,11 +303,12 @@ async function _startSubprocess(devProxy, rawArgs, listenArgs) {
279
303
  }
280
304
  await restart();
281
305
  return {
306
+ initialize: initialize2,
282
307
  restart,
283
308
  kill
284
309
  };
285
310
  }
286
- function _resolveListenOptions(nuxtOptions, args) {
311
+ function resolveListenOptions(nuxtOptions, args) {
287
312
  const _port = args.port ?? args.p ?? process.env.NUXT_PORT ?? process.env.NITRO_PORT ?? process.env.PORT ?? nuxtOptions.devServer.port;
288
313
  const _hostname = typeof args.host === "string" ? args.host : (args.host === true ? "" : void 0) ?? process.env.NUXT_HOST ?? process.env.NITRO_HOST ?? process.env.HOST ?? (nuxtOptions.devServer?.host || void 0) ?? void 0;
289
314
  const _public = args.public ?? (_hostname && !["localhost", "127.0.0.1", "::1"].includes(_hostname)) ? true : void 0;
@@ -2,10 +2,11 @@ import process from 'node:process';
2
2
  import { defineCommand } from 'citty';
3
3
  import { resolve } from 'pathe';
4
4
  import { x } from 'tinyexec';
5
- import { b as legacyRootDirArgs, c as cwdArgs, a as logger } from '../shared/cli-nightly.CjK7ZDKA.mjs';
5
+ import { l as logger } from '../shared/cli-nightly.B9AmABr3.mjs';
6
+ import { l as legacyRootDirArgs, c as cwdArgs } from '../shared/cli-nightly.DSXVWJCf.mjs';
7
+ import 'consola';
6
8
  import 'node:path';
7
9
  import 'std-env';
8
- import 'consola';
9
10
  import 'node:url';
10
11
 
11
12
  const devtools = defineCommand({
@@ -1,20 +1,20 @@
1
1
  import { defineCommand } from 'citty';
2
- import { b as legacyRootDirArgs, e as envNameArgs, d as dotEnvArgs, l as logLevelArgs, c as cwdArgs } from '../shared/cli-nightly.CjK7ZDKA.mjs';
2
+ import { l as legacyRootDirArgs, e as envNameArgs, d as dotEnvArgs, a as logLevelArgs, c as cwdArgs } from '../shared/cli-nightly.DSXVWJCf.mjs';
3
3
  import buildCommand from './build.mjs';
4
4
  import 'node:path';
5
5
  import 'node:process';
6
6
  import 'std-env';
7
7
  import 'consola';
8
+ import '../shared/cli-nightly.B9AmABr3.mjs';
8
9
  import 'node:url';
9
10
  import 'pathe';
10
- import '../shared/cli-nightly.COGWopdX.mjs';
11
- import 'consola/utils';
12
- import 'pkg-types';
13
- import '../shared/cli-nightly.DlcAx0De.mjs';
14
- import 'jiti';
15
- import '../shared/cli-nightly.DdmGgrsK.mjs';
16
- import '../shared/cli-nightly.BnfAj4iy.mjs';
11
+ import '../shared/cli-nightly.Dc8ncNQ_.mjs';
17
12
  import 'node:fs';
13
+ import 'consola/utils';
14
+ import 'exsolve';
15
+ import '../shared/cli-nightly.BrKZotr9.mjs';
16
+ import '../shared/cli-nightly.DkO5RR_e.mjs';
17
+ import '../shared/cli-nightly.DPmMxQ6h.mjs';
18
18
 
19
19
  const generate = defineCommand({
20
20
  meta: {