mirror of
https://github.com/react/react-native-devtools-frontend.git
synced 2026-10-01 01:38:07 +08:00
DISABLE_THIRD_PARTY_CHECK=Package needs updating with node_modules Change-Id: I889f1b86c586e37307a3e13ad762aa56d1ece150 Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/1946468 Commit-Queue: Paul Lewis <aerotwist@chromium.org> Reviewed-by: Tim van der Lippe <tvanderlippe@chromium.org>
25 lines
638 B
JavaScript
Executable File
25 lines
638 B
JavaScript
Executable File
#!/usr/bin/env node
|
|
|
|
var join = require('path').join;
|
|
var format = require('format-package-json');
|
|
var GitContributors = require('git-contributors').GitContributors;
|
|
var opts = join(__dirname, '../');
|
|
var pkg = join(__dirname, '../package.json');
|
|
var json = require(pkg);
|
|
|
|
json.contributors = []; //clear it
|
|
|
|
GitContributors.list(opts, function(err, result) {
|
|
result.forEach(function(item) {
|
|
json.contributors.push([item.name, '<' + item.email + '>'].join(' '));
|
|
});
|
|
json.contributors.sort();
|
|
format(pkg, json, function() {
|
|
console.log('Wrote %s contributors to: %s', result.length, pkg);
|
|
});
|
|
});
|
|
|
|
|
|
|
|
|