Package: node-babel / 6.26.0+dfsg-3

remove-home-or-tmp.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
--- a/packages/babel-register/src/cache.js
+++ b/packages/babel-register/src/cache.js
@@ -1,7 +1,8 @@
 import path from "path";
 import fs from "fs";
 import { sync as mkdirpSync } from "mkdirp";
-import homeOrTmp from "home-or-tmp";
+import os from "os";
+var homeOrTmp = os.homedir() || os.tmpdir();
 
 const FILENAME: string = process.env.BABEL_CACHE_PATH || path.join(homeOrTmp, ".babel.json");
 let data: Object = {};