@lenne.tech/cli 1.16.0 → 1.17.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -27,7 +27,7 @@ const NewCommand = {
|
|
|
27
27
|
// Info
|
|
28
28
|
info('Create a new fullstack workspace');
|
|
29
29
|
// Hint for non-interactive callers (e.g. Claude Code)
|
|
30
|
-
toolbox.tools.nonInteractiveHint('lt fullstack init --name <name> --frontend <nuxt|angular> --api-mode <Rest|GraphQL|Both> --framework-mode <npm|vendor> [--framework-upstream-branch <ref>] [--next] [--dry-run] --noConfirm');
|
|
30
|
+
toolbox.tools.nonInteractiveHint('lt fullstack init --name <name> --frontend <nuxt|angular> --api-mode <Rest|GraphQL|Both> --framework-mode <npm|vendor> [--framework-upstream-branch <ref>] [--next: implies nuxt-base-starter#next unless --frontend-branch overrides] [--dry-run] --noConfirm');
|
|
31
31
|
// Check git
|
|
32
32
|
if (!(yield git.gitInstalled())) {
|
|
33
33
|
return;
|
|
@@ -264,7 +264,12 @@ const NewCommand = {
|
|
|
264
264
|
}
|
|
265
265
|
// Determine branches and copy/link paths with priority: CLI > config
|
|
266
266
|
const apiBranch = cliApiBranch || configApiBranch;
|
|
267
|
-
|
|
267
|
+
// Under `--next`, default the nuxt-base-starter ref to the `next`
|
|
268
|
+
// branch — that branch ships an auth basePath (`/api/auth`) that
|
|
269
|
+
// matches the experimental nest-base API. Explicit
|
|
270
|
+
// `--frontend-branch` (or lt.config) still wins so consumers can
|
|
271
|
+
// target a custom branch on either line.
|
|
272
|
+
const frontendBranch = cliFrontendBranch || configFrontendBranch || (experimental ? 'next' : undefined);
|
|
268
273
|
const apiCopy = cliApiCopy || configApiCopy;
|
|
269
274
|
const apiLink = cliApiLink || configApiLink;
|
|
270
275
|
const frontendCopy = cliFrontendCopy || configFrontendCopy;
|