c12 0.2.0 → 0.2.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.
package/dist/index.cjs CHANGED
@@ -134,7 +134,7 @@ async function loadConfig(opts) {
134
134
  opts.overrides && { config: opts.overrides, configFile: void 0, cwd: void 0 },
135
135
  { config, configFile: opts.configFile, cwd: opts.cwd },
136
136
  opts.rcFile && { config: configRC, configFile: opts.rcFile }
137
- ].filter((l) => l && l.config && Object.keys(l.config).length);
137
+ ].filter((l) => l && l.config);
138
138
  if (opts.extend) {
139
139
  await extendConfig(r.config, opts);
140
140
  r.layers = [
package/dist/index.mjs CHANGED
@@ -110,7 +110,7 @@ async function loadConfig(opts) {
110
110
  opts.overrides && { config: opts.overrides, configFile: void 0, cwd: void 0 },
111
111
  { config, configFile: opts.configFile, cwd: opts.cwd },
112
112
  opts.rcFile && { config: configRC, configFile: opts.rcFile }
113
- ].filter((l) => l && l.config && Object.keys(l.config).length);
113
+ ].filter((l) => l && l.config);
114
114
  if (opts.extend) {
115
115
  await extendConfig(r.config, opts);
116
116
  r.layers = [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "c12",
3
- "version": "0.2.0",
3
+ "version": "0.2.3",
4
4
  "description": "Smart Config Loader",
5
5
  "repository": "unjs/c12",
6
6
  "license": "MIT",