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
parent
commit
b25b72abe3
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      npm/package-update-script.js
  2. 2
      npm/update-gulp.js

2
npm/package-update-script.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();

2
npm/update-gulp.js

@ -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();

Loading…
Cancel
Save