1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00

Fix errors blocking compilation

Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
Sebastian Malton 2022-12-16 11:14:17 -05:00
parent a1d2fa05d7
commit 3fbbf022b9
7 changed files with 14 additions and 5 deletions

View File

@ -21,6 +21,8 @@ const fsInjectable = getInjectable({
rm, rm,
access, access,
stat, stat,
chmod,
copyFile,
}, },
ensureDir, ensureDir,
ensureDirSync, ensureDirSync,
@ -34,6 +36,7 @@ const fsInjectable = getInjectable({
pathExists, pathExists,
copy, copy,
createReadStream, createReadStream,
createWriteStream,
} = fse; } = fse;
return { return {
@ -56,6 +59,9 @@ const fsInjectable = getInjectable({
ensureDirSync, ensureDirSync,
createReadStream, createReadStream,
stat, stat,
chmod,
copyFile,
createWriteStream,
}; };
}, },
causesSideEffects: true, causesSideEffects: true,

View File

@ -9,7 +9,7 @@ import type { BaseStoreDependencies } from "../../../common/base-store/base-stor
import { BaseStore } from "../../../common/base-store/base-store"; import { BaseStore } from "../../../common/base-store/base-store";
import type { LensExtensionId } from "../../lens-extension"; import type { LensExtensionId } from "../../lens-extension";
import { getOrInsertWithAsync, toJS } from "../../../common/utils"; import { getOrInsertWithAsync, toJS } from "../../../common/utils";
import type { EnsureDirectory } from "../../../common/fs/ensure-dir.injectable"; import type { EnsureDirectory } from "../../../common/fs/ensure-directory.injectable";
import type { JoinPaths } from "../../../common/path/join-paths.injectable"; import type { JoinPaths } from "../../../common/path/join-paths.injectable";
import type { RandomBytes } from "../../../common/utils/random-bytes.injectable"; import type { RandomBytes } from "../../../common/utils/random-bytes.injectable";

View File

@ -5,7 +5,7 @@
import type { ClusterId, ClusterState } from "../../../../common/cluster-types"; import type { ClusterId, ClusterState } from "../../../../common/cluster-types";
import type { MessageChannel } from "../../../../common/utils/channel/message-channel-listener-injection-token"; import type { MessageChannel } from "../../../../common/utils/channel/message-channel-listener-injection-token";
import type { RequestChannel } from "../../../../common/utils/channel/request-channel-listener-injection-token"; import type { RequestChannel } from "../../../../common/utils/channel/request-channel";
export interface ClusterStateSync { export interface ClusterStateSync {
clusterId: ClusterId; clusterId: ClusterId;

View File

@ -4,7 +4,7 @@
*/ */
import type { OpenDialogOptions } from "electron"; import type { OpenDialogOptions } from "electron";
import type { RequestChannel } from "../../../common/utils/channel/request-channel-listener-injection-token"; import type { RequestChannel } from "../../../common/utils/channel/request-channel";
export type PathPickingResponse = { export type PathPickingResponse = {
canceled: true; canceled: true;

View File

@ -4,7 +4,7 @@
*/ */
import type { MessageChannel } from "../../../../common/utils/channel/message-channel-listener-injection-token"; import type { MessageChannel } from "../../../../common/utils/channel/message-channel-listener-injection-token";
import type { RequestChannel } from "../../../../common/utils/channel/request-channel-listener-injection-token"; import type { RequestChannel } from "../../../../common/utils/channel/request-channel";
export type SystemThemeType = "dark" | "light"; export type SystemThemeType = "dark" | "light";

View File

@ -62,6 +62,9 @@ export const getOverrideFsWithFakes = () => {
ensureDirSync, ensureDirSync,
createReadStream: root.createReadStream as any, createReadStream: root.createReadStream as any,
stat: root.promises.stat as any, stat: root.promises.stat as any,
chmod: root.promises.chmod,
copyFile: root.promises.copyFile,
createWriteStream: root.createWriteStream as any,
})); }));
}; };
}; };

View File

@ -2749,7 +2749,7 @@
dependencies: dependencies:
"@types/node" "*" "@types/node" "*"
"@types/ws@^8.5.1": "@types/ws@^8.5.1", "@types/ws@^8.5.3":
version "8.5.3" version "8.5.3"
resolved "https://registry.yarnpkg.com/@types/ws/-/ws-8.5.3.tgz#7d25a1ffbecd3c4f2d35068d0b283c037003274d" resolved "https://registry.yarnpkg.com/@types/ws/-/ws-8.5.3.tgz#7d25a1ffbecd3c4f2d35068d0b283c037003274d"
integrity sha512-6YOoWjruKj1uLf3INHH7D3qTXwFfEsg1kf3c0uDdSBJwfa/llkwIjrAGV7j7mVgGNbzTQ3HiHKKDXl6bJPD97w== integrity sha512-6YOoWjruKj1uLf3INHH7D3qTXwFfEsg1kf3c0uDdSBJwfa/llkwIjrAGV7j7mVgGNbzTQ3HiHKKDXl6bJPD97w==