mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
fix: Fix exported types not working correctly through @k8slens/extensions
Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
parent
4c69af5642
commit
cadc7e0a30
@ -19,8 +19,14 @@
|
|||||||
"main": "static/build/main.js",
|
"main": "static/build/main.js",
|
||||||
"exports": {
|
"exports": {
|
||||||
"./package.json": "./package.json",
|
"./package.json": "./package.json",
|
||||||
"./main": "./static/build/library/main.js",
|
"./main": {
|
||||||
"./renderer": "./static/build/library/renderer.js",
|
"default": "./static/build/library/main.js",
|
||||||
|
"types": "./static/build/main/src/library.d.ts"
|
||||||
|
},
|
||||||
|
"./renderer": {
|
||||||
|
"default": "./static/build/library/renderer.js",
|
||||||
|
"types": "./static/build/library/src/renderer/library.d.ts"
|
||||||
|
},
|
||||||
"./styles": "./static/build/library/renderer.css",
|
"./styles": "./static/build/library/renderer.css",
|
||||||
"./template.html": "./src/renderer/template.html",
|
"./template.html": "./src/renderer/template.html",
|
||||||
"./vars.scss": "./src/renderer/components/vars.scss",
|
"./vars.scss": "./src/renderer/components/vars.scss",
|
||||||
@ -28,12 +34,8 @@
|
|||||||
},
|
},
|
||||||
"typesVersions": {
|
"typesVersions": {
|
||||||
"*": {
|
"*": {
|
||||||
"main": [
|
"main": ["./static/build/library/src/main/library.d.ts"],
|
||||||
"./static/build/library/src/main/library.d.ts"
|
"renderer": ["./static/build/library/src/renderer/library.d.ts"]
|
||||||
],
|
|
||||||
"renderer": [
|
|
||||||
"./static/build/library/src/renderer/library.d.ts"
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"files": [
|
"files": [
|
||||||
|
|||||||
@ -2,6 +2,11 @@
|
|||||||
* Copyright (c) OpenLens Authors. All rights reserved.
|
* Copyright (c) OpenLens Authors. All rights reserved.
|
||||||
* Licensed under MIT License. See LICENSE in root directory for more information.
|
* Licensed under MIT License. See LICENSE in root directory for more information.
|
||||||
*/
|
*/
|
||||||
|
import { mainExtensionApi as Main, commonExtensionApi as Common } from "@k8slens/core/main";
|
||||||
|
import { rendererExtensionApi as Renderer } from "@k8slens/core/renderer";
|
||||||
|
|
||||||
export { mainExtensionApi as Main, commonExtensionApi as Common } from "@k8slens/core/main";
|
export {
|
||||||
export { rendererExtensionApi as Renderer } from "@k8slens/core/renderer";
|
Main,
|
||||||
|
Common,
|
||||||
|
Renderer,
|
||||||
|
};
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user