@@ -153,9 +153,11 @@ async function getChangelogFromGitHub(baseSha, newSha) {
153
153
async function main ( ) {
154
154
const cwd = process . cwd ( )
155
155
const errors = [ ]
156
- const { noInstall, version } = await yargs ( process . argv . slice ( 2 ) )
157
- . options ( 'version' , { default : null , type : 'string' } )
158
- . options ( 'no-install' , { default : false , type : 'boolean' } ) . argv
156
+ const argv = await yargs ( process . argv . slice ( 2 ) )
157
+ . version ( false )
158
+ . options ( 'install' , { default : true , type : 'boolean' } )
159
+ . options ( 'version' , { default : null , type : 'string' } ) . argv
160
+ const { install, version } = argv
159
161
160
162
let newVersionStr = version
161
163
if ( newVersionStr === null ) {
@@ -198,14 +200,14 @@ Or, run this command with no arguments to use the most recently published versio
198
200
newDateString,
199
201
newSha,
200
202
newVersionStr,
201
- noInstall,
203
+ noInstall : ! install ,
202
204
channel : 'experimental' ,
203
205
} )
204
206
await sync ( {
205
207
newDateString,
206
208
newSha,
207
209
newVersionStr,
208
- noInstall,
210
+ noInstall : ! install ,
209
211
channel : 'rc' ,
210
212
} )
211
213
@@ -268,7 +270,7 @@ Or, run this command with no arguments to use the most recently published versio
268
270
}
269
271
270
272
// Install the updated dependencies and build the vendored React files.
271
- if ( noInstall ) {
273
+ if ( ! install ) {
272
274
console . log ( 'Skipping install step because --no-install flag was passed.\n' )
273
275
} else {
274
276
console . log ( 'Installing dependencies...\n' )
@@ -328,7 +330,7 @@ Or, run this command with no arguments to use the most recently published versio
328
330
)
329
331
}
330
332
331
- if ( noInstall ) {
333
+ if ( ! install ) {
332
334
console . log (
333
335
`
334
336
To finish upgrading, complete the following steps:
0 commit comments