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

Commit

Permalink
fix: split on - when checking version
Browse files Browse the repository at this point in the history
  • Loading branch information
jdx committed Feb 13, 2018
1 parent 8127122 commit 699b922
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ export class Plugin implements IPlugin {
try {
const p = path.join(this.root, '.oclif.manifest.json')
const manifest: Manifest = await loadJSON(p)
if (!process.env.OCLIF_NEXT_VERSION && manifest.version !== this.version) {
if (!process.env.OCLIF_NEXT_VERSION && manifest.version.split('-')[0] !== this.version.split('-')[0]) {
process.emitWarning(`Mismatched version in ${this.name} plugin manifest. Expected: ${this.version} Received: ${manifest.version}`)
} else {
debug('using manifest from', p)
Expand Down

0 comments on commit 699b922

Please sign in to comment.