Browse Source
Merge pull request #11351 from abpframework/feat/update-update-script
Chore: Updated the npm-check-updates command logic
pull/11352/head
Bunyamin Coskuner
4 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
-
npm/package-update-script.js
|
|
|
@ -15,7 +15,7 @@ const check = (pkgJsonPath) => { |
|
|
|
return childProcess |
|
|
|
.execSync( |
|
|
|
`ncu "/^@(${packages}).*$/" --packageFile ${pkgJsonPath} -u${ |
|
|
|
program.prerelease ? ' --target newest' : '' |
|
|
|
program.prerelease ? ' --target greatest' : ' --target patch' |
|
|
|
}${program.registry ? ` --registry ${program.registry}` : ''}` |
|
|
|
) |
|
|
|
.toString(); |
|
|
|
|