gaffer-generator 2.0.16 → 2.0.18

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.
@@ -3,6 +3,7 @@ import fs from 'fs';
3
3
  import globule from 'globule';
4
4
  import { createRequire } from 'module';
5
5
  import path from 'path';
6
+ import { pathToFileURL } from 'url';
6
7
  import { getArgv } from '../argv.js';
7
8
  import * as utils from '../utils.js';
8
9
  import { logError } from '../utils/logError.js';
@@ -38,9 +39,8 @@ async function visit(rootPath) {
38
39
  + colors.cyan(rootPath));
39
40
  return;
40
41
  }
41
- // TODO:
42
- // const templateSettings = requireCompat(templateSettingsPath);
43
- const templateSettings = await import(templateSettingsPath);
42
+ const templateSettings = await import(pathToFileURL(templateSettingsPath).href);
43
+
44
44
  if (getArgv().into) {
45
45
  templateSettings.into = getArgv().into;
46
46
  }
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "2.0.16",
2
+ "version": "2.0.18",
3
3
  "name": "gaffer-generator",
4
4
  "description": "Generates code across files based on your templates",
5
5
  "author": "Dawson Toth",