@vc-shell/framework 2.0.7-pr237.4b187d7 → 2.0.8-pr238.047030d

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,11 +1,12 @@
1
1
  /**
2
- * Build-time constants injected by Vite `define` in `framework/vite.config.mts`
3
- * during `vite build` of the framework. They are frozen at framework publish
4
- * time, so a consuming app reads the framework version it was built against.
2
+ * `version` is read statically from the framework's `package.json`, so it is
3
+ * always accurate both in a built/published framework AND when the framework
4
+ * is consumed from source (Storybook, dev server, Vitest).
5
5
  *
6
- * In dev mode (framework source consumed via alias, Storybook, or Vitest) the
7
- * `define` is not applied. `typeof <undeclared>` returns `"undefined"` without
8
- * throwing a ReferenceError, so the guard yields the "dev" fallback.
6
+ * `buildDate` and `gitHash` are injected by Vite `define` in
7
+ * `framework/vite.config.mts` during `vite build` of the framework. In source
8
+ * contexts the `define` is not applied; `typeof <undeclared>` returns
9
+ * `"undefined"` without throwing a ReferenceError, so they fall back to "dev".
9
10
  */
10
11
  export interface IFrameworkBuildInfo {
11
12
  version: string;
@@ -1 +1 @@
1
- {"version":3,"file":"buildInfo.d.ts","sourceRoot":"","sources":["../../../core/utilities/buildInfo.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,MAAM,WAAW,mBAAmB;IAClC,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,wBAAgB,qBAAqB,IAAI,mBAAmB,CAM3D;AAED,wBAAgB,qBAAqB,CAAC,IAAI,GAAE,mBAA6C,GAAG,IAAI,CAQ/F"}
1
+ {"version":3,"file":"buildInfo.d.ts","sourceRoot":"","sources":["../../../core/utilities/buildInfo.ts"],"names":[],"mappings":"AAEA;;;;;;;;;GASG;AACH,MAAM,WAAW,mBAAmB;IAClC,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,wBAAgB,qBAAqB,IAAI,mBAAmB,CAM3D;AAED,wBAAgB,qBAAqB,CAAC,IAAI,GAAE,mBAA6C,GAAG,IAAI,CAQ/F"}