Skip to content

Commit

Permalink
fix compiler path
Browse files Browse the repository at this point in the history
  • Loading branch information
karneges committed Jul 15, 2022
1 parent 0e73d4e commit bb90019
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/compilerComponentsStore/dirUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@ import path from "path";
import { ComponentType, PACKAGE_NAME } from "./constants";
import { replaceDots } from "./utils";

const getDataDir = (): string => {
const dataDir = envPaths(PACKAGE_NAME).data;
const getCacheDir = (): string => {
const dataDir = envPaths(PACKAGE_NAME).cache;
fs.ensureDirSync(dataDir);
return dataDir;
};
const getComponentsDir = ({ component }: { component: ComponentType }): string => {
const dir = path.resolve(getDataDir(), component);
const dir = path.resolve(getCacheDir(), component);
fs.ensureDirSync(dir);
return dir;
};
Expand Down

0 comments on commit bb90019

Please sign in to comment.