Seperate version env cache files (#5411)
This commit is contained in:
committed by
Henry Zhu
parent
7e25dccc6e
commit
b2c977a1b0
@@ -2,8 +2,10 @@ import path from "path";
|
||||
import fs from "fs";
|
||||
import { sync as mkdirpSync } from "mkdirp";
|
||||
import homeOrTmp from "home-or-tmp";
|
||||
import * as babel from "babel-core";
|
||||
|
||||
const FILENAME: string = process.env.BABEL_CACHE_PATH || path.join(homeOrTmp, ".babel.json");
|
||||
const DEFAULT_FILENAME = path.join(homeOrTmp, `.babel.${babel.version}.${babel.getEnv()}.json`);
|
||||
const FILENAME: string = process.env.BABEL_CACHE_PATH || DEFAULT_FILENAME;
|
||||
let data: Object = {};
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user