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