From 75a95db1d0ea3d4636e37932188994ee73ba1b20 Mon Sep 17 00:00:00 2001 From: Anan Zhuang Date: Fri, 23 Apr 2021 13:26:59 -0700 Subject: [PATCH] Fix version conflix for plugins Signed-off-by: Anan Zhuang --- packages/osd-plugin-helpers/src/cli.ts | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/packages/osd-plugin-helpers/src/cli.ts b/packages/osd-plugin-helpers/src/cli.ts index 23d5273b5d1e..1015b0ae699a 100644 --- a/packages/osd-plugin-helpers/src/cli.ts +++ b/packages/osd-plugin-helpers/src/cli.ts @@ -94,17 +94,12 @@ export function runCli() { plugin ); - if (semver.satisfies(opensearchDashboardsVersion, '<7.9')) { + if (semver.satisfies(opensearchDashboardsVersion, '>1.0')) { log.error( - 'These tools are not designed to work with version before 7.9, please checkout an earlier version of OpenSearch Dashboards to build your plugin' + 'These tools are not designed to work with version greater than 1.0, please checkout an earlier version of OpenSearch Dashboards to build your plugin' ); process.exit(1); } - if (semver.satisfies(opensearchDashboardsVersion, '~7.9.0')) { - log.warning( - 'These tools might work with 7.9 versions, but there are known workarounds required. See https://github.com/elastic/kibana/issues/82466 for more info' - ); - } const sourceDir = plugin.directory; const buildDir = Path.resolve(