mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
fix build to not use webpack for generating types
Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
parent
f1be6a3ec7
commit
488db8cab5
@ -21,7 +21,7 @@
|
|||||||
"compile": "env NODE_ENV=production concurrently yarn:compile:*",
|
"compile": "env NODE_ENV=production concurrently yarn:compile:*",
|
||||||
"compile:main": "yarn run webpack --config webpack/main.ts",
|
"compile:main": "yarn run webpack --config webpack/main.ts",
|
||||||
"compile:renderer": "yarn run webpack --config webpack/renderer.ts",
|
"compile:renderer": "yarn run webpack --config webpack/renderer.ts",
|
||||||
"compile:extension-types": "yarn run webpack --config webpack/extensions.ts",
|
"compile:extension-types": "yarn run tsc --project tsconfig.extension-api.json",
|
||||||
"npm:fix-build-version": "yarn run ts-node build/set_build_version.ts",
|
"npm:fix-build-version": "yarn run ts-node build/set_build_version.ts",
|
||||||
"npm:fix-package-version": "yarn run ts-node build/set_npm_version.ts",
|
"npm:fix-package-version": "yarn run ts-node build/set_npm_version.ts",
|
||||||
"build:linux": "yarn run compile && electron-builder --linux --dir",
|
"build:linux": "yarn run compile && electron-builder --linux --dir",
|
||||||
|
|||||||
@ -42,7 +42,7 @@ export type KubeTemplateObjectMetadata<Namespaced extends KubeObjectScope> = Pic
|
|||||||
namespace?: ScopedNamespace<Namespaced>;
|
namespace?: ScopedNamespace<Namespaced>;
|
||||||
};
|
};
|
||||||
|
|
||||||
interface BaseKubeJsonApiObjectMetadata<Namespaced extends KubeObjectScope> {
|
export interface BaseKubeJsonApiObjectMetadata<Namespaced extends KubeObjectScope> {
|
||||||
/**
|
/**
|
||||||
* Annotations is an unstructured key value map stored with a resource that may be set by
|
* Annotations is an unstructured key value map stored with a resource that may be set by
|
||||||
* external tools to store and retrieve arbitrary metadata. They are not queryable and should be
|
* external tools to store and retrieve arbitrary metadata. They are not queryable and should be
|
||||||
|
|||||||
@ -6,6 +6,7 @@ import type { KubeResource } from "../../common/rbac";
|
|||||||
import isAllowedResourceInjectable from "../../common/utils/is-allowed-resource.injectable";
|
import isAllowedResourceInjectable from "../../common/utils/is-allowed-resource.injectable";
|
||||||
import { castArray } from "lodash/fp";
|
import { castArray } from "lodash/fp";
|
||||||
import { getLegacyGlobalDiForExtensionApi } from "../as-legacy-globals-for-extension-api/legacy-global-di-for-extension-api";
|
import { getLegacyGlobalDiForExtensionApi } from "../as-legacy-globals-for-extension-api/legacy-global-di-for-extension-api";
|
||||||
|
import type { BaseKubeJsonApiObjectMetadata } from "../../common/k8s-api/kube-object";
|
||||||
|
|
||||||
export function isAllowedResource(resource: KubeResource | KubeResource[]) {
|
export function isAllowedResource(resource: KubeResource | KubeResource[]) {
|
||||||
const resources = castArray(resource);
|
const resources = castArray(resource);
|
||||||
@ -20,6 +21,9 @@ export function isAllowedResource(resource: KubeResource | KubeResource[]) {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export {
|
||||||
|
BaseKubeJsonApiObjectMetadata,
|
||||||
|
};
|
||||||
export { ResourceStack } from "../../common/k8s/resource-stack";
|
export { ResourceStack } from "../../common/k8s/resource-stack";
|
||||||
export { apiManager } from "../../common/k8s-api/api-manager";
|
export { apiManager } from "../../common/k8s-api/api-manager";
|
||||||
export { KubeObjectStore } from "../../common/k8s-api/kube-object.store";
|
export { KubeObjectStore } from "../../common/k8s-api/kube-object.store";
|
||||||
|
|||||||
47
tsconfig.extension-api.json
Normal file
47
tsconfig.extension-api.json
Normal file
@ -0,0 +1,47 @@
|
|||||||
|
{
|
||||||
|
"compilerOptions": {
|
||||||
|
"baseUrl": ".",
|
||||||
|
"jsx": "react",
|
||||||
|
"target": "ES2019",
|
||||||
|
"module": "ESNext",
|
||||||
|
"lib": [
|
||||||
|
"ESNext",
|
||||||
|
"DOM",
|
||||||
|
"DOM.Iterable"
|
||||||
|
],
|
||||||
|
"moduleResolution": "Node",
|
||||||
|
"strict": true,
|
||||||
|
"experimentalDecorators": true,
|
||||||
|
"emitDecoratorMetadata": true,
|
||||||
|
"isolatedModules": true,
|
||||||
|
"skipLibCheck": true,
|
||||||
|
"allowJs": false,
|
||||||
|
"esModuleInterop": true,
|
||||||
|
"allowSyntheticDefaultImports": true,
|
||||||
|
"importsNotUsedAsValues": "error",
|
||||||
|
"traceResolution": false,
|
||||||
|
"resolveJsonModule": true,
|
||||||
|
"useDefineForClassFields": true,
|
||||||
|
"paths": {
|
||||||
|
"*": [
|
||||||
|
"node_modules/*",
|
||||||
|
"types/*"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"plugins": [
|
||||||
|
{
|
||||||
|
"name": "typescript-plugin-css-modules"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"emitDeclarationOnly": true,
|
||||||
|
"noEmitOnError": true,
|
||||||
|
"declaration": true,
|
||||||
|
"declarationDir": "./src/extensions/npm/extensions/dist",
|
||||||
|
},
|
||||||
|
"include": [
|
||||||
|
"types/*.d.ts",
|
||||||
|
],
|
||||||
|
"files": [
|
||||||
|
"./src/extensions/extension-api.ts",
|
||||||
|
],
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue
Block a user