Skip to content
This repository has been archived by the owner on Aug 22, 2023. It is now read-only.

Commit

Permalink
chore: add some debug output
Browse files Browse the repository at this point in the history
  • Loading branch information
jdx committed Feb 3, 2018
1 parent 547c360 commit 198e7e0
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -191,10 +191,14 @@ export class Plugin implements IPlugin {

protected _manifest(): Config.Manifest {
try {
const manifest: Config.Manifest = loadJSON.sync(path.join(this.root, '.anycli.manifest.json'))
const p = path.join(this.root, '.anycli.manifest.json')
const manifest: Config.Manifest = loadJSON.sync(p)
if (manifest.version !== this.version) {
cli.warn(`Mismatched version in ${this.name} plugin manifest. Expected: ${this.version} Received: ${manifest.version}`)
} else return manifest
} else {
debug('using manifest from', p)
return manifest
}
} catch (err) {
if (err.code !== 'ENOENT') cli.warn(err)
}
Expand Down

0 comments on commit 198e7e0

Please sign in to comment.