@dword-design/base 9.1.2 → 9.1.3

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/dist/index.js +3 -1
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -8,6 +8,7 @@ import packageName from 'depcheck-package-name';
8
8
  import depcheckParserBabel from 'depcheck-parser-babel';
9
9
  import jiti from 'jiti';
10
10
  import loadPkg from 'load-pkg';
11
+ import P from 'path';
11
12
  import { transform as pluginNameToPackageName } from 'plugin-name-to-package-name';
12
13
  import checkUnknownFiles from "./commands/check-unknown-files/index.js";
13
14
  import commit from "./commands/commit/index.js";
@@ -92,7 +93,8 @@ class Base {
92
93
  };
93
94
  const configsToMerge = [defaultConfig];
94
95
  if (config.name) {
95
- let inheritedConfig = config.name ? jitiInstance(config.name) : undefined;
96
+ const inheritedConfigPath = config.name === this.packageConfig.name ? P.resolve('src', 'index.js') : config.name;
97
+ let inheritedConfig = inheritedConfigPath ? jitiInstance(inheritedConfigPath) : undefined;
96
98
  if (typeof inheritedConfig === 'function') {
97
99
  inheritedConfig = inheritedConfig(deepmerge(defaultConfig, config, mergeOptions));
98
100
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dword-design/base",
3
- "version": "9.1.2",
3
+ "version": "9.1.3",
4
4
  "description": "Base package for projects.",
5
5
  "repository": "dword-design/base",
6
6
  "funding": "https://github.com/sponsors/dword-design",