@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.
@@ -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 = path.join(os.tmpdir(), `stepzen-tmp-${Date.now()}`);
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 = path.join(os.tmpdir(), options.output.replace(regex, ''));
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}`);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stepzen/transpiler",
3
3
  "description": "The StepZen transpiler",
4
- "version": "0.0.29",
4
+ "version": "0.0.30",
5
5
  "author": "Darren Waddell <darren@stepzen.com>",
6
6
  "license": "MIT",
7
7
  "files": [