Skip to content

Commit

Permalink
Merge branch 'master' into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
mehmet-erim committed Oct 22, 2019
2 parents d04fb17 + 3d48026 commit 1e9c40c
Show file tree
Hide file tree
Showing 8 changed files with 1,703 additions and 15 deletions.
24 changes: 24 additions & 0 deletions npm/abp-package-update-script.js
Original file line number Diff line number Diff line change
@@ -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));
});
});
Loading

0 comments on commit 1e9c40c

Please sign in to comment.