We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b2ab69c commit 81e6bc4Copy full SHA for 81e6bc4
scripts/unify
@@ -1,4 +1,4 @@
1
-'use strict'
+'use strict';
2
3
// Copyright 2016, Google, Inc.
4
// Licensed under the Apache License, Version 2.0 (the "License");
@@ -24,12 +24,12 @@ const directories = fs.readdirSync(PROJECT_ROOT)
24
25
// Dedupe package.json dependencies
26
// WARNING: This will fail if two different versions of the same package are required.
27
-let pkgSet = {};
+const pkgSet = {};
28
let pkgJson;
29
directories.forEach((dir) => {
30
pkgJson = JSON.parse(fs.readFileSync(path.join(PROJECT_ROOT, dir, `package.json`)));
31
Object.assign(pkgSet, pkgJson.dependencies);
32
-})
+});
33
34
// Update root-level package.json (by shelling to npm)
35
const spawn = require('child_process').spawn;
0 commit comments