@@ -25,6 +25,7 @@ function semverVersion(value) {
25
25
}
26
26
27
27
program
28
+ . addOption ( new Option ( '--skip-install' , 'skip the installation of dependencies' ) )
28
29
. addOption (
29
30
new Option ( '-p, --project <project>' , 'the project that you want to run this for' )
30
31
. choices ( [ 'ember' , 'ember-data' ] )
@@ -36,7 +37,7 @@ program.parse();
36
37
37
38
const options = program . opts ( ) ;
38
39
39
- const { project, version } = options ;
40
+ const { project, version, skipInstall } = options ;
40
41
41
42
async function runCmd ( cmd , path , args = [ ] ) {
42
43
console . log ( chalk . underline ( `Running '${ chalk . green ( cmd ) } ' in ${ path } ` ) ) ;
@@ -69,10 +70,12 @@ let checkIfProjectDirExists = dirPath => {
69
70
let buildDocs = async projDirPath => {
70
71
checkIfProjectDirExists ( projDirPath ) ;
71
72
72
- if ( project === 'ember' ) {
73
- await runCmd ( 'corepack' , projDirPath , [ 'pnpm' , 'install' ] ) ;
74
- } else {
75
- await runCmd ( 'corepack' , projDirPath , [ 'pnpm' , 'install' ] ) ;
73
+ if ( ! skipInstall ) {
74
+ if ( project === 'ember' ) {
75
+ await runCmd ( 'corepack' , projDirPath , [ 'pnpm' , 'install' ] ) ;
76
+ } else {
77
+ await runCmd ( 'corepack' , projDirPath , [ 'pnpm' , 'install' ] ) ;
78
+ }
76
79
}
77
80
78
81
await runCmd (
0 commit comments