@nuxt/cli-nightly 3.31.0-20251204-092002-02d37f0 → 3.31.0-20251204-152053-7812d77
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/{add-k1Nn1cL6.mjs → add-BRBkCPhK.mjs} +1 -1
- package/dist/add-CHNLu2Nh.mjs +10 -0
- package/dist/{add-BDLJqyyz.mjs → add-DLobtPIm.mjs} +3 -3
- package/dist/{analyze-DVTE10Og.mjs → analyze-C5qqTkhe.mjs} +3 -3
- package/dist/{banner-Brd8qg0_.mjs → banner-drlfl0J-.mjs} +1 -1
- package/dist/{build-KUVpCAx8.mjs → build-ChMzq018.mjs} +4 -4
- package/dist/build-Dx1VGivC.mjs +10 -0
- package/dist/{cleanup-B6ZYJtxX.mjs → cleanup-CD3OpT9X.mjs} +3 -3
- package/dist/dev/index.mjs +6 -6
- package/dist/dev-CV0MMLTC.mjs +9 -0
- package/dist/{dev-JltooV9B.mjs → dev-DauHVvcO.mjs} +7 -7
- package/dist/{dev-DYv298gM.mjs → dev-DtQo0jDZ.mjs} +4 -4
- package/dist/{dev-child-BMQAV2Jm.mjs → dev-child-CJE2iuic.mjs} +1 -1
- package/dist/{generate-DD8qcTxo.mjs → generate-DSEHRPYE.mjs} +6 -6
- package/dist/index.mjs +21 -35
- package/dist/{info-xsjPNXb7.mjs → info-BdmctzcT.mjs} +6 -6
- package/dist/{init-D6EjQYoM.mjs → init-DvmnH01R.mjs} +151 -64
- package/dist/{module-JzL-mWJT.mjs → module-dUoKC1O2.mjs} +2 -2
- package/dist/{nuxt-tDl7zzU6.mjs → nuxt-Bkosdz43.mjs} +1 -1
- package/dist/prepare-DCVINTk-.mjs +7 -0
- package/dist/{prepare-lA11pstb.mjs → prepare-DU15fbIh.mjs} +2 -2
- package/dist/{preview-DdpTx3Cc.mjs → preview-CwSDIjlH.mjs} +5 -1
- package/dist/{search-2grvqtyw.mjs → search-JRE-pvWm.mjs} +3 -3
- package/dist/templates-C0gAD--n.mjs +34 -0
- package/dist/templates-FddTjK4U.mjs +3 -0
- package/dist/{typecheck-D7yiYtYz.mjs → typecheck-CLdIBKcn.mjs} +1 -1
- package/dist/{upgrade-B8j7psHx.mjs → upgrade-fEGIXDnO.mjs} +5 -5
- package/dist/{versions-CfGmudYQ.mjs → versions-CTlxnxbH.mjs} +1 -1
- package/package.json +1 -1
- package/dist/add-DK-do0tH.mjs +0 -10
- package/dist/build-BXaUqCgz.mjs +0 -10
- package/dist/dev-7iAIxGot.mjs +0 -9
- package/dist/prepare-D3poicWu.mjs +0 -7
- /package/dist/{devtools-BOw17GFK.mjs → devtools-BTYlIJMv.mjs} +0 -0
- /package/dist/{env-DNvSuiMW.mjs → env-kdrdHqLf.mjs} +0 -0
- /package/dist/{formatting-CAvhu26Q.mjs → formatting-PESozNtr.mjs} +0 -0
- /package/dist/{fs-DXG4022E.mjs → fs-B_hD5MnA.mjs} +0 -0
- /package/dist/{kit-CWALD0uf.mjs → kit-CPEUdXTm.mjs} +0 -0
- /package/dist/{packageManagers-Dd1BN02x.mjs → packageManagers-BX7-V04a.mjs} +0 -0
- /package/dist/{test-EN3r-qAH.mjs → test-D9z67EJZ.mjs} +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { o as logLevelArgs, t as cwdArgs } from "./_shared-BCYCnX0T.mjs";
|
|
2
2
|
import { n as logger } from "./logger-B4ge7MhP.mjs";
|
|
3
|
-
import { r as relativeToProcess, t as loadKit } from "./kit-
|
|
3
|
+
import { r as relativeToProcess, t as loadKit } from "./kit-CPEUdXTm.mjs";
|
|
4
4
|
import process from "node:process";
|
|
5
5
|
import { defineCommand } from "citty";
|
|
6
6
|
import { colors } from "consola/utils";
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import "./_shared-BCYCnX0T.mjs";
|
|
2
|
+
import "./logger-B4ge7MhP.mjs";
|
|
3
|
+
import "./kit-CPEUdXTm.mjs";
|
|
4
|
+
import "./versions-CTlxnxbH.mjs";
|
|
5
|
+
import "./fs-B_hD5MnA.mjs";
|
|
6
|
+
import { t as add_default } from "./add-DLobtPIm.mjs";
|
|
7
|
+
import "./_utils-B8YNEdpq.mjs";
|
|
8
|
+
import "./prepare-DU15fbIh.mjs";
|
|
9
|
+
|
|
10
|
+
export { add_default as default };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { o as logLevelArgs, t as cwdArgs } from "./_shared-BCYCnX0T.mjs";
|
|
2
2
|
import { n as logger } from "./logger-B4ge7MhP.mjs";
|
|
3
|
-
import { r as relativeToProcess } from "./kit-
|
|
4
|
-
import { t as getNuxtVersion } from "./versions-
|
|
5
|
-
import { t as prepare_default } from "./prepare-lA11pstb.mjs";
|
|
3
|
+
import { r as relativeToProcess } from "./kit-CPEUdXTm.mjs";
|
|
4
|
+
import { t as getNuxtVersion } from "./versions-CTlxnxbH.mjs";
|
|
6
5
|
import { n as fetchModules, r as getRegistryFromContent, t as checkNuxtCompatibility } from "./_utils-B8YNEdpq.mjs";
|
|
6
|
+
import { t as prepare_default } from "./prepare-DU15fbIh.mjs";
|
|
7
7
|
import { join } from "node:path";
|
|
8
8
|
import process from "node:process";
|
|
9
9
|
import { defineCommand, runCommand } from "citty";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { a as legacyRootDirArgs, i as extendsArgs, n as dotEnvArgs, o as logLevelArgs, t as cwdArgs } from "./_shared-BCYCnX0T.mjs";
|
|
2
2
|
import { n as logger } from "./logger-B4ge7MhP.mjs";
|
|
3
|
-
import { r as relativeToProcess, t as loadKit } from "./kit-
|
|
4
|
-
import { n as clearDir } from "./fs-
|
|
5
|
-
import { t as overrideEnv } from "./env-
|
|
3
|
+
import { r as relativeToProcess, t as loadKit } from "./kit-CPEUdXTm.mjs";
|
|
4
|
+
import { n as clearDir } from "./fs-B_hD5MnA.mjs";
|
|
5
|
+
import { t as overrideEnv } from "./env-kdrdHqLf.mjs";
|
|
6
6
|
import process from "node:process";
|
|
7
7
|
import { defineCommand } from "citty";
|
|
8
8
|
import { colors } from "consola/utils";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { n as logger } from "./logger-B4ge7MhP.mjs";
|
|
2
|
-
import { n as getPkgJSON, r as getPkgVersion } from "./versions-
|
|
2
|
+
import { n as getPkgJSON, r as getPkgVersion } from "./versions-CTlxnxbH.mjs";
|
|
3
3
|
import { colors } from "consola/utils";
|
|
4
4
|
|
|
5
5
|
//#region ../nuxi/src/utils/banner.ts
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { a as legacyRootDirArgs, i as extendsArgs, n as dotEnvArgs, o as logLevelArgs, r as envNameArgs, t as cwdArgs } from "./_shared-BCYCnX0T.mjs";
|
|
2
2
|
import { n as logger } from "./logger-B4ge7MhP.mjs";
|
|
3
|
-
import { t as loadKit } from "./kit-
|
|
4
|
-
import { n as showVersions } from "./banner-
|
|
5
|
-
import { t as clearBuildDir } from "./fs-
|
|
6
|
-
import { t as overrideEnv } from "./env-
|
|
3
|
+
import { t as loadKit } from "./kit-CPEUdXTm.mjs";
|
|
4
|
+
import { n as showVersions } from "./banner-drlfl0J-.mjs";
|
|
5
|
+
import { t as clearBuildDir } from "./fs-B_hD5MnA.mjs";
|
|
6
|
+
import { t as overrideEnv } from "./env-kdrdHqLf.mjs";
|
|
7
7
|
import process from "node:process";
|
|
8
8
|
import { defineCommand } from "citty";
|
|
9
9
|
import { colors } from "consola/utils";
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import "./_shared-BCYCnX0T.mjs";
|
|
2
|
+
import "./logger-B4ge7MhP.mjs";
|
|
3
|
+
import "./kit-CPEUdXTm.mjs";
|
|
4
|
+
import "./versions-CTlxnxbH.mjs";
|
|
5
|
+
import "./banner-drlfl0J-.mjs";
|
|
6
|
+
import "./fs-B_hD5MnA.mjs";
|
|
7
|
+
import "./env-kdrdHqLf.mjs";
|
|
8
|
+
import { t as build_default } from "./build-ChMzq018.mjs";
|
|
9
|
+
|
|
10
|
+
export { build_default as default };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { a as legacyRootDirArgs, t as cwdArgs } from "./_shared-BCYCnX0T.mjs";
|
|
2
2
|
import { n as logger } from "./logger-B4ge7MhP.mjs";
|
|
3
|
-
import { t as loadKit } from "./kit-
|
|
4
|
-
import "./fs-
|
|
5
|
-
import { t as cleanupNuxtDirs } from "./nuxt-
|
|
3
|
+
import { t as loadKit } from "./kit-CPEUdXTm.mjs";
|
|
4
|
+
import "./fs-B_hD5MnA.mjs";
|
|
5
|
+
import { t as cleanupNuxtDirs } from "./nuxt-Bkosdz43.mjs";
|
|
6
6
|
import { defineCommand } from "citty";
|
|
7
7
|
import { resolve } from "pathe";
|
|
8
8
|
|
package/dist/dev/index.mjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import "../logger-B4ge7MhP.mjs";
|
|
2
|
-
import { t as initialize } from "../dev-
|
|
3
|
-
import "../kit-
|
|
4
|
-
import "../versions-
|
|
5
|
-
import "../banner-
|
|
6
|
-
import "../fs-
|
|
7
|
-
import "../nuxt-
|
|
2
|
+
import { t as initialize } from "../dev-DtQo0jDZ.mjs";
|
|
3
|
+
import "../kit-CPEUdXTm.mjs";
|
|
4
|
+
import "../versions-CTlxnxbH.mjs";
|
|
5
|
+
import "../banner-drlfl0J-.mjs";
|
|
6
|
+
import "../fs-B_hD5MnA.mjs";
|
|
7
|
+
import "../nuxt-Bkosdz43.mjs";
|
|
8
8
|
|
|
9
9
|
export { initialize };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import "./logger-B4ge7MhP.mjs";
|
|
2
|
+
import { t as initialize } from "./dev-DtQo0jDZ.mjs";
|
|
3
|
+
import "./kit-CPEUdXTm.mjs";
|
|
4
|
+
import "./versions-CTlxnxbH.mjs";
|
|
5
|
+
import "./banner-drlfl0J-.mjs";
|
|
6
|
+
import "./fs-B_hD5MnA.mjs";
|
|
7
|
+
import "./nuxt-Bkosdz43.mjs";
|
|
8
|
+
|
|
9
|
+
export { initialize };
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { a as legacyRootDirArgs, i as extendsArgs, n as dotEnvArgs, o as logLevelArgs, r as envNameArgs, t as cwdArgs } from "./_shared-BCYCnX0T.mjs";
|
|
2
2
|
import { n as logger, t as debug } from "./logger-B4ge7MhP.mjs";
|
|
3
|
-
import { t as initialize } from "./dev-
|
|
4
|
-
import "./kit-
|
|
5
|
-
import "./versions-
|
|
6
|
-
import "./banner-
|
|
7
|
-
import "./fs-
|
|
8
|
-
import "./nuxt-
|
|
9
|
-
import { t as overrideEnv } from "./env-
|
|
3
|
+
import { t as initialize } from "./dev-DtQo0jDZ.mjs";
|
|
4
|
+
import "./kit-CPEUdXTm.mjs";
|
|
5
|
+
import "./versions-CTlxnxbH.mjs";
|
|
6
|
+
import "./banner-drlfl0J-.mjs";
|
|
7
|
+
import "./fs-B_hD5MnA.mjs";
|
|
8
|
+
import "./nuxt-Bkosdz43.mjs";
|
|
9
|
+
import { t as overrideEnv } from "./env-kdrdHqLf.mjs";
|
|
10
10
|
import process from "node:process";
|
|
11
11
|
import { defineCommand } from "citty";
|
|
12
12
|
import { isBun, isDeno, isTest } from "std-env";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { i as withNodePath, t as loadKit } from "./kit-
|
|
2
|
-
import { r as showVersionsFromConfig } from "./banner-
|
|
3
|
-
import { t as clearBuildDir } from "./fs-
|
|
4
|
-
import { a as writeNuxtManifest, i as resolveNuxtManifest, n as loadNuxtManifest } from "./nuxt-
|
|
1
|
+
import { i as withNodePath, t as loadKit } from "./kit-CPEUdXTm.mjs";
|
|
2
|
+
import { r as showVersionsFromConfig } from "./banner-drlfl0J-.mjs";
|
|
3
|
+
import { t as clearBuildDir } from "./fs-B_hD5MnA.mjs";
|
|
4
|
+
import { a as writeNuxtManifest, i as resolveNuxtManifest, n as loadNuxtManifest } from "./nuxt-Bkosdz43.mjs";
|
|
5
5
|
import process from "node:process";
|
|
6
6
|
import { provider } from "std-env";
|
|
7
7
|
import { pathToFileURL } from "node:url";
|
|
@@ -25,7 +25,7 @@ var dev_child_default = defineCommand({
|
|
|
25
25
|
async run(ctx) {
|
|
26
26
|
if (!process.send && !isTest) console.warn("`nuxi _dev` is an internal command and should not be used directly. Please use `nuxi dev` instead.");
|
|
27
27
|
const cwd = resolve(ctx.args.cwd || ctx.args.rootDir);
|
|
28
|
-
const { initialize } = await import("./dev-
|
|
28
|
+
const { initialize } = await import("./dev-CV0MMLTC.mjs");
|
|
29
29
|
await initialize({
|
|
30
30
|
cwd,
|
|
31
31
|
args: ctx.args
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { a as legacyRootDirArgs, i as extendsArgs, n as dotEnvArgs, o as logLevelArgs, r as envNameArgs, t as cwdArgs } from "./_shared-BCYCnX0T.mjs";
|
|
2
2
|
import "./logger-B4ge7MhP.mjs";
|
|
3
|
-
import "./kit-
|
|
4
|
-
import "./versions-
|
|
5
|
-
import "./banner-
|
|
6
|
-
import "./fs-
|
|
7
|
-
import "./env-
|
|
8
|
-
import { t as build_default } from "./build-
|
|
3
|
+
import "./kit-CPEUdXTm.mjs";
|
|
4
|
+
import "./versions-CTlxnxbH.mjs";
|
|
5
|
+
import "./banner-drlfl0J-.mjs";
|
|
6
|
+
import "./fs-B_hD5MnA.mjs";
|
|
7
|
+
import "./env-kdrdHqLf.mjs";
|
|
8
|
+
import { t as build_default } from "./build-ChMzq018.mjs";
|
|
9
9
|
import { defineCommand } from "citty";
|
|
10
10
|
|
|
11
11
|
//#region ../nuxi/src/commands/generate.ts
|
package/dist/index.mjs
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { t as cwdArgs } from "./_shared-BCYCnX0T.mjs";
|
|
2
2
|
import { n as logger } from "./logger-B4ge7MhP.mjs";
|
|
3
|
+
import { t as templates } from "./templates-C0gAD--n.mjs";
|
|
3
4
|
import { resolve } from "node:path";
|
|
4
5
|
import process from "node:process";
|
|
5
6
|
import { defineCommand, runCommand as runCommand$1, runMain as runMain$1 } from "citty";
|
|
@@ -12,23 +13,23 @@ import tab from "@bomb.sh/tab/citty";
|
|
|
12
13
|
//#region ../nuxi/src/commands/index.ts
|
|
13
14
|
const _rDefault = (r) => r.default || r;
|
|
14
15
|
const commands = {
|
|
15
|
-
add: () => import("./add-
|
|
16
|
-
analyze: () => import("./analyze-
|
|
17
|
-
build: () => import("./build-
|
|
18
|
-
cleanup: () => import("./cleanup-
|
|
19
|
-
_dev: () => import("./dev-child-
|
|
20
|
-
dev: () => import("./dev-
|
|
21
|
-
devtools: () => import("./devtools-
|
|
22
|
-
generate: () => import("./generate-
|
|
23
|
-
info: () => import("./info-
|
|
24
|
-
init: () => import("./init-
|
|
25
|
-
module: () => import("./module-
|
|
26
|
-
prepare: () => import("./prepare-
|
|
27
|
-
preview: () => import("./preview-
|
|
28
|
-
start: () => import("./preview-
|
|
29
|
-
test: () => import("./test-
|
|
30
|
-
typecheck: () => import("./typecheck-
|
|
31
|
-
upgrade: () => import("./upgrade-
|
|
16
|
+
add: () => import("./add-BRBkCPhK.mjs").then(_rDefault),
|
|
17
|
+
analyze: () => import("./analyze-C5qqTkhe.mjs").then(_rDefault),
|
|
18
|
+
build: () => import("./build-Dx1VGivC.mjs").then(_rDefault),
|
|
19
|
+
cleanup: () => import("./cleanup-CD3OpT9X.mjs").then(_rDefault),
|
|
20
|
+
_dev: () => import("./dev-child-CJE2iuic.mjs").then(_rDefault),
|
|
21
|
+
dev: () => import("./dev-DauHVvcO.mjs").then(_rDefault),
|
|
22
|
+
devtools: () => import("./devtools-BTYlIJMv.mjs").then(_rDefault),
|
|
23
|
+
generate: () => import("./generate-DSEHRPYE.mjs").then(_rDefault),
|
|
24
|
+
info: () => import("./info-BdmctzcT.mjs").then(_rDefault),
|
|
25
|
+
init: () => import("./init-DvmnH01R.mjs").then(_rDefault),
|
|
26
|
+
module: () => import("./module-dUoKC1O2.mjs").then(_rDefault),
|
|
27
|
+
prepare: () => import("./prepare-DCVINTk-.mjs").then(_rDefault),
|
|
28
|
+
preview: () => import("./preview-CwSDIjlH.mjs").then(_rDefault),
|
|
29
|
+
start: () => import("./preview-CwSDIjlH.mjs").then(_rDefault),
|
|
30
|
+
test: () => import("./test-D9z67EJZ.mjs").then(_rDefault),
|
|
31
|
+
typecheck: () => import("./typecheck-CLdIBKcn.mjs").then(_rDefault),
|
|
32
|
+
upgrade: () => import("./upgrade-fEGIXDnO.mjs").then(_rDefault)
|
|
32
33
|
};
|
|
33
34
|
|
|
34
35
|
//#endregion
|
|
@@ -65,7 +66,7 @@ async function checkEngines() {
|
|
|
65
66
|
//#endregion
|
|
66
67
|
//#region package.json
|
|
67
68
|
var name = "@nuxt/cli-nightly";
|
|
68
|
-
var version = "3.31.0-20251204-
|
|
69
|
+
var version = "3.31.0-20251204-152053-7812d77";
|
|
69
70
|
var description = "Nuxt CLI";
|
|
70
71
|
|
|
71
72
|
//#endregion
|
|
@@ -111,8 +112,7 @@ const _main = defineCommand({
|
|
|
111
112
|
const main = _main;
|
|
112
113
|
|
|
113
114
|
//#endregion
|
|
114
|
-
//#region ../nuxi/src/
|
|
115
|
-
/** Auto-generated file */
|
|
115
|
+
//#region ../nuxi/src/data/nitro-presets.ts
|
|
116
116
|
const nitroPresets = [
|
|
117
117
|
"alwaysdata",
|
|
118
118
|
"aws-amplify",
|
|
@@ -166,20 +166,6 @@ const nitroPresets = [
|
|
|
166
166
|
"zerops",
|
|
167
167
|
"zerops-static"
|
|
168
168
|
];
|
|
169
|
-
const templates = [
|
|
170
|
-
"doc-driven",
|
|
171
|
-
"hub",
|
|
172
|
-
"layer",
|
|
173
|
-
"minimal",
|
|
174
|
-
"module",
|
|
175
|
-
"module-devtools",
|
|
176
|
-
"ui",
|
|
177
|
-
"ui-vue",
|
|
178
|
-
"v2-bridge",
|
|
179
|
-
"v3",
|
|
180
|
-
"v4",
|
|
181
|
-
"v4-compat"
|
|
182
|
-
];
|
|
183
169
|
|
|
184
170
|
//#endregion
|
|
185
171
|
//#region ../nuxi/src/completions.ts
|
|
@@ -211,7 +197,7 @@ async function initCompletions(command) {
|
|
|
211
197
|
if (initCommand) {
|
|
212
198
|
const templateOption = initCommand.options.get("template");
|
|
213
199
|
if (templateOption) templateOption.handler = (complete) => {
|
|
214
|
-
for (const template
|
|
200
|
+
for (const template in templates) complete(template, templates[template]?.description || "");
|
|
215
201
|
};
|
|
216
202
|
}
|
|
217
203
|
const addCommand = completion.commands.get("add");
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { a as legacyRootDirArgs, t as cwdArgs } from "./_shared-BCYCnX0T.mjs";
|
|
2
2
|
import { n as logger } from "./logger-B4ge7MhP.mjs";
|
|
3
|
-
import { n as tryResolveNuxt } from "./kit-
|
|
4
|
-
import "./versions-
|
|
5
|
-
import { t as getBuilder } from "./banner-
|
|
6
|
-
import { t as formatInfoBox } from "./formatting-
|
|
7
|
-
import { t as getPackageManagerVersion } from "./packageManagers-
|
|
3
|
+
import { n as tryResolveNuxt } from "./kit-CPEUdXTm.mjs";
|
|
4
|
+
import "./versions-CTlxnxbH.mjs";
|
|
5
|
+
import { t as getBuilder } from "./banner-drlfl0J-.mjs";
|
|
6
|
+
import { t as formatInfoBox } from "./formatting-PESozNtr.mjs";
|
|
7
|
+
import { t as getPackageManagerVersion } from "./packageManagers-BX7-V04a.mjs";
|
|
8
8
|
import process from "node:process";
|
|
9
9
|
import { defineCommand } from "citty";
|
|
10
10
|
import { isBun, isDeno, isMinimal } from "std-env";
|
|
@@ -17,7 +17,7 @@ import { copy } from "copy-paste";
|
|
|
17
17
|
import { detectPackageManager } from "nypm";
|
|
18
18
|
|
|
19
19
|
//#region ../nuxi/package.json
|
|
20
|
-
var version = "3.31.0-20251204-
|
|
20
|
+
var version = "3.31.0-20251204-152042-7812d77";
|
|
21
21
|
|
|
22
22
|
//#endregion
|
|
23
23
|
//#region ../nuxi/src/commands/info.ts
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { o as logLevelArgs, t as cwdArgs } from "./_shared-BCYCnX0T.mjs";
|
|
2
2
|
import { n as logger } from "./logger-B4ge7MhP.mjs";
|
|
3
|
-
import { r as relativeToProcess } from "./kit-
|
|
4
|
-
import "./versions-
|
|
5
|
-
import "./fs-
|
|
6
|
-
import { n as runCommand$1, t as add_default } from "./add-
|
|
7
|
-
import "./
|
|
8
|
-
import "./
|
|
3
|
+
import { r as relativeToProcess } from "./kit-CPEUdXTm.mjs";
|
|
4
|
+
import "./versions-CTlxnxbH.mjs";
|
|
5
|
+
import "./fs-B_hD5MnA.mjs";
|
|
6
|
+
import { n as runCommand$1, t as add_default } from "./add-DLobtPIm.mjs";
|
|
7
|
+
import { n as fetchModules } from "./_utils-B8YNEdpq.mjs";
|
|
8
|
+
import "./prepare-DU15fbIh.mjs";
|
|
9
9
|
import process from "node:process";
|
|
10
10
|
import { defineCommand } from "citty";
|
|
11
11
|
import { hasTTY } from "std-env";
|
|
@@ -37,10 +37,49 @@ const icon = [
|
|
|
37
37
|
];
|
|
38
38
|
const nuxtIcon = icon.map((line) => line.split("").join(themeColor)).join("\n");
|
|
39
39
|
|
|
40
|
+
//#endregion
|
|
41
|
+
//#region ../nuxi/src/utils/starter-templates.ts
|
|
42
|
+
const hiddenTemplates = [
|
|
43
|
+
"doc-driven",
|
|
44
|
+
"v4",
|
|
45
|
+
"v4-compat",
|
|
46
|
+
"v2-bridge",
|
|
47
|
+
"v3",
|
|
48
|
+
"ui-vue",
|
|
49
|
+
"module-devtools",
|
|
50
|
+
"layer",
|
|
51
|
+
"hub"
|
|
52
|
+
];
|
|
53
|
+
const fetchOptions = {
|
|
54
|
+
timeout: 3e3,
|
|
55
|
+
responseType: "json",
|
|
56
|
+
headers: {
|
|
57
|
+
"user-agent": "@nuxt/cli",
|
|
58
|
+
...process.env.GITHUB_TOKEN ? { authorization: `token ${process.env.GITHUB_TOKEN}` } : {}
|
|
59
|
+
}
|
|
60
|
+
};
|
|
61
|
+
let templatesCache = null;
|
|
62
|
+
async function getTemplates() {
|
|
63
|
+
templatesCache ||= fetchTemplates();
|
|
64
|
+
return templatesCache;
|
|
65
|
+
}
|
|
66
|
+
async function fetchTemplates() {
|
|
67
|
+
const templates = {};
|
|
68
|
+
const files = await $fetch("https://api.github.com/repos/nuxt/starter/contents/templates?ref=templates", fetchOptions);
|
|
69
|
+
await Promise.all(files.map(async (file) => {
|
|
70
|
+
if (!file.download_url || file.type !== "file" || !file.name.endsWith(".json")) return;
|
|
71
|
+
const templateName = file.name.replace(".json", "");
|
|
72
|
+
if (hiddenTemplates.includes(templateName)) return;
|
|
73
|
+
templates[templateName] = void 0;
|
|
74
|
+
templates[templateName] = await $fetch(file.download_url, fetchOptions);
|
|
75
|
+
}));
|
|
76
|
+
return templates;
|
|
77
|
+
}
|
|
78
|
+
|
|
40
79
|
//#endregion
|
|
41
80
|
//#region ../nuxi/src/commands/init.ts
|
|
42
81
|
const DEFAULT_REGISTRY = "https://raw.githubusercontent.com/nuxt/starter/templates/templates";
|
|
43
|
-
const DEFAULT_TEMPLATE_NAME = "
|
|
82
|
+
const DEFAULT_TEMPLATE_NAME = "minimal";
|
|
44
83
|
const packageManagerOptions = Object.keys({
|
|
45
84
|
npm: void 0,
|
|
46
85
|
pnpm: void 0,
|
|
@@ -48,47 +87,6 @@ const packageManagerOptions = Object.keys({
|
|
|
48
87
|
bun: void 0,
|
|
49
88
|
deno: void 0
|
|
50
89
|
});
|
|
51
|
-
async function getModuleDependencies(moduleName) {
|
|
52
|
-
try {
|
|
53
|
-
const dependencies = (await $fetch(`https://registry.npmjs.org/${moduleName}/latest`)).dependencies || {};
|
|
54
|
-
return Object.keys(dependencies);
|
|
55
|
-
} catch (err) {
|
|
56
|
-
logger.warn(`Could not get dependencies for ${colors.cyan(moduleName)}: ${err}`);
|
|
57
|
-
return [];
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
function filterModules(modules, allDependencies) {
|
|
61
|
-
const result = {
|
|
62
|
-
toInstall: [],
|
|
63
|
-
skipped: []
|
|
64
|
-
};
|
|
65
|
-
for (const module of modules) if (modules.some((otherModule) => {
|
|
66
|
-
if (otherModule === module) return false;
|
|
67
|
-
return (allDependencies[otherModule] || []).includes(module);
|
|
68
|
-
})) result.skipped.push(module);
|
|
69
|
-
else result.toInstall.push(module);
|
|
70
|
-
return result;
|
|
71
|
-
}
|
|
72
|
-
async function getTemplateDependencies(templateDir) {
|
|
73
|
-
try {
|
|
74
|
-
const packageJsonPath = join(templateDir, "package.json");
|
|
75
|
-
if (!existsSync(packageJsonPath)) return [];
|
|
76
|
-
const packageJson = await readPackageJSON(packageJsonPath);
|
|
77
|
-
const directDeps = {
|
|
78
|
-
...packageJson.dependencies,
|
|
79
|
-
...packageJson.devDependencies
|
|
80
|
-
};
|
|
81
|
-
const directDepNames = Object.keys(directDeps);
|
|
82
|
-
const allDeps = new Set(directDepNames);
|
|
83
|
-
(await Promise.all(directDepNames.map((dep) => getModuleDependencies(dep)))).forEach((deps) => {
|
|
84
|
-
deps.forEach((dep) => allDeps.add(dep));
|
|
85
|
-
});
|
|
86
|
-
return Array.from(allDeps);
|
|
87
|
-
} catch (err) {
|
|
88
|
-
logger.warn(`Could not read template dependencies: ${err}`);
|
|
89
|
-
return [];
|
|
90
|
-
}
|
|
91
|
-
}
|
|
92
90
|
var init_default = defineCommand({
|
|
93
91
|
meta: {
|
|
94
92
|
name: "init",
|
|
@@ -150,13 +148,55 @@ var init_default = defineCommand({
|
|
|
150
148
|
}
|
|
151
149
|
},
|
|
152
150
|
async run(ctx) {
|
|
151
|
+
if (!ctx.args.offline && !ctx.args.preferOffline && !ctx.args.template) getTemplates().catch(() => null);
|
|
153
152
|
if (hasTTY) process.stdout.write(`\n${nuxtIcon}\n\n`);
|
|
154
153
|
intro(colors.bold(`Welcome to Nuxt!`.split("").map((m) => `${themeColor}${m}`).join("")));
|
|
154
|
+
let availableTemplates = {};
|
|
155
|
+
if (!ctx.args.template || !ctx.args.dir) {
|
|
156
|
+
const defaultTemplates = await import("./templates-FddTjK4U.mjs").then((r) => r.templates);
|
|
157
|
+
if (ctx.args.offline || ctx.args.preferOffline) availableTemplates = defaultTemplates;
|
|
158
|
+
else {
|
|
159
|
+
const templatesSpinner = spinner();
|
|
160
|
+
templatesSpinner.start("Loading available templates");
|
|
161
|
+
try {
|
|
162
|
+
availableTemplates = await getTemplates();
|
|
163
|
+
templatesSpinner.stop("Templates loaded");
|
|
164
|
+
} catch {
|
|
165
|
+
availableTemplates = defaultTemplates;
|
|
166
|
+
templatesSpinner.stop("Templates loaded from cache");
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
let templateName = ctx.args.template;
|
|
171
|
+
if (!templateName) {
|
|
172
|
+
const result = await select({
|
|
173
|
+
message: "Which template would you like to use?",
|
|
174
|
+
options: Object.entries(availableTemplates).map(([name, data]) => {
|
|
175
|
+
return {
|
|
176
|
+
value: name,
|
|
177
|
+
label: data ? `${colors.whiteBright(name)} – ${data.description}` : name,
|
|
178
|
+
hint: name === DEFAULT_TEMPLATE_NAME ? "recommended" : void 0
|
|
179
|
+
};
|
|
180
|
+
}),
|
|
181
|
+
initialValue: DEFAULT_TEMPLATE_NAME
|
|
182
|
+
});
|
|
183
|
+
if (isCancel(result)) {
|
|
184
|
+
cancel("Operation cancelled.");
|
|
185
|
+
process.exit(1);
|
|
186
|
+
}
|
|
187
|
+
templateName = result;
|
|
188
|
+
}
|
|
189
|
+
templateName ||= DEFAULT_TEMPLATE_NAME;
|
|
190
|
+
if (typeof templateName !== "string") {
|
|
191
|
+
logger.error("Please specify a template!");
|
|
192
|
+
process.exit(1);
|
|
193
|
+
}
|
|
155
194
|
if (ctx.args.dir === "") {
|
|
195
|
+
const defaultDir = availableTemplates[templateName]?.defaultDir || "nuxt-app";
|
|
156
196
|
const result = await text({
|
|
157
197
|
message: "Where would you like to create your project?",
|
|
158
|
-
placeholder:
|
|
159
|
-
defaultValue:
|
|
198
|
+
placeholder: `./${defaultDir}`,
|
|
199
|
+
defaultValue: defaultDir
|
|
160
200
|
});
|
|
161
201
|
if (isCancel(result)) {
|
|
162
202
|
cancel("Operation cancelled.");
|
|
@@ -167,11 +207,6 @@ var init_default = defineCommand({
|
|
|
167
207
|
const cwd = resolve(ctx.args.cwd);
|
|
168
208
|
let templateDownloadPath = resolve(cwd, ctx.args.dir);
|
|
169
209
|
logger.step(`Creating project in ${colors.cyan(relativeToProcess(templateDownloadPath))}`);
|
|
170
|
-
const templateName = ctx.args.template || DEFAULT_TEMPLATE_NAME;
|
|
171
|
-
if (typeof templateName !== "string") {
|
|
172
|
-
logger.error("Please specify a template!");
|
|
173
|
-
process.exit(1);
|
|
174
|
-
}
|
|
175
210
|
let shouldForce = Boolean(ctx.args.force);
|
|
176
211
|
if (!shouldForce && existsSync(templateDownloadPath)) {
|
|
177
212
|
const selectedAction = await select({
|
|
@@ -247,14 +282,18 @@ var init_default = defineCommand({
|
|
|
247
282
|
process.exit(1);
|
|
248
283
|
}
|
|
249
284
|
if (ctx.args.nightly !== void 0 && !ctx.args.offline && !ctx.args.preferOffline) {
|
|
285
|
+
const nightlySpinner = spinner();
|
|
286
|
+
nightlySpinner.start("Fetching nightly version info");
|
|
250
287
|
const response = await $fetch("https://registry.npmjs.org/nuxt-nightly");
|
|
251
288
|
const nightlyChannelTag = ctx.args.nightly || "latest";
|
|
252
289
|
if (!nightlyChannelTag) {
|
|
290
|
+
nightlySpinner.stop("Failed to get nightly channel tag", 1);
|
|
253
291
|
logger.error(`Error getting nightly channel tag.`);
|
|
254
292
|
process.exit(1);
|
|
255
293
|
}
|
|
256
294
|
const nightlyChannelVersion = response["dist-tags"][nightlyChannelTag];
|
|
257
295
|
if (!nightlyChannelVersion) {
|
|
296
|
+
nightlySpinner.stop("Nightly version not found", 1);
|
|
258
297
|
logger.error(`Nightly channel version for tag ${colors.cyan(nightlyChannelTag)} not found.`);
|
|
259
298
|
process.exit(1);
|
|
260
299
|
}
|
|
@@ -264,12 +303,7 @@ var init_default = defineCommand({
|
|
|
264
303
|
if (packageJson.dependencies && "nuxt" in packageJson.dependencies) packageJson.dependencies.nuxt = nightlyNuxtPackageJsonVersion;
|
|
265
304
|
else if (packageJson.devDependencies && "nuxt" in packageJson.devDependencies) packageJson.devDependencies.nuxt = nightlyNuxtPackageJsonVersion;
|
|
266
305
|
await writePackageJSON(join(packageJsonPath, "package.json"), packageJson);
|
|
267
|
-
|
|
268
|
-
function detectCurrentPackageManager() {
|
|
269
|
-
const userAgent = process.env.npm_config_user_agent;
|
|
270
|
-
if (!userAgent) return;
|
|
271
|
-
const [name] = userAgent.split("/");
|
|
272
|
-
if (packageManagerOptions.includes(name)) return name;
|
|
306
|
+
nightlySpinner.stop(`Updated to nightly version ${colors.cyan(nightlyChannelVersion)}`);
|
|
273
307
|
}
|
|
274
308
|
const currentPackageManager = detectCurrentPackageManager();
|
|
275
309
|
const packageManagerArg = ctx.args.packageManager;
|
|
@@ -338,9 +372,12 @@ var init_default = defineCommand({
|
|
|
338
372
|
}
|
|
339
373
|
}
|
|
340
374
|
const modulesToAdd = [];
|
|
341
|
-
if (ctx.args.modules !== void 0)
|
|
375
|
+
if (ctx.args.modules !== void 0) for (const segment of (ctx.args.modules || "").split(",")) {
|
|
376
|
+
const mod = segment.trim();
|
|
377
|
+
if (mod) modulesToAdd.push(mod);
|
|
378
|
+
}
|
|
342
379
|
else if (!ctx.args.offline && !ctx.args.preferOffline) {
|
|
343
|
-
const modulesPromise =
|
|
380
|
+
const modulesPromise = fetchModules();
|
|
344
381
|
const wantsUserModules = await confirm({
|
|
345
382
|
message: `Would you like to install any of the official modules?`,
|
|
346
383
|
initialValue: false
|
|
@@ -350,8 +387,11 @@ var init_default = defineCommand({
|
|
|
350
387
|
process.exit(1);
|
|
351
388
|
}
|
|
352
389
|
if (wantsUserModules) {
|
|
390
|
+
const modulesSpinner = spinner();
|
|
391
|
+
modulesSpinner.start("Fetching available modules");
|
|
353
392
|
const [response, templateDeps] = await Promise.all([modulesPromise, getTemplateDependencies(template.dir)]);
|
|
354
|
-
|
|
393
|
+
modulesSpinner.stop("Modules loaded");
|
|
394
|
+
const officialModules = response.filter((module) => module.type === "official" && module.npm !== "@nuxt/devtools" && !templateDeps.includes(module.npm));
|
|
355
395
|
if (officialModules.length === 0) logger.info("All official modules are already included in this template.");
|
|
356
396
|
else {
|
|
357
397
|
const selectedOfficialModules = await multiselect({
|
|
@@ -394,6 +434,53 @@ var init_default = defineCommand({
|
|
|
394
434
|
if (ctx.args.shell) startShell(template.dir);
|
|
395
435
|
}
|
|
396
436
|
});
|
|
437
|
+
async function getModuleDependencies(moduleName) {
|
|
438
|
+
try {
|
|
439
|
+
const dependencies = (await $fetch(`https://registry.npmjs.org/${moduleName}/latest`)).dependencies || {};
|
|
440
|
+
return Object.keys(dependencies);
|
|
441
|
+
} catch (err) {
|
|
442
|
+
logger.warn(`Could not get dependencies for ${colors.cyan(moduleName)}: ${err}`);
|
|
443
|
+
return [];
|
|
444
|
+
}
|
|
445
|
+
}
|
|
446
|
+
function filterModules(modules, allDependencies) {
|
|
447
|
+
const result = {
|
|
448
|
+
toInstall: [],
|
|
449
|
+
skipped: []
|
|
450
|
+
};
|
|
451
|
+
for (const module of modules) if (modules.some((otherModule) => {
|
|
452
|
+
if (otherModule === module) return false;
|
|
453
|
+
return (allDependencies[otherModule] || []).includes(module);
|
|
454
|
+
})) result.skipped.push(module);
|
|
455
|
+
else result.toInstall.push(module);
|
|
456
|
+
return result;
|
|
457
|
+
}
|
|
458
|
+
async function getTemplateDependencies(templateDir) {
|
|
459
|
+
try {
|
|
460
|
+
const packageJsonPath = join(templateDir, "package.json");
|
|
461
|
+
if (!existsSync(packageJsonPath)) return [];
|
|
462
|
+
const packageJson = await readPackageJSON(packageJsonPath);
|
|
463
|
+
const directDeps = {
|
|
464
|
+
...packageJson.dependencies,
|
|
465
|
+
...packageJson.devDependencies
|
|
466
|
+
};
|
|
467
|
+
const directDepNames = Object.keys(directDeps);
|
|
468
|
+
const allDeps = new Set(directDepNames);
|
|
469
|
+
(await Promise.all(directDepNames.map((dep) => getModuleDependencies(dep)))).forEach((deps) => {
|
|
470
|
+
deps.forEach((dep) => allDeps.add(dep));
|
|
471
|
+
});
|
|
472
|
+
return Array.from(allDeps);
|
|
473
|
+
} catch (err) {
|
|
474
|
+
logger.warn(`Could not read template dependencies: ${err}`);
|
|
475
|
+
return [];
|
|
476
|
+
}
|
|
477
|
+
}
|
|
478
|
+
function detectCurrentPackageManager() {
|
|
479
|
+
const userAgent = process.env.npm_config_user_agent;
|
|
480
|
+
if (!userAgent) return;
|
|
481
|
+
const [name] = userAgent.split("/");
|
|
482
|
+
if (packageManagerOptions.includes(name)) return name;
|
|
483
|
+
}
|
|
397
484
|
|
|
398
485
|
//#endregion
|
|
399
486
|
export { init_default as default };
|
|
@@ -8,8 +8,8 @@ var module_default = defineCommand({
|
|
|
8
8
|
},
|
|
9
9
|
args: {},
|
|
10
10
|
subCommands: {
|
|
11
|
-
add: () => import("./add-
|
|
12
|
-
search: () => import("./search-
|
|
11
|
+
add: () => import("./add-CHNLu2Nh.mjs").then((r) => r.default || r),
|
|
12
|
+
search: () => import("./search-JRE-pvWm.mjs").then((r) => r.default || r)
|
|
13
13
|
}
|
|
14
14
|
});
|
|
15
15
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { n as logger } from "./logger-B4ge7MhP.mjs";
|
|
2
|
-
import { r as rmRecursive } from "./fs-
|
|
2
|
+
import { r as rmRecursive } from "./fs-B_hD5MnA.mjs";
|
|
3
3
|
import { promises } from "node:fs";
|
|
4
4
|
import { dirname, resolve } from "pathe";
|
|
5
5
|
import { hash } from "ohash";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { a as legacyRootDirArgs, i as extendsArgs, n as dotEnvArgs, o as logLevelArgs, r as envNameArgs, t as cwdArgs } from "./_shared-BCYCnX0T.mjs";
|
|
2
2
|
import { n as logger } from "./logger-B4ge7MhP.mjs";
|
|
3
|
-
import { r as relativeToProcess, t as loadKit } from "./kit-
|
|
4
|
-
import { t as clearBuildDir } from "./fs-
|
|
3
|
+
import { r as relativeToProcess, t as loadKit } from "./kit-CPEUdXTm.mjs";
|
|
4
|
+
import { t as clearBuildDir } from "./fs-B_hD5MnA.mjs";
|
|
5
5
|
import process from "node:process";
|
|
6
6
|
import { defineCommand } from "citty";
|
|
7
7
|
import { colors } from "consola/utils";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { a as legacyRootDirArgs, i as extendsArgs, n as dotEnvArgs, o as logLevelArgs, r as envNameArgs, t as cwdArgs } from "./_shared-BCYCnX0T.mjs";
|
|
2
2
|
import { n as logger } from "./logger-B4ge7MhP.mjs";
|
|
3
|
-
import { r as relativeToProcess, t as loadKit } from "./kit-
|
|
3
|
+
import { r as relativeToProcess, t as loadKit } from "./kit-CPEUdXTm.mjs";
|
|
4
4
|
import { dirname } from "node:path";
|
|
5
5
|
import process from "node:process";
|
|
6
6
|
import { defineCommand } from "citty";
|
|
@@ -37,6 +37,10 @@ const command = defineCommand({
|
|
|
37
37
|
const nitroJSONPaths = [await new Promise((res) => {
|
|
38
38
|
loadNuxt({
|
|
39
39
|
cwd,
|
|
40
|
+
dotenv: {
|
|
41
|
+
cwd,
|
|
42
|
+
fileName: ctx.args.dotenv
|
|
43
|
+
},
|
|
40
44
|
envName: ctx.args.envName,
|
|
41
45
|
ready: true,
|
|
42
46
|
overrides: {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { t as cwdArgs } from "./_shared-BCYCnX0T.mjs";
|
|
2
2
|
import { n as logger } from "./logger-B4ge7MhP.mjs";
|
|
3
|
-
import "./kit-
|
|
4
|
-
import { t as getNuxtVersion } from "./versions-
|
|
5
|
-
import { t as formatInfoBox } from "./formatting-
|
|
3
|
+
import "./kit-CPEUdXTm.mjs";
|
|
4
|
+
import { t as getNuxtVersion } from "./versions-CTlxnxbH.mjs";
|
|
5
|
+
import { t as formatInfoBox } from "./formatting-PESozNtr.mjs";
|
|
6
6
|
import { n as fetchModules, t as checkNuxtCompatibility } from "./_utils-B8YNEdpq.mjs";
|
|
7
7
|
import { defineCommand } from "citty";
|
|
8
8
|
import { colors } from "consola/utils";
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
//#region ../nuxi/src/data/templates.ts
|
|
2
|
+
const templates = {
|
|
3
|
+
"content": {
|
|
4
|
+
"name": "content",
|
|
5
|
+
"description": "Content-driven website",
|
|
6
|
+
"defaultDir": "nuxt-app",
|
|
7
|
+
"url": "https://content.nuxt.com",
|
|
8
|
+
"tar": "https://codeload.github.com/nuxt/starter/tar.gz/refs/heads/content"
|
|
9
|
+
},
|
|
10
|
+
"minimal": {
|
|
11
|
+
"name": "minimal",
|
|
12
|
+
"description": "Minimal setup for Nuxt 4",
|
|
13
|
+
"defaultDir": "nuxt-app",
|
|
14
|
+
"url": "https://nuxt.com",
|
|
15
|
+
"tar": "https://codeload.github.com/nuxt/starter/tar.gz/refs/heads/v4"
|
|
16
|
+
},
|
|
17
|
+
"module": {
|
|
18
|
+
"name": "module",
|
|
19
|
+
"description": "Nuxt module",
|
|
20
|
+
"defaultDir": "nuxt-module",
|
|
21
|
+
"url": "https://nuxt.com",
|
|
22
|
+
"tar": "https://codeload.github.com/nuxt/starter/tar.gz/refs/heads/module"
|
|
23
|
+
},
|
|
24
|
+
"ui": {
|
|
25
|
+
"name": "ui",
|
|
26
|
+
"description": "App using Nuxt UI",
|
|
27
|
+
"defaultDir": "nuxt-app",
|
|
28
|
+
"url": "https://ui.nuxt.com",
|
|
29
|
+
"tar": "https://codeload.github.com/nuxt-ui-templates/starter/tar.gz/refs/heads/main"
|
|
30
|
+
}
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
//#endregion
|
|
34
|
+
export { templates as t };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { a as legacyRootDirArgs, i as extendsArgs, n as dotEnvArgs, o as logLevelArgs, t as cwdArgs } from "./_shared-BCYCnX0T.mjs";
|
|
2
|
-
import { t as loadKit } from "./kit-
|
|
2
|
+
import { t as loadKit } from "./kit-CPEUdXTm.mjs";
|
|
3
3
|
import process from "node:process";
|
|
4
4
|
import { defineCommand } from "citty";
|
|
5
5
|
import { isBun } from "std-env";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { a as legacyRootDirArgs, o as logLevelArgs, t as cwdArgs } from "./_shared-BCYCnX0T.mjs";
|
|
2
2
|
import { n as logger } from "./logger-B4ge7MhP.mjs";
|
|
3
|
-
import { r as relativeToProcess, t as loadKit } from "./kit-
|
|
4
|
-
import { t as getNuxtVersion } from "./versions-
|
|
5
|
-
import "./fs-
|
|
6
|
-
import { r as nuxtVersionToGitIdentifier, t as cleanupNuxtDirs } from "./nuxt-
|
|
7
|
-
import { t as getPackageManagerVersion } from "./packageManagers-
|
|
3
|
+
import { r as relativeToProcess, t as loadKit } from "./kit-CPEUdXTm.mjs";
|
|
4
|
+
import { t as getNuxtVersion } from "./versions-CTlxnxbH.mjs";
|
|
5
|
+
import "./fs-B_hD5MnA.mjs";
|
|
6
|
+
import { r as nuxtVersionToGitIdentifier, t as cleanupNuxtDirs } from "./nuxt-Bkosdz43.mjs";
|
|
7
|
+
import { t as getPackageManagerVersion } from "./packageManagers-BX7-V04a.mjs";
|
|
8
8
|
import process from "node:process";
|
|
9
9
|
import { defineCommand } from "citty";
|
|
10
10
|
import { colors } from "consola/utils";
|
package/package.json
CHANGED
package/dist/add-DK-do0tH.mjs
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import "./_shared-BCYCnX0T.mjs";
|
|
2
|
-
import "./logger-B4ge7MhP.mjs";
|
|
3
|
-
import "./kit-CWALD0uf.mjs";
|
|
4
|
-
import "./versions-CfGmudYQ.mjs";
|
|
5
|
-
import "./fs-DXG4022E.mjs";
|
|
6
|
-
import { t as add_default } from "./add-BDLJqyyz.mjs";
|
|
7
|
-
import "./prepare-lA11pstb.mjs";
|
|
8
|
-
import "./_utils-B8YNEdpq.mjs";
|
|
9
|
-
|
|
10
|
-
export { add_default as default };
|
package/dist/build-BXaUqCgz.mjs
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import "./_shared-BCYCnX0T.mjs";
|
|
2
|
-
import "./logger-B4ge7MhP.mjs";
|
|
3
|
-
import "./kit-CWALD0uf.mjs";
|
|
4
|
-
import "./versions-CfGmudYQ.mjs";
|
|
5
|
-
import "./banner-Brd8qg0_.mjs";
|
|
6
|
-
import "./fs-DXG4022E.mjs";
|
|
7
|
-
import "./env-DNvSuiMW.mjs";
|
|
8
|
-
import { t as build_default } from "./build-KUVpCAx8.mjs";
|
|
9
|
-
|
|
10
|
-
export { build_default as default };
|
package/dist/dev-7iAIxGot.mjs
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import "./logger-B4ge7MhP.mjs";
|
|
2
|
-
import { t as initialize } from "./dev-DYv298gM.mjs";
|
|
3
|
-
import "./kit-CWALD0uf.mjs";
|
|
4
|
-
import "./versions-CfGmudYQ.mjs";
|
|
5
|
-
import "./banner-Brd8qg0_.mjs";
|
|
6
|
-
import "./fs-DXG4022E.mjs";
|
|
7
|
-
import "./nuxt-tDl7zzU6.mjs";
|
|
8
|
-
|
|
9
|
-
export { initialize };
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|