mirror of https://github.com/abpframework/abp.git
8 changed files with 1703 additions and 15 deletions
@ -0,0 +1,24 @@ |
|||||
|
const glob = require('glob'); |
||||
|
var path = require('path'); |
||||
|
const childProcess = require('child_process'); |
||||
|
|
||||
|
const check = pkgJsonPath => { |
||||
|
try { |
||||
|
return childProcess.execSync(`ncu "/^@abp.*$/" --packageFile ${pkgJsonPath} -u`).toString(); |
||||
|
} catch (error) { |
||||
|
console.log('exec error: ' + error.message); |
||||
|
process.exit(error.status); |
||||
|
} |
||||
|
}; |
||||
|
|
||||
|
const folder = process.argv[2] || '.'; |
||||
|
|
||||
|
glob(folder + '/**/package.json', {}, (er, files) => { |
||||
|
files.forEach(file => { |
||||
|
if (file.includes('node_modules')) { |
||||
|
return; |
||||
|
} |
||||
|
|
||||
|
console.log(check(file)); |
||||
|
}); |
||||
|
}); |
||||
File diff suppressed because it is too large
@ -1,8 +1,13 @@ |
|||||
{ |
{ |
||||
"scripts": { |
"scripts": { |
||||
"lerna": "lerna" |
"lerna": "lerna", |
||||
|
"update": "node abp-package-update-script.js .", |
||||
|
"update:templates": "node abp-package-update-script.js ../templates", |
||||
|
"ncu": "ncu" |
||||
}, |
}, |
||||
"devDependencies": { |
"devDependencies": { |
||||
"lerna": "^2.11.0" |
"lerna": "^2.11.0", |
||||
|
"npm-check-updates": "^3.1.25", |
||||
|
"glob": "^7.1.5" |
||||
} |
} |
||||
} |
} |
||||
|
|||||
Loading…
Reference in new issue