@moccona/apicodegen 0.1.0 → 0.1.2

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.
@@ -10,6 +10,17 @@ type ApiCodeGenPluginOptions = {
10
10
  importClientSource?: string; /** Enable verbose logging */
11
11
  verbose?: boolean; /** Run type check after generation (default: true) */
12
12
  typeCheck?: boolean;
13
+ /**
14
+ * Enable on-disk caching of generated code (default: true).
15
+ * Subsequent vite invocations skip codegen when neither the spec file
16
+ * nor the options have changed. Disable to force a fresh generation.
17
+ */
18
+ cache?: boolean;
19
+ /**
20
+ * Directory to store cache entries (default: `node_modules/.cache/apicodegen`).
21
+ * Ignored when `cache === false`.
22
+ */
23
+ cacheDir?: string;
13
24
  };
14
25
  /**
15
26
  * Main Vite plugin function
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.mts","names":[],"sources":["../../src/vite-plugin/index.ts"],"mappings":";;;KAiBY,uBAAA;2DAEX,IAAA,UAFkC;EAIlC,IAAA,WAJkC;EAMlC,MAAA,WAFA;EAIA,OAAA;EAEA,OAAA,WAEA;EAAA,kBAAA,WAIA;EAFA,OAAA,YAES;EAAT,SAAA;AAAA;;;;;;;AA8Mc;;;;;;;;;;;;;;;;iBAFC,gBAAA,CACf,OAAA,EAAS,uBAAA,KACP,YAAY"}
1
+ {"version":3,"file":"index.d.mts","names":[],"sources":["../../src/vite-plugin/index.ts"],"mappings":";;;KAiBY,uBAAA;2DAEX,IAAA,UAFkC;EAIlC,IAAA,WAJkC;EAMlC,MAAA,WAFA;EAIA,OAAA;EAEA,OAAA,WAEA;EAAA,kBAAA,WAIA;EAFA,OAAA,YAaA;EAXA,SAAA;EAWQ;AAiOT;;;;EAtOC,KAAA;EAuOA;;;AACc;EAnOd,QAAA;AAAA;;;;;;;;;;;;;;;;;;;;;;;iBAiOe,gBAAA,CACf,OAAA,EAAS,uBAAA,KACP,YAAY"}