@stepzen/transpiler 0.0.32 → 0.0.33
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -8,13 +8,15 @@ const fs = require("fs-extra");
|
|
|
8
8
|
const glob = require("glob");
|
|
9
9
|
const os = require("os");
|
|
10
10
|
const path = require("path");
|
|
11
|
+
const lodash_1 = require("lodash");
|
|
11
12
|
const graphql_helpers_1 = require("../utils/graphql-helpers");
|
|
12
13
|
const constants_1 = require("./constants");
|
|
13
14
|
const configure_1 = require("../actions/configure");
|
|
14
15
|
const transpile_1 = require("../actions/transpile");
|
|
15
16
|
const dedupeTempFolder = (dirpath) => {
|
|
16
|
-
|
|
17
|
-
|
|
17
|
+
do {
|
|
18
|
+
dirpath = lodash_1.replace(dirpath, os.tmpdir(), '');
|
|
19
|
+
} while (dirpath.includes(os.tmpdir()));
|
|
18
20
|
dirpath = path.join(os.tmpdir(), dirpath);
|
|
19
21
|
return dirpath;
|
|
20
22
|
};
|