aboutsummaryrefslogtreecommitdiffstats
path: root/packages/monorepo-scripts
diff options
context:
space:
mode:
Diffstat (limited to 'packages/monorepo-scripts')
-rw-r--r--packages/monorepo-scripts/src/deps_versions.ts4
1 files changed, 3 insertions, 1 deletions
diff --git a/packages/monorepo-scripts/src/deps_versions.ts b/packages/monorepo-scripts/src/deps_versions.ts
index b07aac995..c4ee90775 100644
--- a/packages/monorepo-scripts/src/deps_versions.ts
+++ b/packages/monorepo-scripts/src/deps_versions.ts
@@ -15,6 +15,8 @@ interface VersionsByDependency {
[depName: string]: Versions;
}
+const PACKAGE_JSON_GLOB = '../*/package.json';
+
function log(...args: any[]) {
console.log(...args); // tslint:disable-line:no-console
}
@@ -34,7 +36,7 @@ function getPackageName(path: string): string {
return packageName;
}
-const files = globSync('../*/package.json');
+const files = globSync(PACKAGE_JSON_GLOB);
const versionsByDependency: VersionsByDependency = {};
files.map(path => {
const packageName = getPackageName(path);