@stepzen/transpiler 0.0.28 → 0.0.29

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.
@@ -31,6 +31,10 @@ exports.default = async (original, imported, options = {
31
31
  options.output = path.join(os.tmpdir(), `stepzen-tmp-${Date.now()}`);
32
32
  if (!options.silent)
33
33
  options.silent = false;
34
+ // To stop things like
35
+ // C:\Users\Darren\AppData\Local\Temp\stepzen-tmp-config-1638293497187\C:\Users\Darren\AppData\Local\Temp\stepzen-tmp-1638293496286
36
+ const regex = new RegExp(os.tmpdir(), 'gi');
37
+ options.output = path.join(os.tmpdir(), options.output.replace(regex, ''));
34
38
  // Ensure original, importing and output directories exist
35
39
  if (!fs.existsSync(original))
36
40
  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.28",
4
+ "version": "0.0.29",
5
5
  "author": "Darren Waddell <darren@stepzen.com>",
6
6
  "license": "MIT",
7
7
  "files": [