@keynv/cli 0.1.0-rc.24 → 0.1.0-rc.25
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.js +4 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1070,7 +1070,7 @@ var require_lib = __commonJS({
|
|
|
1070
1070
|
var VERSION, AGENT;
|
|
1071
1071
|
var init_version = __esm({
|
|
1072
1072
|
"src/version.ts"() {
|
|
1073
|
-
VERSION = "0.1.0-rc.
|
|
1073
|
+
VERSION = "0.1.0-rc.25" ;
|
|
1074
1074
|
AGENT = `keynv-cli/${VERSION}`;
|
|
1075
1075
|
}
|
|
1076
1076
|
});
|
|
@@ -6723,6 +6723,7 @@ function findEnvFilesRecursive(rootDir, opts = {}) {
|
|
|
6723
6723
|
if (isFile) {
|
|
6724
6724
|
if (!ENV_GLOB.test(entry2.name)) continue;
|
|
6725
6725
|
if (ENV_EXAMPLE.test(entry2.name)) continue;
|
|
6726
|
+
if (ENV_BACKUP_EXCLUDE.test(entry2.name)) continue;
|
|
6726
6727
|
if (KEYNV_ENV_EXCLUDE.test(entry2.name)) continue;
|
|
6727
6728
|
const suffixMatch = entry2.name.match(/^\.env\.(.+)$/);
|
|
6728
6729
|
const suffix = suffixMatch ? suffixMatch[1] : null;
|
|
@@ -6792,7 +6793,7 @@ function suggestedEnvForSuffix(suffix) {
|
|
|
6792
6793
|
function hasExistingKeynvEnv(rootDir) {
|
|
6793
6794
|
return existsSync(join(rootDir, KEYNV_ENV_BASENAME));
|
|
6794
6795
|
}
|
|
6795
|
-
var PROJECT_MARKERS, GIT_MARKER, ENV_GLOB, ENV_EXAMPLE, KEYNV_ENV_BASENAME, KEYNV_ENV_EXCLUDE, IGNORE_DIRS, DEFAULT_MAX_DEPTH, DEFAULT_MAX_RESULTS;
|
|
6796
|
+
var PROJECT_MARKERS, GIT_MARKER, ENV_GLOB, ENV_EXAMPLE, ENV_BACKUP_EXCLUDE, KEYNV_ENV_BASENAME, KEYNV_ENV_EXCLUDE, IGNORE_DIRS, DEFAULT_MAX_DEPTH, DEFAULT_MAX_RESULTS;
|
|
6796
6797
|
var init_detect = __esm({
|
|
6797
6798
|
"src/init/detect.ts"() {
|
|
6798
6799
|
PROJECT_MARKERS = [
|
|
@@ -6808,6 +6809,7 @@ var init_detect = __esm({
|
|
|
6808
6809
|
GIT_MARKER = ".git";
|
|
6809
6810
|
ENV_GLOB = /^\.env(\.[A-Za-z0-9_-]+)?$/;
|
|
6810
6811
|
ENV_EXAMPLE = /^\.env\.(example|sample|template|dist|defaults)$/;
|
|
6812
|
+
ENV_BACKUP_EXCLUDE = /^\.env\.backup(-\d{8}-\d{4}(-\d+)?)?$/;
|
|
6811
6813
|
KEYNV_ENV_BASENAME = ".keynv.env";
|
|
6812
6814
|
KEYNV_ENV_EXCLUDE = /^\.keynv\.(.+\.)?env$/;
|
|
6813
6815
|
IGNORE_DIRS = /* @__PURE__ */ new Set([
|