From 25f02a6c97733b79ff1aed5e8c4c1726c16144fe Mon Sep 17 00:00:00 2001 From: Thomas Zemp Date: Wed, 20 Dec 2023 11:47:59 +0100 Subject: [PATCH] feat: plugin experimental export --- runtime/package.json | 10 ++++++++-- runtime/src/experimental.ts | 4 ++++ runtime/src/index.ts | 2 -- 3 files changed, 12 insertions(+), 4 deletions(-) create mode 100644 runtime/src/experimental.ts diff --git a/runtime/package.json b/runtime/package.json index 8b03d18f8..b1c4f9ab1 100644 --- a/runtime/package.json +++ b/runtime/package.json @@ -6,8 +6,14 @@ "module": "./build/es/index.js", "types": "./build/types/index.d.ts", "exports": { - "import": "./build/es/index.js", - "require": "./build/cjs/index.js" + ".": { + "import": "./build/es/index.js", + "require": "./build/cjs/index.js" + }, + "./experimental": { + "import": "./build/es/experimental.js", + "require": "./build/cjs/experimental.js" + } }, "repository": { "type": "git", diff --git a/runtime/src/experimental.ts b/runtime/src/experimental.ts new file mode 100644 index 000000000..d6c425c49 --- /dev/null +++ b/runtime/src/experimental.ts @@ -0,0 +1,4 @@ +/** + * this is experimental and the API is unstable + */ +export { Plugin } from '@dhis2/app-service-plugin' diff --git a/runtime/src/index.ts b/runtime/src/index.ts index 3c4ab7cd4..5bf44ba37 100644 --- a/runtime/src/index.ts +++ b/runtime/src/index.ts @@ -23,6 +23,4 @@ export { clearSensitiveCaches, } from '@dhis2/app-service-offline' -export { Plugin } from '@dhis2/app-service-plugin' - export { Provider } from './Provider'