@happyvertical/smrt-config 0.51.13 → 0.51.14
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.d.ts +36 -0
- package/dist/types.d.ts +36 -0
- package/package.json +4 -4
package/dist/index.d.ts
CHANGED
|
@@ -1345,3 +1345,39 @@ export declare type TenantContextMode = 'defaulted' | 'required';
|
|
|
1345
1345
|
export declare type TenantIsolation = 'application' | 'database-rls';
|
|
1346
1346
|
|
|
1347
1347
|
export { }
|
|
1348
|
+
|
|
1349
|
+
|
|
1350
|
+
/**
|
|
1351
|
+
* Extend globalThis to include our config cache properties.
|
|
1352
|
+
* Using globalThis ensures all module instances share the same config,
|
|
1353
|
+
* which is critical in monorepos where the same package can be loaded
|
|
1354
|
+
* from different paths (e.g., pnpm store vs workspace symlink).
|
|
1355
|
+
*
|
|
1356
|
+
* This fixes issue #543: external packages not receiving user config
|
|
1357
|
+
* when smrt-cli loads them.
|
|
1358
|
+
*
|
|
1359
|
+
* @see https://github.com/happyvertical/smrt/issues/543
|
|
1360
|
+
*/
|
|
1361
|
+
declare global {
|
|
1362
|
+
var __smrtConfigCache: SmrtConfig | null | undefined;
|
|
1363
|
+
var __smrtRuntimeConfig: Partial<SmrtConfig> | undefined;
|
|
1364
|
+
}
|
|
1365
|
+
|
|
1366
|
+
|
|
1367
|
+
declare global {
|
|
1368
|
+
var __smrtRuntimeConfig: Partial<SmrtConfig> | undefined;
|
|
1369
|
+
}
|
|
1370
|
+
|
|
1371
|
+
|
|
1372
|
+
/**
|
|
1373
|
+
* Extend globalThis to include loader cache properties.
|
|
1374
|
+
* Using globalThis ensures all module instances share the same loader state,
|
|
1375
|
+
* which is critical in monorepos where the same package can be loaded
|
|
1376
|
+
* from different paths (e.g., pnpm store vs workspace symlink).
|
|
1377
|
+
*
|
|
1378
|
+
* @see https://github.com/happyvertical/smrt/issues/543
|
|
1379
|
+
*/
|
|
1380
|
+
declare global {
|
|
1381
|
+
var __smrtLoaderCachedConfig: SmrtConfig | null | undefined;
|
|
1382
|
+
var __smrtLoaderExplorer: ReturnType<typeof cosmiconfig> | null | undefined;
|
|
1383
|
+
}
|
package/dist/types.d.ts
CHANGED
|
@@ -796,3 +796,39 @@ declare type TenantContextMode = 'defaulted' | 'required';
|
|
|
796
796
|
declare type TenantIsolation = 'application' | 'database-rls';
|
|
797
797
|
|
|
798
798
|
export { }
|
|
799
|
+
|
|
800
|
+
|
|
801
|
+
/**
|
|
802
|
+
* Extend globalThis to include our config cache properties.
|
|
803
|
+
* Using globalThis ensures all module instances share the same config,
|
|
804
|
+
* which is critical in monorepos where the same package can be loaded
|
|
805
|
+
* from different paths (e.g., pnpm store vs workspace symlink).
|
|
806
|
+
*
|
|
807
|
+
* This fixes issue #543: external packages not receiving user config
|
|
808
|
+
* when smrt-cli loads them.
|
|
809
|
+
*
|
|
810
|
+
* @see https://github.com/happyvertical/smrt/issues/543
|
|
811
|
+
*/
|
|
812
|
+
declare global {
|
|
813
|
+
var __smrtConfigCache: SmrtConfig | null | undefined;
|
|
814
|
+
var __smrtRuntimeConfig: Partial<SmrtConfig> | undefined;
|
|
815
|
+
}
|
|
816
|
+
|
|
817
|
+
|
|
818
|
+
declare global {
|
|
819
|
+
var __smrtRuntimeConfig: Partial<SmrtConfig> | undefined;
|
|
820
|
+
}
|
|
821
|
+
|
|
822
|
+
|
|
823
|
+
/**
|
|
824
|
+
* Extend globalThis to include loader cache properties.
|
|
825
|
+
* Using globalThis ensures all module instances share the same loader state,
|
|
826
|
+
* which is critical in monorepos where the same package can be loaded
|
|
827
|
+
* from different paths (e.g., pnpm store vs workspace symlink).
|
|
828
|
+
*
|
|
829
|
+
* @see https://github.com/happyvertical/smrt/issues/543
|
|
830
|
+
*/
|
|
831
|
+
declare global {
|
|
832
|
+
var __smrtLoaderCachedConfig: SmrtConfig | null | undefined;
|
|
833
|
+
var __smrtLoaderExplorer: ReturnType<typeof cosmiconfig> | null | undefined;
|
|
834
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@happyvertical/smrt-config",
|
|
3
|
-
"version": "0.51.
|
|
3
|
+
"version": "0.51.14",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Centralized configuration management for SMRT modules",
|
|
6
6
|
"author": "HappyVertical",
|
|
@@ -19,12 +19,12 @@
|
|
|
19
19
|
"AGENTS.md"
|
|
20
20
|
],
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@happyvertical/smrt-types": "0.51.
|
|
23
|
-
"cosmiconfig": "^
|
|
22
|
+
"@happyvertical/smrt-types": "0.51.14",
|
|
23
|
+
"cosmiconfig": "^10.0.1",
|
|
24
24
|
"jiti": "^2.7.0"
|
|
25
25
|
},
|
|
26
26
|
"devDependencies": {
|
|
27
|
-
"@types/node": "24.13.
|
|
27
|
+
"@types/node": "24.13.6",
|
|
28
28
|
"typescript": "5.9.3",
|
|
29
29
|
"vite": "8.1.4",
|
|
30
30
|
"vitest": "4.1.10"
|