Skip to content

Commit

Permalink
Explanatory comments for utility script
Browse files Browse the repository at this point in the history
  • Loading branch information
hsubox76 committed Jun 11, 2020
1 parent a20a159 commit b6667e9
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion scripts/exp/update-internal-dep-versions.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,20 @@
* limitations under the License.
*/

/**
* Update `@firebase` dependency versions in a package.json to reflect the latest versions.
* These can get out of sync when working on a new unreleased component in a branch while the
* already-released component versions in its deps keep being updated with each release.
*
* Usage: node scripts/exp/update-internal-dep-versions.js --file [package.json file path]
*
* Example: node scripts/exp/update-internal-dep-versions.js --file packages-exp/functions-exp/package.json
*/

const { projectRoot } = require('../utils');
const { mapPkgNameToPkgJson } = require('../release/utils/workspace');
const { argv } = require('yargs');
const fs = require('mz/fs');

async function updateField(pkg, fieldName) {
const field = pkg[fieldName];
for (const depName in field) {
Expand Down

0 comments on commit b6667e9

Please sign in to comment.