Skip to content

Commit 680efb1

Browse files
committed
Pass skipInstall to getNextInitCommand in Next.js initializer
Assisted-by: Claude Code:claude-opus-4-7
1 parent 106a407 commit 680efb1

1 file changed

Lines changed: 9 additions & 3 deletions

File tree

  • packages/init/src/webframeworks

packages/init/src/webframeworks/next.ts

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ const nextDescription: WebFrameworkDescription = {
99
label: "Next.js",
1010
packageManagers: PACKAGE_MANAGER,
1111
defaultPort: 3000,
12-
init: async ({ packageManager: pm }) => ({
13-
command: getNextInitCommand(pm),
12+
init: async ({ packageManager: pm, skipInstall }) => ({
13+
command: getNextInitCommand(pm, skipInstall),
1414
dependencies: {
1515
"@fedify/next": PACKAGE_VERSION,
1616
...(pm === "deno" ? defaultDenoDependencies : {}),
@@ -43,7 +43,13 @@ export default nextDescription;
4343
*/
4444
const getNextInitCommand = (
4545
pm: PackageManager,
46-
): string[] => [...createNextAppCommand(pm), ".", "--yes"];
46+
skipInstall: boolean,
47+
): string[] => [
48+
...createNextAppCommand(pm),
49+
".",
50+
"--yes",
51+
...(skipInstall ? ["--skip-install"] : []),
52+
];
4753

4854
const createNextAppCommand = (pm: PackageManager): string[] =>
4955
pm === "deno"

0 commit comments

Comments
 (0)