aboutsummaryrefslogtreecommitdiffstats
path: root/packages/monorepo-scripts
diff options
context:
space:
mode:
authorLeonid Logvinov <logvinov.leon@gmail.com>2017-12-05 23:15:37 +0800
committerLeonid Logvinov <logvinov.leon@gmail.com>2017-12-06 20:48:30 +0800
commit8c87394b2b0cea4c3fc6126c9b22830041fff889 (patch)
treedba9c698dfaf8c374d13c4160a731e1391a11275 /packages/monorepo-scripts
parent1dba4b85d0073d9ae482b1bb3afdafa2278d1a71 (diff)
downloaddexon-sol-tools-8c87394b2b0cea4c3fc6126c9b22830041fff889.tar.gz
dexon-sol-tools-8c87394b2b0cea4c3fc6126c9b22830041fff889.tar.zst
dexon-sol-tools-8c87394b2b0cea4c3fc6126c9b22830041fff889.zip
Introduce a const
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);