diff options
author | Leonid Logvinov <logvinov.leon@gmail.com> | 2017-12-05 23:15:37 +0800 |
---|---|---|
committer | Leonid Logvinov <logvinov.leon@gmail.com> | 2017-12-06 20:48:30 +0800 |
commit | 8c87394b2b0cea4c3fc6126c9b22830041fff889 (patch) | |
tree | dba9c698dfaf8c374d13c4160a731e1391a11275 /packages/monorepo-scripts/src | |
parent | 1dba4b85d0073d9ae482b1bb3afdafa2278d1a71 (diff) | |
download | dexon-sol-tools-8c87394b2b0cea4c3fc6126c9b22830041fff889.tar dexon-sol-tools-8c87394b2b0cea4c3fc6126c9b22830041fff889.tar.gz dexon-sol-tools-8c87394b2b0cea4c3fc6126c9b22830041fff889.tar.bz2 dexon-sol-tools-8c87394b2b0cea4c3fc6126c9b22830041fff889.tar.lz dexon-sol-tools-8c87394b2b0cea4c3fc6126c9b22830041fff889.tar.xz dexon-sol-tools-8c87394b2b0cea4c3fc6126c9b22830041fff889.tar.zst dexon-sol-tools-8c87394b2b0cea4c3fc6126c9b22830041fff889.zip |
Introduce a const
Diffstat (limited to 'packages/monorepo-scripts/src')
-rw-r--r-- | packages/monorepo-scripts/src/deps_versions.ts | 4 |
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); |