diff --git a/runtime/package.json b/runtime/package.json index 8b03d18f..b1c4f9ab 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 00000000..d6c425c4 --- /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 3c4ab7cd..5bf44ba3 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'