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

Make sense in name of injectable

Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
This commit is contained in:
Janne Savolainen 2022-06-06 10:20:42 +03:00
parent ccc0d539eb
commit e213e2d314
No known key found for this signature in database
GPG Key ID: 8C6CFB2FFFE8F68A
2 changed files with 5 additions and 5 deletions

View File

@ -4,14 +4,14 @@
*/ */
import { getInjectable } from "@ogre-tools/injectable"; import { getInjectable } from "@ogre-tools/injectable";
import path from "path"; import path from "path";
import bundledBinariesNormalizedArchInjectable from "./bundled-binaries-normalized-arch.injectable"; import normalizedPlatformArchitecture from "./normalized-platform-architecture.injectable";
import bundledResourcesDirectoryInjectable from "./bundled-resources-dir.injectable"; import bundledResourcesDirectoryInjectable from "./bundled-resources-dir.injectable";
const baseBundeledBinariesDirectoryInjectable = getInjectable({ const baseBundeledBinariesDirectoryInjectable = getInjectable({
id: "base-bundeled-binaries-directory", id: "base-bundeled-binaries-directory",
instantiate: (di) => path.join( instantiate: (di) => path.join(
di.inject(bundledResourcesDirectoryInjectable), di.inject(bundledResourcesDirectoryInjectable),
di.inject(bundledBinariesNormalizedArchInjectable), di.inject(normalizedPlatformArchitecture),
), ),
}); });

View File

@ -4,8 +4,8 @@
*/ */
import { getInjectable } from "@ogre-tools/injectable"; import { getInjectable } from "@ogre-tools/injectable";
const bundledBinariesNormalizedArchInjectable = getInjectable({ const normalizedPlatformArchitectureInjectable = getInjectable({
id: "bundled-binaries-normalized-arch", id: "normalized-platform-architecture",
instantiate: () => { instantiate: () => {
switch (process.arch) { switch (process.arch) {
case "arm64": case "arm64":
@ -24,4 +24,4 @@ const bundledBinariesNormalizedArchInjectable = getInjectable({
causesSideEffects: true, causesSideEffects: true,
}); });
export default bundledBinariesNormalizedArchInjectable; export default normalizedPlatformArchitectureInjectable;