@fictjs/compiler 0.5.2 → 0.7.0

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.cts CHANGED
@@ -69,12 +69,19 @@ interface FictCompilerOptions {
69
69
  */
70
70
  moduleMetadata?: Map<string, ModuleReactiveMetadata>;
71
71
  /**
72
- * Emit module metadata sidecar files to enable cross-process metadata resolution.
73
- * - true: always emit
74
- * - false: never emit
75
- * - 'auto' or undefined: emit only when no external metadata store/resolver is provided
72
+ * Emit module metadata files to enable cross-process metadata resolution.
73
+ * - true: always emit adjacent sidecar files next to source modules
74
+ * - false: never emit metadata files
75
+ * - 'auto' or undefined:
76
+ * - emit to cache directory only when no external metadata store/resolver is provided
77
+ * - avoid source tree pollution while keeping cross-process resolution available
76
78
  */
77
79
  emitModuleMetadata?: boolean | 'auto';
80
+ /**
81
+ * Cache directory for metadata files when `emitModuleMetadata` is `'auto'`.
82
+ * Defaults to `<cwd>/.fict-cache/metadata`.
83
+ */
84
+ moduleMetadataCacheDir?: string;
78
85
  /**
79
86
  * File extension suffix for module metadata sidecars.
80
87
  * Defaults to '.fict.meta.json'.
package/dist/index.d.ts CHANGED
@@ -69,12 +69,19 @@ interface FictCompilerOptions {
69
69
  */
70
70
  moduleMetadata?: Map<string, ModuleReactiveMetadata>;
71
71
  /**
72
- * Emit module metadata sidecar files to enable cross-process metadata resolution.
73
- * - true: always emit
74
- * - false: never emit
75
- * - 'auto' or undefined: emit only when no external metadata store/resolver is provided
72
+ * Emit module metadata files to enable cross-process metadata resolution.
73
+ * - true: always emit adjacent sidecar files next to source modules
74
+ * - false: never emit metadata files
75
+ * - 'auto' or undefined:
76
+ * - emit to cache directory only when no external metadata store/resolver is provided
77
+ * - avoid source tree pollution while keeping cross-process resolution available
76
78
  */
77
79
  emitModuleMetadata?: boolean | 'auto';
80
+ /**
81
+ * Cache directory for metadata files when `emitModuleMetadata` is `'auto'`.
82
+ * Defaults to `<cwd>/.fict-cache/metadata`.
83
+ */
84
+ moduleMetadataCacheDir?: string;
78
85
  /**
79
86
  * File extension suffix for module metadata sidecars.
80
87
  * Defaults to '.fict.meta.json'.