@incanta/config
Advanced tools
Comparing version 0.1.2 to 0.1.3
@@ -54,3 +54,3 @@ "use strict"; | ||
for (const content of contents) { | ||
if (!content.isDirectory() && content.name.startsWith("index.")) { | ||
if (!content.isDirectory() && /^_?index\./.exec(content.name) !== null) { | ||
(0, lodash_merge_1.default)(baseObj, Loader.loadFile(path_1.default.join(folder, content.name))); | ||
@@ -70,3 +70,3 @@ } | ||
else { | ||
if (content.name.startsWith("index.")) { | ||
if (/^_?index\./.exec(content.name) !== null) { | ||
// we already loaded this to be be in the base config | ||
@@ -73,0 +73,0 @@ continue; |
{ | ||
"name": "@incanta/config", | ||
"version": "0.1.2", | ||
"version": "0.1.3", | ||
"main": "lib/index.js", | ||
@@ -5,0 +5,0 @@ "exports": { |
@@ -54,3 +54,3 @@ import fs from "fs"; | ||
for (const content of contents) { | ||
if (!content.isDirectory() && content.name.startsWith("index.")) { | ||
if (!content.isDirectory() && /^_?index\./.exec(content.name) !== null) { | ||
merge(baseObj, Loader.loadFile(path.join(folder, content.name))); | ||
@@ -75,3 +75,3 @@ } | ||
} else { | ||
if (content.name.startsWith("index.")) { | ||
if (/^_?index\./.exec(content.name) !== null) { | ||
// we already loaded this to be be in the base config | ||
@@ -78,0 +78,0 @@ continue; |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
22972