diff --git a/src/plugin.ts b/src/plugin.ts index 92230334..e2c84d9f 100644 --- a/src/plugin.ts +++ b/src/plugin.ts @@ -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)