File tree Expand file tree Collapse file tree
packages/init/src/webframeworks Expand file tree Collapse file tree Original file line number Diff line number Diff 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 */
4444const 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
4854const createNextAppCommand = ( pm : PackageManager ) : string [ ] =>
4955 pm === "deno"
You can’t perform that action at this time.
0 commit comments