@zincapp/znvault-cli 2.18.0 → 2.18.1
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.
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Config store initialization
|
|
3
|
+
*
|
|
4
|
+
* Supports ZNVAULT_CONFIG_DIR environment variable for test isolation.
|
|
5
|
+
* When set, config is stored in that directory instead of the default
|
|
6
|
+
* OS-specific location (~/.config/znvault on Linux, ~/Library/Preferences on macOS).
|
|
3
7
|
*/
|
|
4
8
|
import Conf from 'conf';
|
|
5
9
|
import type { ConfigStore } from './types.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"store.d.ts","sourceRoot":"","sources":["../../../src/lib/config/store.ts"],"names":[],"mappings":"AAEA
|
|
1
|
+
{"version":3,"file":"store.d.ts","sourceRoot":"","sources":["../../../src/lib/config/store.ts"],"names":[],"mappings":"AAEA;;;;;;GAMG;AAEH,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAM9C,eAAO,MAAM,KAAK,mBAShB,CAAC;AAKH;;GAEG;AACH,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI,GAAG,IAAI,CAE9D;AAED;;GAEG;AACH,wBAAgB,iBAAiB,IAAI,MAAM,GAAG,IAAI,CAEjD;AAED;;GAEG;AACH,wBAAgB,WAAW,IAAI,IAAI,CAElC;AAED;;GAEG;AACH,wBAAgB,aAAa,IAAI,MAAM,CAEtC"}
|
package/dist/lib/config/store.js
CHANGED
|
@@ -1,11 +1,19 @@
|
|
|
1
1
|
// Path: src/lib/config/store.ts
|
|
2
2
|
/**
|
|
3
3
|
* Config store initialization
|
|
4
|
+
*
|
|
5
|
+
* Supports ZNVAULT_CONFIG_DIR environment variable for test isolation.
|
|
6
|
+
* When set, config is stored in that directory instead of the default
|
|
7
|
+
* OS-specific location (~/.config/znvault on Linux, ~/Library/Preferences on macOS).
|
|
4
8
|
*/
|
|
5
9
|
import Conf from 'conf';
|
|
6
10
|
import { DEFAULT_PROFILE } from './types.js';
|
|
11
|
+
// Check for custom config directory (used for test isolation)
|
|
12
|
+
const configDir = process.env.ZNVAULT_CONFIG_DIR;
|
|
7
13
|
export const store = new Conf({
|
|
8
14
|
projectName: 'znvault',
|
|
15
|
+
// Use custom config directory if specified (for test isolation)
|
|
16
|
+
...(configDir ? { cwd: configDir } : {}),
|
|
9
17
|
defaults: {
|
|
10
18
|
activeProfile: DEFAULT_PROFILE,
|
|
11
19
|
profiles: {},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"store.js","sourceRoot":"","sources":["../../../src/lib/config/store.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAEhC
|
|
1
|
+
{"version":3,"file":"store.js","sourceRoot":"","sources":["../../../src/lib/config/store.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAEhC;;;;;;GAMG;AAEH,OAAO,IAAI,MAAM,MAAM,CAAC;AAExB,OAAO,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAE7C,8DAA8D;AAC9D,MAAM,SAAS,GAAG,OAAO,CAAC,GAAG,CAAC,kBAAkB,CAAC;AAEjD,MAAM,CAAC,MAAM,KAAK,GAAG,IAAI,IAAI,CAAc;IACzC,WAAW,EAAE,SAAS;IACtB,gEAAgE;IAChE,GAAG,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,GAAG,EAAE,SAAS,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;IACxC,QAAQ,EAAE;QACR,aAAa,EAAE,eAAe;QAC9B,QAAQ,EAAE,EAAE;QACZ,OAAO,EAAE,EAAE;KACZ;CACF,CAAC,CAAC;AAEH,oDAAoD;AACpD,IAAI,sBAAsB,GAAkB,IAAI,CAAC;AAEjD;;GAEG;AACH,MAAM,UAAU,iBAAiB,CAAC,OAAsB;IACtD,sBAAsB,GAAG,OAAO,CAAC;AACnC,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,iBAAiB;IAC/B,OAAO,sBAAsB,CAAC;AAChC,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,WAAW;IACzB,KAAK,CAAC,KAAK,EAAE,CAAC;AAChB,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,aAAa;IAC3B,OAAO,KAAK,CAAC,IAAI,CAAC;AACpB,CAAC"}
|