Skip to content

Commit

Permalink
feat: plugin experimental export
Browse files Browse the repository at this point in the history
  • Loading branch information
tomzemp committed Dec 20, 2023
1 parent d61be79 commit 25f02a6
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 4 deletions.
10 changes: 8 additions & 2 deletions runtime/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
4 changes: 4 additions & 0 deletions runtime/src/experimental.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
/**
* this is experimental and the API is unstable
*/
export { Plugin } from '@dhis2/app-service-plugin'
2 changes: 0 additions & 2 deletions runtime/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,4 @@ export {
clearSensitiveCaches,
} from '@dhis2/app-service-offline'

export { Plugin } from '@dhis2/app-service-plugin'

export { Provider } from './Provider'

0 comments on commit 25f02a6

Please sign in to comment.