mikel-cli 0.35.0 → 0.35.2

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.
Files changed (2) hide show
  1. package/index.js +2 -2
  2. package/package.json +2 -2
package/index.js CHANGED
@@ -48,7 +48,7 @@ export const loadConfiguration = async (configurationFile) => {
48
48
  // check the extension of the file
49
49
  const configurationExtension = path.extname(configurationFile);
50
50
  if (configurationExtension === ".js" || configurationExtension === ".mjs") {
51
- return await import(configurationPath);
51
+ return (await import(configurationPath)).default;
52
52
  }
53
53
  else if (configurationExtension === ".json") {
54
54
  return JSON.parse(await fs.readFile(configurationPath, "utf8"));
@@ -74,7 +74,7 @@ export const resolveOutput = (root, file, output) => {
74
74
  }
75
75
  // 2. output configuration is provided as an object
76
76
  else if (!!output && typeof output === "object") {
77
- const renamedOutputFile = applyNameMapping(file, output?.nameMapping || {});
77
+ const renamedOutputFile = applyNameMapping(file, output?.nameMapper || {});
78
78
  return path.resolve(root, path.join(output?.dir || ".", renamedOutputFile));
79
79
  }
80
80
  // 3. other case???
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "mikel-cli",
3
3
  "description": "The cli tool for mikel templating.",
4
- "version": "0.35.0",
4
+ "version": "0.35.2",
5
5
  "type": "module",
6
6
  "license": "MIT",
7
7
  "author": {
@@ -35,7 +35,7 @@
35
35
  "mikel": "cli.js"
36
36
  },
37
37
  "peerDependencies": {
38
- "mikel": "^0.35.0"
38
+ "mikel": "^0.35.2"
39
39
  },
40
40
  "files": [
41
41
  "README.md",