From 8c87394b2b0cea4c3fc6126c9b22830041fff889 Mon Sep 17 00:00:00 2001 From: Leonid Logvinov Date: Tue, 5 Dec 2017 18:15:37 +0300 Subject: Introduce a const --- packages/monorepo-scripts/src/deps_versions.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'packages/monorepo-scripts') 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); -- cgit