mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
unify build fs layout
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
This commit is contained in:
1 parent
2fa09ba10d
commit
e2d3f5ad4e
6 files changed
+8
-27
No files matched your search
@@ -4,16 +4,14 @@
|
||||
*/
|
||||
import { getInjectable } from "@ogre-tools/injectable";
|
||||
import joinPathsInjectable from "../path/join-paths.injectable";
|
||||
import lensResourcesDirInjectable from "./lens-resources-dir.injectable";
|
||||
|
||||
const staticFilesDirectoryInjectable = getInjectable({
|
||||
id: "static-files-directory",
|
||||
|
||||
instantiate: (di) => {
|
||||
const joinPaths = di.inject(joinPathsInjectable);
|
||||
const lensResourcesDir = di.inject(lensResourcesDirInjectable);
|
||||
|
||||
return joinPaths(lensResourcesDir, "static");
|
||||
return joinPaths(__dirname, "..");
|
||||
},
|
||||
});
|
||||
|
||||
|
||||
Reference in new issue
Block a user