From 6495736b349873d3ebf70041fff7b99900eec892 Mon Sep 17 00:00:00 2001 From: Jeff Dickey <216188+jdxcode@users.noreply.github.com> Date: Sun, 28 Jan 2018 01:59:08 -0800 Subject: [PATCH] chore: cleanup debug messages --- src/config.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/config.ts b/src/config.ts index 15b49b36..21dd65f6 100644 --- a/src/config.ts +++ b/src/config.ts @@ -255,9 +255,8 @@ export class Config implements IConfig { private async _tsConfig(): Promise { try { const tsconfigPath = path.join(this.root, 'tsconfig.json') - const tsconfig = await readJSON(path.join(this.root, 'tsconfig.json')) + const tsconfig = await readJSON(tsconfigPath) if (!tsconfig || !tsconfig.compilerOptions) return - debug('tsconfig.json found at', tsconfigPath) return tsconfig } catch (err) { if (err.code !== 'ENOENT') throw err @@ -373,7 +372,7 @@ export async function read(opts: ConfigOptions = {}): Promise { let root = opts.root || (module.parent && module.parent.parent && module.parent.parent.filename) || __dirname const pkgPath = await findPkg(opts.name, root) if (!pkgPath) throw new Error(`could not find package.json with ${inspect(opts)}`) - debug('found package.json at %s from %s', pkgPath, root) + debug('reading plugin %s', path.dirname(pkgPath)) const pkg = await readPkg(pkgPath) const config = new Config() await config.load(path.dirname(pkgPath), pkg, opts.baseConfig)