Remove dependency on home-or-tmp package (#9678)
This commit is contained in:
parent
a64bf63639
commit
0a69b45126
@ -15,7 +15,6 @@
|
||||
"dependencies": {
|
||||
"core-js": "^2.5.7",
|
||||
"find-cache-dir": "^2.0.0",
|
||||
"home-or-tmp": "^3.0.0",
|
||||
"lodash": "^4.17.11",
|
||||
"mkdirp": "^0.5.1",
|
||||
"pirates": "^4.0.0",
|
||||
|
||||
@ -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`,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user