File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -265,7 +265,7 @@ function migratePackageJson() {
265
265
const packageJson = readYaml ( 'package.json' ) ;
266
266
packageJson . dependencies = packageJson . dependencies || { } ;
267
267
delete packageJson . dependencies [ 'swagger-repo' ] ;
268
- packageJson . dependencies [ '@redocly/openapi-cli' ] = '^0.8.0 ' ;
268
+ packageJson . dependencies [ '@redocly/openapi-cli' ] = '^1.0.0-beta.9 ' ;
269
269
270
270
packageJson . scripts = packageJson . scripts || { } ;
271
271
@@ -291,11 +291,11 @@ function migratePackageJson() {
291
291
}
292
292
293
293
if ( packageJson . scripts . test . indexOf ( 'swagger-repo validate' ) > - 1 ) {
294
- packageJson . scripts . test = 'openapi validate ' ;
294
+ packageJson . scripts . test = 'openapi lint ' ;
295
295
} else {
296
296
console . log (
297
297
chalk . yellow (
298
- `Warning: can't migrate "test" script. Use "openapi validate " to validate your API definitions.`
298
+ `Warning: can't migrate "test" script. Use "openapi lint " to lint your API definitions.`
299
299
)
300
300
) ;
301
301
}
You can’t perform that action at this time.
0 commit comments