@stepzen/transpiler 0.0.29 → 0.0.30
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.
- package/lib/actions/merge.js +3 -2
- package/package.json +1 -1
package/lib/actions/merge.js
CHANGED
|
@@ -28,13 +28,14 @@ exports.default = async (original, imported, options = {
|
|
|
28
28
|
if (!options.answers)
|
|
29
29
|
options.answers = {};
|
|
30
30
|
if (!options.output)
|
|
31
|
-
options.output =
|
|
31
|
+
options.output = `stepzen-tmp-${Date.now()}`;
|
|
32
32
|
if (!options.silent)
|
|
33
33
|
options.silent = false;
|
|
34
34
|
// To stop things like
|
|
35
35
|
// C:\Users\Darren\AppData\Local\Temp\stepzen-tmp-config-1638293497187\C:\Users\Darren\AppData\Local\Temp\stepzen-tmp-1638293496286
|
|
36
36
|
const regex = new RegExp(os.tmpdir(), 'gi');
|
|
37
|
-
options.output =
|
|
37
|
+
options.output = options.output.replace(regex, '');
|
|
38
|
+
options.output = path.join(os.tmpdir(), options.output);
|
|
38
39
|
// Ensure original, importing and output directories exist
|
|
39
40
|
if (!fs.existsSync(original))
|
|
40
41
|
throw new Error(`Cannot find original directory ${original}`);
|