This repository was archived by the owner on Oct 22, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +12
-4
lines changed
packages/actor-core-cli/src/commands Expand file tree Collapse file tree 1 file changed +12
-4
lines changed Original file line number Diff line number Diff line change @@ -31,11 +31,17 @@ export const create = new Command()
3131 ) . choices ( Object . keys ( PLATFORM_NAMES ) ) ,
3232 )
3333 . addOption ( new Option ( "-v [version]" , "Specify version of actor-core" ) )
34+ . addOption ( new Option ( "--skip-install" , "Skip installing dependencies" ) )
3435 . action ( action ) ;
3536
3637export async function action (
3738 cmdPath : string ,
38- opts : { platform ?: string ; template ?: string ; version ?: string } ,
39+ opts : {
40+ platform ?: string ;
41+ template ?: string ;
42+ version ?: string ;
43+ skipInstall ?: boolean ;
44+ } = { } ,
3945) {
4046 await workflow ( "Bootstrap Actor Core in your project" , async function * ( ctx ) {
4147 const wd =
@@ -153,9 +159,11 @@ export async function action(
153159 }
154160 } ) ;
155161
156- yield * ctx . task ( "Install dependencies" , async ( ) => {
157- await $ ( { cwd : wd } ) ( ...platformOptions . cmds . install ) ;
158- } ) ;
162+ if ( ! opts . skipInstall ) {
163+ yield * ctx . task ( "Install dependencies" , async ( ) => {
164+ await $ ( { cwd : wd } ) ( ...platformOptions . cmds . install ) ;
165+ } ) ;
166+ }
159167
160168 yield ctx . render (
161169 < >
You can’t perform that action at this time.
0 commit comments