Browse Source
Merge pull request #10400 from abpframework/mehmet-erim-patch-1
Update npm-check-updatest command
pull/10401/head
albert
5 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with
2 additions and
2 deletions
-
npm/package-update-script.js
-
npm/update-gulp.js
|
|
@ -15,7 +15,7 @@ const check = (pkgJsonPath) => { |
|
|
return childProcess |
|
|
return childProcess |
|
|
.execSync( |
|
|
.execSync( |
|
|
`ncu "/^@(${packages}).*$/" --packageFile ${pkgJsonPath} -u${ |
|
|
`ncu "/^@(${packages}).*$/" --packageFile ${pkgJsonPath} -u${ |
|
|
program.prerelase ? ' --target greatest' : '' |
|
|
program.prerelase ? ' --target newest' : '' |
|
|
}${program.registry ? ` --registry ${program.registry}` : ''}` |
|
|
}${program.registry ? ` --registry ${program.registry}` : ''}` |
|
|
) |
|
|
) |
|
|
.toString(); |
|
|
.toString(); |
|
|
|
|
|
@ -31,7 +31,7 @@ const updatePackages = (pkgJsonPath) => { |
|
|
const result = childProcess |
|
|
const result = childProcess |
|
|
.execSync( |
|
|
.execSync( |
|
|
`ncu "/^@abp.*$/" --packageFile ${pkgJsonPath} -u${ |
|
|
`ncu "/^@abp.*$/" --packageFile ${pkgJsonPath} -u${ |
|
|
program.prerelase ? ' --target greatest' : '' |
|
|
program.prerelase ? ' --target newest' : '' |
|
|
}` |
|
|
}` |
|
|
) |
|
|
) |
|
|
.toString(); |
|
|
.toString(); |
|
|
|