Remove dependency on home-or-tmp package (#9678)
This commit is contained in:
@@ -1,12 +1,12 @@
|
||||
import path from "path";
|
||||
import fs from "fs";
|
||||
import os from "os";
|
||||
import { sync as mkdirpSync } from "mkdirp";
|
||||
import homeOrTmp from "home-or-tmp";
|
||||
import * as babel from "@babel/core";
|
||||
import findCacheDir from "find-cache-dir";
|
||||
|
||||
const DEFAULT_CACHE_DIR =
|
||||
findCacheDir({ name: "@babel/register" }) || homeOrTmp;
|
||||
findCacheDir({ name: "@babel/register" }) || os.homedir() || os.tmpdir();
|
||||
const DEFAULT_FILENAME = path.join(
|
||||
DEFAULT_CACHE_DIR,
|
||||
`.babel.${babel.version}.${babel.getEnv()}.json`,
|
||||
|
||||
Reference in New Issue
Block a user