@nuxt/cli-nightly 4.0.0-20260802-153152-e80f9d0 → 4.0.0-20260803-085155-e80f9d0
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/{_utils-cpl93cBf.mjs → _utils-BE7w_Eq2.mjs} +1 -1
- package/dist/{add-tqyWidAT.mjs → add-DtH_B16p.mjs} +6 -5
- package/dist/{add-CmUK_b98.mjs → add-K8gJ0A8u.mjs} +1 -1
- package/dist/{add-template-B7clbbls.mjs → add-template-D_W_Gb-e.mjs} +3 -2
- package/dist/{analyze-DvBAYIr8.mjs → analyze-BQbcVh_c.mjs} +2 -2
- package/dist/{banner-BvHsbKah.mjs → banner-DGQYQShu.mjs} +1 -1
- package/dist/{binaries-B8LUKwoa.mjs → binaries-DOIRWJLb.mjs} +3 -2
- package/dist/{build-Bxwxmj8t.mjs → build-ys9EtHA7.mjs} +6 -5
- package/dist/{cert-CqysjDEA.mjs → cert-DebFV4o-.mjs} +4 -3
- package/dist/{cleanup-DqiJmrvl.mjs → cleanup-MbLnwPdB.mjs} +1 -1
- package/dist/{curl-GiScfPBJ.mjs → curl-CobD7eFv.mjs} +1 -1
- package/dist/dev/index.mjs +1 -1
- package/dist/{dev-Cjl9MW5a.mjs → dev-C322hKz1.mjs} +3 -3
- package/dist/{dev-BtYwCki8.mjs → dev-DnVcSSZ_.mjs} +6 -6
- package/dist/{dev-server-B1G43ywf.mjs → dev-server-clKypSou.mjs} +3 -2
- package/dist/{generate-CMFgNp_9.mjs → generate-CvSPqIFf.mjs} +1 -1
- package/dist/index.mjs +18 -18
- package/dist/{info-CheBHBgh.mjs → info-B16eRY7m.mjs} +3 -3
- package/dist/{install-CSAFOY1x.mjs → install-DLOWi6CT.mjs} +3 -2
- package/dist/{kit-B37mCY_m.mjs → kit-umDtPKPe.mjs} +2 -1
- package/dist/{list-DSTU6dD-.mjs → list-BuONHuQh.mjs} +3 -2
- package/dist/{lockfile-C7NKeChr.mjs → lockfile-CG8WKkbC.mjs} +3 -2
- package/dist/{module-DHRi0M4i.mjs → module-bdrXvtrU.mjs} +3 -3
- package/dist/{package-kwf-4XHn.mjs → package-BBkjutGK.mjs} +1 -1
- package/dist/{prepare-BzWrm9xk.mjs → prepare-CpUfX10m.mjs} +2 -2
- package/dist/{preview-DFaWpUyb.mjs → preview-DXuT4PMH.mjs} +1 -1
- package/dist/{profile-SjBnm2jV.mjs → profile-CI4E71P-.mjs} +2 -1
- package/dist/{registry-BEBr5jtr.mjs → registry-B6t0YbAU.mjs} +2 -1
- package/dist/{remove-BQrrtDPi.mjs → remove-C-CZ6hBr.mjs} +1 -1
- package/dist/{run-CbVAs5Tu.mjs → run-UwHFEqpz.mjs} +1 -1
- package/dist/{search-B61Oixz2.mjs → search-DRzEl4Gc.mjs} +6 -4
- package/dist/{start-B_h8fvaA.mjs → start-1ugX4EYU.mjs} +1 -1
- package/dist/{task-CQ4UM-TX.mjs → task-DJdJgW3i.mjs} +2 -2
- package/dist/{tunnel-CsR7anoq.mjs → tunnel-Bd1u6lRE.mjs} +1 -1
- package/dist/{typecheck-hlM3ohnt.mjs → typecheck-DuEbrDzC.mjs} +1 -1
- package/dist/{update-BxeC0paa.mjs → update-eul4Tkio.mjs} +3 -3
- package/dist/{upgrade-Bbl1vHhl.mjs → upgrade-C7QePiio.mjs} +3 -3
- package/dist/{versions-B637W9yP.mjs → versions-Cd_1aJ1w.mjs} +3 -2
- package/package.json +2 -2
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { c as logger, i as resolveRootDir } from "./paths-BMgcFDvh.mjs";
|
|
2
2
|
import { t as logNetworkError } from "./network-0Y9fC7ap.mjs";
|
|
3
3
|
import { t as getNuxtConfig } from "./nuxt-config-O10ouUPN.mjs";
|
|
4
|
-
import { a as toLoopback, i as resolveLockDir, n as findNitroDevWorker, r as noDevServerMessage, t as findDevServer } from "./dev-server-
|
|
4
|
+
import { a as toLoopback, i as resolveLockDir, n as findNitroDevWorker, r as noDevServerMessage, t as findDevServer } from "./dev-server-clKypSou.mjs";
|
|
5
5
|
import { t as highlightJson } from "./json-highlight-z4XF2E0U.mjs";
|
|
6
6
|
import process from "node:process";
|
|
7
7
|
import { styleText } from "node:util";
|
|
@@ -3,10 +3,10 @@ import { c as logger } from "./paths-BMgcFDvh.mjs";
|
|
|
3
3
|
import { t as logNetworkError } from "./network-0Y9fC7ap.mjs";
|
|
4
4
|
import { n as createNuxtConfig, o as runCommandDef, r as readNuxtConfig, t as addNuxtConfigEntries } from "./config-BV-Kl4RM.mjs";
|
|
5
5
|
import { t as fetchJson } from "./fetch-g4bhLuz9.mjs";
|
|
6
|
-
import { a as takeUnreportedIgnoredBuilds, i as runInstall, n as resolvePackageManagerDescriptor, t as createInstallLog } from "./install-
|
|
7
|
-
import { t as detectNpmRegistry } from "./registry-
|
|
8
|
-
import { n as getNuxtVersion } from "./versions-
|
|
9
|
-
import { t as prepare_default } from "./prepare-
|
|
6
|
+
import { a as takeUnreportedIgnoredBuilds, i as runInstall, n as resolvePackageManagerDescriptor, t as createInstallLog } from "./install-DLOWi6CT.mjs";
|
|
7
|
+
import { t as detectNpmRegistry } from "./registry-B6t0YbAU.mjs";
|
|
8
|
+
import { n as getNuxtVersion } from "./versions-Cd_1aJ1w.mjs";
|
|
9
|
+
import { t as prepare_default } from "./prepare-CpUfX10m.mjs";
|
|
10
10
|
import { a as fetchModules, c as isPnpmWorkspace, i as ensureNuxtDependency, l as parseModuleSpec, n as basePackageName, o as forwardCommandArgs, r as checkNuxtCompatibility, s as getProjectDependencies, t as MODULES_API_URL, u as resolveModuleEntry } from "./_utils-Bdf8LCNw.mjs";
|
|
11
11
|
import process from "node:process";
|
|
12
12
|
import { styleText } from "node:util";
|
|
@@ -329,7 +329,8 @@ async function resolveModule(moduleName, cwd, modulesDB, getProjectNuxtVersion)
|
|
|
329
329
|
}
|
|
330
330
|
}
|
|
331
331
|
let version = pkgVersion || "latest";
|
|
332
|
-
const
|
|
332
|
+
const pkgScope = pkgName.startsWith("@") ? pkgName.split("/")[0] : null;
|
|
333
|
+
const meta = await detectNpmRegistry(pkgScope, cwd);
|
|
333
334
|
const headers = {};
|
|
334
335
|
if (meta.authToken) headers.Authorization = `Bearer ${meta.authToken}`;
|
|
335
336
|
const pkgUrl = joinURL(meta.registry, `${pkgName}`);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { a as logLevelArgs, t as cwdArgs } from "./_shared-CDYe2gUz.mjs";
|
|
2
2
|
import { c as logger, n as relativeToProcess } from "./paths-BMgcFDvh.mjs";
|
|
3
3
|
import { t as templateNames } from "./names-BemXlTaX.mjs";
|
|
4
|
-
import { t as loadKit } from "./kit-
|
|
4
|
+
import { t as loadKit } from "./kit-umDtPKPe.mjs";
|
|
5
5
|
import process from "node:process";
|
|
6
6
|
import { styleText } from "node:util";
|
|
7
7
|
import { defineCommand } from "citty";
|
|
@@ -87,7 +87,8 @@ const component = ({ name, args, nuxtOptions }) => ({
|
|
|
87
87
|
//#region src/utils/templates/composable.ts
|
|
88
88
|
const USE_PREFIX_RE = /^use-?/;
|
|
89
89
|
const composable = ({ name, nuxtOptions }) => {
|
|
90
|
-
const
|
|
90
|
+
const nameWithoutUsePrefix = name.replace(USE_PREFIX_RE, "");
|
|
91
|
+
const nameWithUsePrefix = `use${pascalCase(nameWithoutUsePrefix)}`;
|
|
91
92
|
return {
|
|
92
93
|
path: resolve(nuxtOptions.srcDir, `composables/${name}.ts`),
|
|
93
94
|
contents: `
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { a as logLevelArgs, i as extendsArgs, n as dotEnvArgs, s as rootDirArgs } from "./_shared-CDYe2gUz.mjs";
|
|
2
2
|
import { c as logger, i as resolveRootDir, n as relativeToProcess } from "./paths-BMgcFDvh.mjs";
|
|
3
3
|
import { t as overrideEnv } from "./env-B-vAA_JL.mjs";
|
|
4
|
-
import { t as loadKit } from "./kit-
|
|
4
|
+
import { t as loadKit } from "./kit-umDtPKPe.mjs";
|
|
5
5
|
import { n as clearDir } from "./fs-CSqg02ri.mjs";
|
|
6
|
-
import { a as formatLockError, n as acquireOutputLock, t as acquireLock } from "./lockfile-
|
|
6
|
+
import { a as formatLockError, n as acquireOutputLock, t as acquireLock } from "./lockfile-CG8WKkbC.mjs";
|
|
7
7
|
import process from "node:process";
|
|
8
8
|
import { styleText } from "node:util";
|
|
9
9
|
import { defineCommand } from "citty";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { c as logger } from "./paths-BMgcFDvh.mjs";
|
|
2
|
-
import { n as tryResolveNuxt } from "./kit-
|
|
2
|
+
import { n as tryResolveNuxt } from "./kit-umDtPKPe.mjs";
|
|
3
3
|
import { styleText } from "node:util";
|
|
4
4
|
import { readFileSync } from "node:fs";
|
|
5
5
|
import { resolveModulePath } from "exsolve";
|
|
@@ -59,7 +59,8 @@ async function confirmToolInstall(options) {
|
|
|
59
59
|
}
|
|
60
60
|
const RESPONSE_TIMEOUT_MS = 3e4;
|
|
61
61
|
function getCacheDir(...segments) {
|
|
62
|
-
const
|
|
62
|
+
const base = process.env.XDG_CACHE_HOME || join$1(homedir(), ".cache");
|
|
63
|
+
const dir = join$1(base, "nuxt", ...segments);
|
|
63
64
|
mkdirSync(dir, { recursive: true });
|
|
64
65
|
return dir;
|
|
65
66
|
}
|
|
@@ -161,7 +162,7 @@ async function readWithProgress(response, label) {
|
|
|
161
162
|
return Buffer.concat(chunks);
|
|
162
163
|
}
|
|
163
164
|
function formatSize(bytes) {
|
|
164
|
-
return bytes <
|
|
165
|
+
return bytes < 1048576 ? `${Math.round(bytes / 1024)} KB` : `${(bytes / 1024 / 1024).toFixed(1)} MB`;
|
|
165
166
|
}
|
|
166
167
|
//#endregion
|
|
167
168
|
export { getCacheDir as n, resolveTool as r, findInPath as t };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { a as logLevelArgs, i as extendsArgs, n as dotEnvArgs, o as profileArgs, r as envNameArgs, s as rootDirArgs } from "./_shared-CDYe2gUz.mjs";
|
|
2
2
|
import { c as logger, i as resolveRootDir } from "./paths-BMgcFDvh.mjs";
|
|
3
3
|
import { t as overrideEnv } from "./env-B-vAA_JL.mjs";
|
|
4
|
-
import { n as stopCpuProfile, t as startCpuProfile } from "./profile-
|
|
5
|
-
import { t as loadKit } from "./kit-
|
|
6
|
-
import { n as showBanner } from "./banner-
|
|
4
|
+
import { n as stopCpuProfile, t as startCpuProfile } from "./profile-CI4E71P-.mjs";
|
|
5
|
+
import { t as loadKit } from "./kit-umDtPKPe.mjs";
|
|
6
|
+
import { n as showBanner } from "./banner-DGQYQShu.mjs";
|
|
7
7
|
import { t as clearBuildDir } from "./fs-CSqg02ri.mjs";
|
|
8
|
-
import { a as formatLockError, n as acquireOutputLock, t as acquireLock } from "./lockfile-
|
|
8
|
+
import { a as formatLockError, n as acquireOutputLock, t as acquireLock } from "./lockfile-CG8WKkbC.mjs";
|
|
9
9
|
import { t as formatDuration } from "./formatting-DwIOb1Eu.mjs";
|
|
10
10
|
import process from "node:process";
|
|
11
11
|
import { styleText } from "node:util";
|
|
@@ -100,7 +100,8 @@ var build_default = defineCommand({
|
|
|
100
100
|
logger.info(`You can read more in ${styleText("cyan", "https://nuxt.com/docs/getting-started/deployment#static-hosting")}.`);
|
|
101
101
|
}
|
|
102
102
|
const dir = nitro.options.output.publicDir;
|
|
103
|
-
|
|
103
|
+
const publicDir = dir ? relative(process.cwd(), dir) : ".output/public";
|
|
104
|
+
outro(`✨ You can now deploy ${styleText("cyan", publicDir)} to any static hosting! ${styleText("gray", `(${formatDuration(Date.now() - start)})`)}`);
|
|
104
105
|
} else outro(`✨ Build complete in ${styleText("cyan", formatDuration(Date.now() - start))}!`);
|
|
105
106
|
} finally {
|
|
106
107
|
for (const release of releaseLocks.reverse()) release();
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { c as logger, s as debug } from "./paths-BMgcFDvh.mjs";
|
|
2
|
-
import { n as getCacheDir, r as resolveTool, t as findInPath } from "./binaries-
|
|
2
|
+
import { n as getCacheDir, r as resolveTool, t as findInPath } from "./binaries-DOIRWJLb.mjs";
|
|
3
3
|
import process from "node:process";
|
|
4
4
|
import { join } from "pathe";
|
|
5
5
|
import { existsSync, readFileSync } from "node:fs";
|
|
@@ -25,14 +25,15 @@ async function resolveCertificate(options) {
|
|
|
25
25
|
return generateCertificate(options);
|
|
26
26
|
}
|
|
27
27
|
/** Regenerate rather than serve a certificate that expires within the day. */
|
|
28
|
-
const CERT_MIN_REMAINING_MS =
|
|
28
|
+
const CERT_MIN_REMAINING_MS = 864e5;
|
|
29
29
|
async function generateCertificate(options) {
|
|
30
30
|
const domains = options.domains?.length ? options.domains : [
|
|
31
31
|
"localhost",
|
|
32
32
|
"127.0.0.1",
|
|
33
33
|
"::1"
|
|
34
34
|
];
|
|
35
|
-
const
|
|
35
|
+
const hash = createHash("sha256").update(domains.join(",")).digest("hex").slice(0, 8);
|
|
36
|
+
const dir = getCacheDir("certs", hash);
|
|
36
37
|
const certPath = join(dir, "cert.pem");
|
|
37
38
|
const keyPath = join(dir, "key.pem");
|
|
38
39
|
if (!isCertificateUsable(certPath, keyPath, domains)) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { s as rootDirArgs } from "./_shared-CDYe2gUz.mjs";
|
|
2
2
|
import { c as logger, i as resolveRootDir } from "./paths-BMgcFDvh.mjs";
|
|
3
|
-
import { t as loadKit } from "./kit-
|
|
3
|
+
import { t as loadKit } from "./kit-umDtPKPe.mjs";
|
|
4
4
|
import { t as cleanupNuxtDirs } from "./nuxt-hDV8F0bn.mjs";
|
|
5
5
|
import { defineCommand } from "citty";
|
|
6
6
|
//#region src/commands/cleanup.ts
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { s as rootDirArgs } from "./_shared-CDYe2gUz.mjs";
|
|
2
2
|
import { c as logger, i as resolveRootDir } from "./paths-BMgcFDvh.mjs";
|
|
3
3
|
import { t as logNetworkError } from "./network-0Y9fC7ap.mjs";
|
|
4
|
-
import { r as noDevServerMessage, t as findDevServer } from "./dev-server-
|
|
4
|
+
import { r as noDevServerMessage, t as findDevServer } from "./dev-server-clKypSou.mjs";
|
|
5
5
|
import { t as highlightJson } from "./json-highlight-z4XF2E0U.mjs";
|
|
6
6
|
import process from "node:process";
|
|
7
7
|
import { styleText } from "node:util";
|
package/dist/dev/index.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as createRestartHook, r as initialize, t as createRejectionHandler } from "../dev-
|
|
1
|
+
import { n as createRestartHook, r as initialize, t as createRejectionHandler } from "../dev-DnVcSSZ_.mjs";
|
|
2
2
|
export { createRejectionHandler, createRestartHook, initialize };
|
|
@@ -2,9 +2,9 @@ import { a as logLevelArgs, i as extendsArgs, n as dotEnvArgs, o as profileArgs,
|
|
|
2
2
|
import { c as logger, i as resolveRootDir, s as debug } from "./paths-BMgcFDvh.mjs";
|
|
3
3
|
import { t as summariseActiveResources } from "./hang-BMDeGt4j.mjs";
|
|
4
4
|
import { a as withDirectStdout, r as restoreRawMode } from "./network-0Y9fC7ap.mjs";
|
|
5
|
-
import { a as copyURL, c as parsePort, d as openInspector, f as resolveInspectOptions, i as formatRestartReason, l as printQRCode, o as isReusePortSupported, r as initialize, s as openBrowser, u as closeInspector } from "./dev-
|
|
6
|
-
import { c as isLockEnabled, f as readLock, i as clearTakeover, l as isProcessAlive, r as clearStaleLock, s as isInteractiveSession, u as markTakenOver } from "./lockfile-
|
|
7
|
-
import { i as resolveLockDir } from "./dev-server-
|
|
5
|
+
import { a as copyURL, c as parsePort, d as openInspector, f as resolveInspectOptions, i as formatRestartReason, l as printQRCode, o as isReusePortSupported, r as initialize, s as openBrowser, u as closeInspector } from "./dev-DnVcSSZ_.mjs";
|
|
6
|
+
import { c as isLockEnabled, f as readLock, i as clearTakeover, l as isProcessAlive, r as clearStaleLock, s as isInteractiveSession, u as markTakenOver } from "./lockfile-CG8WKkbC.mjs";
|
|
7
|
+
import { i as resolveLockDir } from "./dev-server-clKypSou.mjs";
|
|
8
8
|
import process from "node:process";
|
|
9
9
|
import { styleText } from "node:util";
|
|
10
10
|
import { defineCommand } from "citty";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { a as withNodePath, c as logger, l as writeNotice, o as isRemotePeerError, s as debug, t as relativeTo } from "./paths-BMgcFDvh.mjs";
|
|
2
2
|
import { t as overrideEnv } from "./env-B-vAA_JL.mjs";
|
|
3
|
-
import { n as stopCpuProfile, t as startCpuProfile } from "./profile-
|
|
4
|
-
import { t as loadKit } from "./kit-
|
|
5
|
-
import { n as showBanner } from "./banner-
|
|
3
|
+
import { n as stopCpuProfile, t as startCpuProfile } from "./profile-CI4E71P-.mjs";
|
|
4
|
+
import { t as loadKit } from "./kit-umDtPKPe.mjs";
|
|
5
|
+
import { n as showBanner } from "./banner-DGQYQShu.mjs";
|
|
6
6
|
import { t as clearBuildDir } from "./fs-CSqg02ri.mjs";
|
|
7
|
-
import { a as formatLockError, o as getTakeoverPid, p as updateLock, t as acquireLock } from "./lockfile-
|
|
7
|
+
import { a as formatLockError, o as getTakeoverPid, p as updateLock, t as acquireLock } from "./lockfile-CG8WKkbC.mjs";
|
|
8
8
|
import { a as writeNuxtManifest, i as resolveNuxtManifest, n as loadNuxtManifest } from "./nuxt-hDV8F0bn.mjs";
|
|
9
9
|
import process from "node:process";
|
|
10
10
|
import { styleText } from "node:util";
|
|
@@ -542,7 +542,7 @@ async function listen(handler, options = {}) {
|
|
|
542
542
|
const requestedPort = parsePort(options.port);
|
|
543
543
|
const port = options.handover && requestedPort ? requestedPort : await resolvePort(requestedPort, hostname, options.strictPort);
|
|
544
544
|
const httpsOptions = options.https === true ? {} : options.https;
|
|
545
|
-
const certificate = httpsOptions ? await import("./cert-
|
|
545
|
+
const certificate = httpsOptions ? await import("./cert-DebFV4o-.mjs").then(({ resolveCertificate }) => resolveCertificate(httpsOptions)) : false;
|
|
546
546
|
const server = certificate ? createSecureServer(certificate, handler) : createServer(handler);
|
|
547
547
|
await bindServer(server, port, hostname, !!options.reusePort).catch((error) => {
|
|
548
548
|
throw describeBindError(error, port, hostname, options.strictPort);
|
|
@@ -556,7 +556,7 @@ async function listen(handler, options = {}) {
|
|
|
556
556
|
const url = formatURL(anyHost ? "localhost" : hostname);
|
|
557
557
|
let tunnel;
|
|
558
558
|
if (options.tunnel) {
|
|
559
|
-
const { startTunnel } = await import("./tunnel-
|
|
559
|
+
const { startTunnel } = await import("./tunnel-Bd1u6lRE.mjs");
|
|
560
560
|
tunnel = await startTunnel(`${protocol}://localhost:${address.port}`, !!certificate);
|
|
561
561
|
}
|
|
562
562
|
const tunnelURL = tunnel?.url && tunnel.url + baseURL;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { d as readActiveLock, f as readLock, l as isProcessAlive } from "./lockfile-
|
|
1
|
+
import { d as readActiveLock, f as readLock, l as isProcessAlive } from "./lockfile-CG8WKkbC.mjs";
|
|
2
2
|
import { t as getNuxtConfig } from "./nuxt-config-O10ouUPN.mjs";
|
|
3
3
|
import { styleText } from "node:util";
|
|
4
4
|
import { join, resolve } from "pathe";
|
|
@@ -32,7 +32,8 @@ async function resolveLockDir(cwd) {
|
|
|
32
32
|
* `buildDir` may be passed when it is already known.
|
|
33
33
|
*/
|
|
34
34
|
async function findDevServer(cwd, buildDir) {
|
|
35
|
-
const
|
|
35
|
+
const dir = buildDir ? resolve(cwd, buildDir) : await resolveLockDir(cwd);
|
|
36
|
+
const lock = readActiveLock(dir);
|
|
36
37
|
if (lock?.command === "dev" && lock.url) return {
|
|
37
38
|
url: toLoopback(lock.url),
|
|
38
39
|
pid: lock.pid,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { a as logLevelArgs, i as extendsArgs, n as dotEnvArgs, o as profileArgs, r as envNameArgs, s as rootDirArgs } from "./_shared-CDYe2gUz.mjs";
|
|
2
|
-
import build_default from "./build-
|
|
2
|
+
import build_default from "./build-ys9EtHA7.mjs";
|
|
3
3
|
import { defineCommand } from "citty";
|
|
4
4
|
//#region src/commands/generate.ts
|
|
5
5
|
var generate_default = defineCommand({
|
package/dist/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { i as version, n as engines, r as name, t as description } from "./package-
|
|
1
|
+
import { i as version, n as engines, r as name, t as description } from "./package-BBkjutGK.mjs";
|
|
2
2
|
import { t as cwdArgs } from "./_shared-CDYe2gUz.mjs";
|
|
3
3
|
import { t as normaliseCwdArg } from "./args-Cj_um6nT.mjs";
|
|
4
4
|
import { c as logger, r as resolveProjectDir, s as debug } from "./paths-BMgcFDvh.mjs";
|
|
@@ -16,26 +16,26 @@ import { satisfies } from "verkit";
|
|
|
16
16
|
//#region src/commands/index.ts
|
|
17
17
|
const _rDefault = (r) => r.default || r;
|
|
18
18
|
const commands = Object.assign(Object.create(null), {
|
|
19
|
-
"add": () => import("./add-
|
|
20
|
-
"add-template": () => import("./add-template-
|
|
21
|
-
"analyze": () => import("./analyze-
|
|
22
|
-
"build": () => import("./build-
|
|
23
|
-
"cleanup": () => import("./cleanup-
|
|
24
|
-
"curl": () => import("./curl-
|
|
19
|
+
"add": () => import("./add-K8gJ0A8u.mjs").then(_rDefault),
|
|
20
|
+
"add-template": () => import("./add-template-D_W_Gb-e.mjs").then(_rDefault),
|
|
21
|
+
"analyze": () => import("./analyze-BQbcVh_c.mjs").then(_rDefault),
|
|
22
|
+
"build": () => import("./build-ys9EtHA7.mjs").then(_rDefault),
|
|
23
|
+
"cleanup": () => import("./cleanup-MbLnwPdB.mjs").then(_rDefault),
|
|
24
|
+
"curl": () => import("./curl-CobD7eFv.mjs").then(_rDefault),
|
|
25
25
|
"_dev": () => import("./dev-child-7i1ujRQQ.mjs").then(_rDefault),
|
|
26
|
-
"dev": () => import("./dev-
|
|
26
|
+
"dev": () => import("./dev-C322hKz1.mjs").then(_rDefault),
|
|
27
27
|
"devtools": () => import("./devtools-j1XDs7T_.mjs").then(_rDefault),
|
|
28
|
-
"generate": () => import("./generate-
|
|
29
|
-
"info": () => import("./info-
|
|
28
|
+
"generate": () => import("./generate-CvSPqIFf.mjs").then(_rDefault),
|
|
29
|
+
"info": () => import("./info-B16eRY7m.mjs").then(_rDefault),
|
|
30
30
|
"init": () => import("./init-ngyyiwrT.mjs").then(_rDefault),
|
|
31
|
-
"module": () => import("./module-
|
|
32
|
-
"prepare": () => import("./prepare-
|
|
33
|
-
"preview": () => import("./preview-
|
|
34
|
-
"start": () => import("./start-
|
|
35
|
-
"task": () => import("./task-
|
|
31
|
+
"module": () => import("./module-bdrXvtrU.mjs").then(_rDefault),
|
|
32
|
+
"prepare": () => import("./prepare-CpUfX10m.mjs").then((n) => n.n).then(_rDefault),
|
|
33
|
+
"preview": () => import("./preview-DXuT4PMH.mjs").then(_rDefault),
|
|
34
|
+
"start": () => import("./start-1ugX4EYU.mjs").then(_rDefault),
|
|
35
|
+
"task": () => import("./task-DJdJgW3i.mjs").then(_rDefault),
|
|
36
36
|
"test": () => import("./test-0APOmjG7.mjs").then(_rDefault),
|
|
37
|
-
"typecheck": () => import("./typecheck-
|
|
38
|
-
"upgrade": () => import("./upgrade-
|
|
37
|
+
"typecheck": () => import("./typecheck-DuEbrDzC.mjs").then(_rDefault),
|
|
38
|
+
"upgrade": () => import("./upgrade-C7QePiio.mjs").then(_rDefault)
|
|
39
39
|
});
|
|
40
40
|
//#endregion
|
|
41
41
|
//#region src/run.ts
|
|
@@ -88,7 +88,7 @@ async function checkEngines() {
|
|
|
88
88
|
*/
|
|
89
89
|
const STARTUP_GRACE_MS = 3e3;
|
|
90
90
|
function scheduleUpdateNudge(cwd, command) {
|
|
91
|
-
return afterStartup(() => import("./update-
|
|
91
|
+
return afterStartup(() => import("./update-eul4Tkio.mjs").then(({ scheduleUpdateNudge }) => scheduleUpdateNudge(cwd, command)));
|
|
92
92
|
}
|
|
93
93
|
function afterStartup(run) {
|
|
94
94
|
return new Promise((resolve, reject) => {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { i as version } from "./package-
|
|
1
|
+
import { i as version } from "./package-BBkjutGK.mjs";
|
|
2
2
|
import { s as rootDirArgs } from "./_shared-CDYe2gUz.mjs";
|
|
3
3
|
import { c as logger, i as resolveRootDir } from "./paths-BMgcFDvh.mjs";
|
|
4
|
-
import { n as tryResolveNuxt } from "./kit-
|
|
5
|
-
import { t as getBuilder } from "./banner-
|
|
4
|
+
import { n as tryResolveNuxt } from "./kit-umDtPKPe.mjs";
|
|
5
|
+
import { t as getBuilder } from "./banner-DGQYQShu.mjs";
|
|
6
6
|
import { t as resolveCatalogEntry } from "./catalog-sD2GE_wb.mjs";
|
|
7
7
|
import { t as readDependencyPackageJson } from "./package-json-Cb_RH9VF.mjs";
|
|
8
8
|
import { n as formatInfoBox } from "./formatting-DwIOb1Eu.mjs";
|
|
@@ -176,7 +176,7 @@ function execute(command, args, options) {
|
|
|
176
176
|
output: "",
|
|
177
177
|
ignoredBuilds: []
|
|
178
178
|
});
|
|
179
|
-
const
|
|
179
|
+
const spawnOptions = {
|
|
180
180
|
cwd: options.cwd,
|
|
181
181
|
stdio: [
|
|
182
182
|
"ignore",
|
|
@@ -184,7 +184,8 @@ function execute(command, args, options) {
|
|
|
184
184
|
"pipe"
|
|
185
185
|
],
|
|
186
186
|
detached: process.platform !== "win32"
|
|
187
|
-
}
|
|
187
|
+
};
|
|
188
|
+
const normalized = normalizeSpawnCommand(command, args, spawnOptions);
|
|
188
189
|
return new Promise((resolve) => {
|
|
189
190
|
const child = spawn(normalized.command, [...normalized.args], normalized.options);
|
|
190
191
|
const abort = () => killTree(child);
|
|
@@ -5,7 +5,8 @@ import { resolveModulePath } from "exsolve";
|
|
|
5
5
|
const KIT_NOT_FOUND_RE = /Cannot (?:find|resolve) module ['"]@nuxt\/kit['"]/;
|
|
6
6
|
async function loadKit(rootDir) {
|
|
7
7
|
try {
|
|
8
|
-
|
|
8
|
+
const kitPath = resolveModulePath("@nuxt/kit", { from: tryResolveNuxt(rootDir) || rootDir });
|
|
9
|
+
return await import(pathToFileURL(kitPath).href);
|
|
9
10
|
} catch (e) {
|
|
10
11
|
if (KIT_NOT_FOUND_RE.test(String(e))) throw new Error("nuxi requires `@nuxt/kit` to be installed in your project. Try installing `nuxt` v3+ first.");
|
|
11
12
|
throw e;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { s as rootDirArgs } from "./_shared-CDYe2gUz.mjs";
|
|
2
2
|
import { c as logger, i as resolveRootDir } from "./paths-BMgcFDvh.mjs";
|
|
3
|
-
import { a as reportTaskError, i as missingTaskRoutesHint, l as taskArgs, n as fetchTasks, s as resolveTaskServer, t as emptyTaskListHint } from "./_utils-
|
|
3
|
+
import { a as reportTaskError, i as missingTaskRoutesHint, l as taskArgs, n as fetchTasks, s as resolveTaskServer, t as emptyTaskListHint } from "./_utils-BE7w_Eq2.mjs";
|
|
4
4
|
import process from "node:process";
|
|
5
5
|
import { styleText } from "node:util";
|
|
6
6
|
import { defineCommand } from "citty";
|
|
@@ -16,7 +16,8 @@ var list_default = defineCommand({
|
|
|
16
16
|
},
|
|
17
17
|
async run(ctx) {
|
|
18
18
|
const cwd = resolveRootDir(ctx.args);
|
|
19
|
-
const
|
|
19
|
+
const server = await resolveTaskServer(ctx.args);
|
|
20
|
+
const response = await fetchTasks(server);
|
|
20
21
|
if (!response.ok) {
|
|
21
22
|
reportTaskError(response);
|
|
22
23
|
if (response.status === 404) logger.info(missingTaskRoutesHint());
|
|
@@ -6,7 +6,7 @@ import { createHash } from "node:crypto";
|
|
|
6
6
|
//#region src/utils/lockfile.ts
|
|
7
7
|
const LOCK_FILENAME = "nuxt.lock";
|
|
8
8
|
const OUTPUT_LOCK_DIRNAME = "node_modules/.cache/nuxt";
|
|
9
|
-
const MAX_LOCK_AGE_MS =
|
|
9
|
+
const MAX_LOCK_AGE_MS = 864e5;
|
|
10
10
|
/** Whether this process is attached to a terminal a user can answer prompts on. */
|
|
11
11
|
function isInteractiveSession() {
|
|
12
12
|
return !!process.stdin.isTTY && !isCI;
|
|
@@ -139,7 +139,8 @@ function acquireLock(buildDir, info, options = {}) {
|
|
|
139
139
|
*/
|
|
140
140
|
function acquireOutputLock(rootDir, outputDir, info) {
|
|
141
141
|
const dir = join(rootDir, OUTPUT_LOCK_DIRNAME);
|
|
142
|
-
|
|
142
|
+
const key = createHash("sha256").update(outputDir).digest("hex").slice(0, 8);
|
|
143
|
+
return acquireLockAt(join(dir, `output-${key}.lock`), dir, info);
|
|
143
144
|
}
|
|
144
145
|
function acquireLockAt(lockPath, dir, info, options = {}) {
|
|
145
146
|
if (!isLockEnabled()) return { release: () => {} };
|
|
@@ -7,9 +7,9 @@ var module_default = defineCommand({
|
|
|
7
7
|
},
|
|
8
8
|
args: {},
|
|
9
9
|
subCommands: {
|
|
10
|
-
add: () => import("./add-
|
|
11
|
-
remove: () => import("./remove-
|
|
12
|
-
search: () => import("./search-
|
|
10
|
+
add: () => import("./add-DtH_B16p.mjs").then((r) => r.default || r),
|
|
11
|
+
remove: () => import("./remove-C-CZ6hBr.mjs").then((r) => r.default || r),
|
|
12
|
+
search: () => import("./search-DRzEl4Gc.mjs").then((r) => r.default || r)
|
|
13
13
|
}
|
|
14
14
|
});
|
|
15
15
|
//#endregion
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-D7D4PA-g.mjs";
|
|
2
2
|
import { a as logLevelArgs, i as extendsArgs, n as dotEnvArgs, r as envNameArgs, s as rootDirArgs } from "./_shared-CDYe2gUz.mjs";
|
|
3
3
|
import { c as logger, i as resolveRootDir, n as relativeToProcess } from "./paths-BMgcFDvh.mjs";
|
|
4
|
-
import { t as loadKit } from "./kit-
|
|
4
|
+
import { t as loadKit } from "./kit-umDtPKPe.mjs";
|
|
5
5
|
import { t as clearBuildDir } from "./fs-CSqg02ri.mjs";
|
|
6
|
-
import { d as readActiveLock } from "./lockfile-
|
|
6
|
+
import { d as readActiveLock } from "./lockfile-CG8WKkbC.mjs";
|
|
7
7
|
import process from "node:process";
|
|
8
8
|
import { styleText } from "node:util";
|
|
9
9
|
import { defineCommand } from "citty";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { a as logLevelArgs, i as extendsArgs, n as dotEnvArgs, r as envNameArgs, s as rootDirArgs } from "./_shared-CDYe2gUz.mjs";
|
|
2
2
|
import { c as logger, i as resolveRootDir, n as relativeToProcess } from "./paths-BMgcFDvh.mjs";
|
|
3
3
|
import { n as withPrependedPath } from "./path-env-BXMfpJjg.mjs";
|
|
4
|
-
import { t as loadKit } from "./kit-
|
|
4
|
+
import { t as loadKit } from "./kit-umDtPKPe.mjs";
|
|
5
5
|
import { dirname } from "node:path";
|
|
6
6
|
import process from "node:process";
|
|
7
7
|
import { styleText } from "node:util";
|
|
@@ -64,7 +64,8 @@ async function stopCpuProfile(outDir, command) {
|
|
|
64
64
|
try {
|
|
65
65
|
mkdirSync(outDir, { recursive: true });
|
|
66
66
|
writeFileSync(outPath, JSON.stringify(params.profile));
|
|
67
|
-
|
|
67
|
+
const nextSteps = [`CPU profile written to ${styleText("cyan", relativeOutPath)}.`, `Open it in a CPU profile viewer like your IDE, or ${styleText("cyan", "https://discoveryjs.github.io/cpupro")}.`];
|
|
68
|
+
box(`\n${nextSteps.map((step) => ` › ${step}`).join("\n")}\n`, "", {
|
|
68
69
|
contentAlign: "left",
|
|
69
70
|
titleAlign: "left",
|
|
70
71
|
width: "auto",
|
|
@@ -49,7 +49,8 @@ async function getAuthToken(registry, cwd) {
|
|
|
49
49
|
try {
|
|
50
50
|
fd = await fs.promises.open(npmrcPath, "r");
|
|
51
51
|
if (await fd.stat().then((r) => r.isFile())) {
|
|
52
|
-
const
|
|
52
|
+
const npmrcContent = await fd.readFile("utf-8");
|
|
53
|
+
const authToken = parseINI(npmrcContent)[authTokenKey];
|
|
53
54
|
if (authToken) return authToken.trim();
|
|
54
55
|
}
|
|
55
56
|
} catch {} finally {
|
|
@@ -3,7 +3,7 @@ import { c as logger, n as relativeToProcess } from "./paths-BMgcFDvh.mjs";
|
|
|
3
3
|
import { t as logNetworkError } from "./network-0Y9fC7ap.mjs";
|
|
4
4
|
import { a as CONFIG_KEYS, i as removeNuxtConfigEntries, o as runCommandDef, r as readNuxtConfig } from "./config-BV-Kl4RM.mjs";
|
|
5
5
|
import { t as readDependencyPackageJson } from "./package-json-Cb_RH9VF.mjs";
|
|
6
|
-
import { t as prepare_default } from "./prepare-
|
|
6
|
+
import { t as prepare_default } from "./prepare-CpUfX10m.mjs";
|
|
7
7
|
import { a as fetchModules, c as isPnpmWorkspace, i as ensureNuxtDependency, n as basePackageName, o as forwardCommandArgs, s as getProjectDependencies, t as MODULES_API_URL } from "./_utils-Bdf8LCNw.mjs";
|
|
8
8
|
import process from "node:process";
|
|
9
9
|
import { styleText } from "node:util";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { s as rootDirArgs } from "./_shared-CDYe2gUz.mjs";
|
|
2
2
|
import { c as logger, i as resolveRootDir } from "./paths-BMgcFDvh.mjs";
|
|
3
|
-
import { a as reportTaskError, c as runTask, l as taskArgs, o as reportUnknownTask, r as format, s as resolveTaskServer } from "./_utils-
|
|
3
|
+
import { a as reportTaskError, c as runTask, l as taskArgs, o as reportUnknownTask, r as format, s as resolveTaskServer } from "./_utils-BE7w_Eq2.mjs";
|
|
4
4
|
import process from "node:process";
|
|
5
5
|
import { styleText } from "node:util";
|
|
6
6
|
import { defineCommand } from "citty";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as cwdArgs } from "./_shared-CDYe2gUz.mjs";
|
|
2
2
|
import { c as logger } from "./paths-BMgcFDvh.mjs";
|
|
3
3
|
import { t as logNetworkError } from "./network-0Y9fC7ap.mjs";
|
|
4
|
-
import { n as getNuxtVersion, t as DEFAULT_NUXT_VERSION } from "./versions-
|
|
4
|
+
import { n as getNuxtVersion, t as DEFAULT_NUXT_VERSION } from "./versions-Cd_1aJ1w.mjs";
|
|
5
5
|
import { a as fetchModules, r as checkNuxtCompatibility, t as MODULES_API_URL } from "./_utils-Bdf8LCNw.mjs";
|
|
6
6
|
import { n as formatInfoBox } from "./formatting-DwIOb1Eu.mjs";
|
|
7
7
|
import process from "node:process";
|
|
@@ -44,10 +44,11 @@ function normalizeNuxtVersion(version) {
|
|
|
44
44
|
return /^\d+$/.test(version) ? `${version}.0.0` : /^\d+\.\d+$/.test(version) ? `${version}.0` : version;
|
|
45
45
|
}
|
|
46
46
|
async function findModuleByKeywords(query, nuxtVersion) {
|
|
47
|
-
const
|
|
47
|
+
const compatibleModules = (await fetchModules().catch((err) => {
|
|
48
48
|
logNetworkError(err, { url: MODULES_API_URL });
|
|
49
49
|
process.exit(1);
|
|
50
|
-
})).filter((m) => checkNuxtCompatibility(m, nuxtVersion))
|
|
50
|
+
})).filter((m) => checkNuxtCompatibility(m, nuxtVersion));
|
|
51
|
+
const results = new Fzf(compatibleModules, {
|
|
51
52
|
selector: (m) => [
|
|
52
53
|
m.name,
|
|
53
54
|
m.npm,
|
|
@@ -88,7 +89,8 @@ async function findModuleByKeywords(query, nuxtVersion) {
|
|
|
88
89
|
}
|
|
89
90
|
const title = formattedModule.Name || formattedModule.Package;
|
|
90
91
|
delete formattedModule.Name;
|
|
91
|
-
|
|
92
|
+
const boxContent = formatInfoBox(formattedModule);
|
|
93
|
+
box(`\n${boxContent}`, ` ${title} `, {
|
|
92
94
|
contentAlign: "left",
|
|
93
95
|
titleAlign: "left",
|
|
94
96
|
width: "auto",
|
|
@@ -7,8 +7,8 @@ var task_default = defineCommand({
|
|
|
7
7
|
},
|
|
8
8
|
args: {},
|
|
9
9
|
subCommands: {
|
|
10
|
-
list: () => import("./list-
|
|
11
|
-
run: () => import("./run-
|
|
10
|
+
list: () => import("./list-BuONHuQh.mjs").then((r) => r.default || r),
|
|
11
|
+
run: () => import("./run-UwHFEqpz.mjs").then((r) => r.default || r)
|
|
12
12
|
}
|
|
13
13
|
});
|
|
14
14
|
//#endregion
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { c as logger, s as debug } from "./paths-BMgcFDvh.mjs";
|
|
2
|
-
import { r as resolveTool } from "./binaries-
|
|
2
|
+
import { r as resolveTool } from "./binaries-DOIRWJLb.mjs";
|
|
3
3
|
import process from "node:process";
|
|
4
4
|
import { once } from "node:events";
|
|
5
5
|
import { spawn } from "node:child_process";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { a as logLevelArgs, i as extendsArgs, n as dotEnvArgs, s as rootDirArgs } from "./_shared-CDYe2gUz.mjs";
|
|
2
2
|
import { a as withNodePath, c as logger, i as resolveRootDir } from "./paths-BMgcFDvh.mjs";
|
|
3
|
-
import { t as loadKit } from "./kit-
|
|
3
|
+
import { t as loadKit } from "./kit-umDtPKPe.mjs";
|
|
4
4
|
import process from "node:process";
|
|
5
5
|
import { styleText } from "node:util";
|
|
6
6
|
import { defineCommand } from "citty";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { l as writeNotice, s as debug, u as trackOutputSpacing } from "./paths-BMgcFDvh.mjs";
|
|
2
2
|
import { t as fetchJson } from "./fetch-g4bhLuz9.mjs";
|
|
3
|
-
import { t as detectNpmRegistry } from "./registry-
|
|
3
|
+
import { t as detectNpmRegistry } from "./registry-B6t0YbAU.mjs";
|
|
4
4
|
import process from "node:process";
|
|
5
5
|
import { styleText } from "node:util";
|
|
6
6
|
import { isCI, isTest, provider } from "std-env";
|
|
@@ -10,7 +10,7 @@ import { readUser, updateUser } from "rc9";
|
|
|
10
10
|
//#region src/utils/update-check.ts
|
|
11
11
|
const RC_FILE = ".nuxtrc";
|
|
12
12
|
const CACHE_KEY = "updateCheck";
|
|
13
|
-
const CACHE_TTL =
|
|
13
|
+
const CACHE_TTL = 864e5;
|
|
14
14
|
const FETCH_TIMEOUT = 3e3;
|
|
15
15
|
/**
|
|
16
16
|
* Patch releases within the same minor are only worth interrupting for once the
|
|
@@ -110,7 +110,7 @@ function deferNudge(update, options, render = renderUpdateNudge) {
|
|
|
110
110
|
*/
|
|
111
111
|
async function checkForNuxtUpdate(cwd) {
|
|
112
112
|
try {
|
|
113
|
-
return await checkForUpdate("nuxt", await import("./versions-
|
|
113
|
+
return await checkForUpdate("nuxt", await import("./versions-Cd_1aJ1w.mjs").then((n) => n.i).then(({ getNuxtVersion }) => getNuxtVersion(cwd)).catch(() => void 0));
|
|
114
114
|
} catch (error) {
|
|
115
115
|
debug("Failed to check for Nuxt updates:", error);
|
|
116
116
|
return;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { a as logLevelArgs, s as rootDirArgs } from "./_shared-CDYe2gUz.mjs";
|
|
2
2
|
import { c as logger, i as resolveRootDir, n as relativeToProcess } from "./paths-BMgcFDvh.mjs";
|
|
3
|
-
import { t as loadKit } from "./kit-
|
|
3
|
+
import { t as loadKit } from "./kit-umDtPKPe.mjs";
|
|
4
4
|
import { r as nuxtVersionToGitIdentifier, t as cleanupNuxtDirs } from "./nuxt-hDV8F0bn.mjs";
|
|
5
|
-
import { a as takeUnreportedIgnoredBuilds, i as runInstall, r as runDedupe, t as createInstallLog } from "./install-
|
|
5
|
+
import { a as takeUnreportedIgnoredBuilds, i as runInstall, r as runDedupe, t as createInstallLog } from "./install-DLOWi6CT.mjs";
|
|
6
6
|
import { n as updateCatalogEntries, t as resolveCatalogEntry } from "./catalog-sD2GE_wb.mjs";
|
|
7
|
-
import { n as getNuxtVersion, r as resolveRegistryVersion } from "./versions-
|
|
7
|
+
import { n as getNuxtVersion, r as resolveRegistryVersion } from "./versions-Cd_1aJ1w.mjs";
|
|
8
8
|
import { t as getPackageManagerVersion } from "./packageManagers-BdVJ1Lrc.mjs";
|
|
9
9
|
import process from "node:process";
|
|
10
10
|
import { styleText } from "node:util";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-D7D4PA-g.mjs";
|
|
2
2
|
import { s as debug } from "./paths-BMgcFDvh.mjs";
|
|
3
3
|
import { t as fetchJson } from "./fetch-g4bhLuz9.mjs";
|
|
4
|
-
import { t as detectNpmRegistry } from "./registry-
|
|
4
|
+
import { t as detectNpmRegistry } from "./registry-B6t0YbAU.mjs";
|
|
5
5
|
import { t as resolveCatalogEntry } from "./catalog-sD2GE_wb.mjs";
|
|
6
6
|
import { t as readDependencyPackageJson } from "./package-json-Cb_RH9VF.mjs";
|
|
7
7
|
import { coerce, findMaxSatisfying } from "verkit";
|
|
@@ -39,7 +39,8 @@ async function getNuxtVersion(cwd) {
|
|
|
39
39
|
async function resolveRegistryVersion(pkg, range) {
|
|
40
40
|
let packument;
|
|
41
41
|
try {
|
|
42
|
-
const
|
|
42
|
+
const scope = pkg.startsWith("@") ? pkg.split("/")[0] : null;
|
|
43
|
+
const { registry, authToken } = await detectNpmRegistry(scope);
|
|
43
44
|
packument = await fetchJson(joinURL(registry, pkg), {
|
|
44
45
|
headers: {
|
|
45
46
|
Accept: "application/vnd.npm.install-v1+json",
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nuxt/cli-nightly",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "4.0.0-
|
|
4
|
+
"version": "4.0.0-20260803-085155-e80f9d0",
|
|
5
5
|
"description": "Nuxt CLI",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"repository": {
|
|
@@ -101,7 +101,7 @@
|
|
|
101
101
|
"jiti": "^2.7.0",
|
|
102
102
|
"nitro": "^3.0.1-alpha.2",
|
|
103
103
|
"nitropack": "^2.13.4",
|
|
104
|
-
"rolldown": "^1.2.
|
|
104
|
+
"rolldown": "^1.2.1",
|
|
105
105
|
"rollup": "^4.62.3",
|
|
106
106
|
"tsdown": "^0.22.14",
|
|
107
107
|
"typescript": "^6.0.3",
|