@kubb/core 5.3.16 → 5.3.17

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.cjs CHANGED
@@ -127,7 +127,7 @@ function formatMs(ms) {
127
127
  /**
128
128
  * Docs major version, derived from the package version so the link tracks the published major.
129
129
  */
130
- const docsMajor = "5.3.16".split(".")[0] ?? "5";
130
+ const docsMajor = "5.3.17".split(".")[0] ?? "5";
131
131
  /**
132
132
  * Builds a type guard that narrows a {@link Diagnostic} to the variant for `kind`. A diagnostic
133
133
  * with no `kind` is treated as a `problem`.
@@ -2856,5 +2856,6 @@ exports.htmlReporter = htmlReporter;
2856
2856
  exports.jsonReporter = jsonReporter;
2857
2857
  exports.logLevel = logLevel;
2858
2858
  exports.memoryStorage = memoryStorage;
2859
+ exports.resolveCacheDir = resolveCacheDir;
2859
2860
 
2860
2861
  //# sourceMappingURL=index.cjs.map
package/dist/index.d.ts CHANGED
@@ -142,6 +142,16 @@ type CacheStorageOptions = {
142
142
  */
143
143
  root?: string;
144
144
  };
145
+ /**
146
+ * Directory Kubb keeps build caches in. A project with a `node_modules` gets
147
+ * `node_modules/.cache/kubb`, the convention babel and eslint already use, so the cache stays out
148
+ * of version control. Without one it falls back to the OS temp directory, keyed by root so two
149
+ * projects sharing that directory keep their own cache.
150
+ *
151
+ * @example Inside a project
152
+ * `resolveCacheDir('/project') // '/project/node_modules/.cache/kubb'`
153
+ */
154
+ export declare function resolveCacheDir(root: string): string;
145
155
  /**
146
156
  * Filesystem storage for build caches rather than generated code. Keys are plain names resolved
147
157
  * inside {@link resolveCacheDir}, so a caller stores `'x.json'` without knowing where the cache
package/dist/index.js CHANGED
@@ -125,7 +125,7 @@ function formatMs(ms) {
125
125
  /**
126
126
  * Docs major version, derived from the package version so the link tracks the published major.
127
127
  */
128
- const docsMajor = "5.3.16".split(".")[0] ?? "5";
128
+ const docsMajor = "5.3.17".split(".")[0] ?? "5";
129
129
  /**
130
130
  * Builds a type guard that narrows a {@link Diagnostic} to the variant for `kind`. A diagnostic
131
131
  * with no `kind` is treated as a `problem`.
@@ -2830,6 +2830,6 @@ const memoryStorage = createStorage(() => {
2830
2830
  };
2831
2831
  });
2832
2832
  //#endregion
2833
- export { Diagnostics, Hookable, KubbDriver, Resolver, applyConfigDefaults, cacheStorage, cliReporter, createAdapter, createCliReporter, createKubb, createRenderer, createReporter, createResolver, createStorage, defineGenerator, defineParser, definePlugin, fileReporter, fsStorage, getInputKind, htmlReporter, jsonReporter, logLevel, memoryStorage };
2833
+ export { Diagnostics, Hookable, KubbDriver, Resolver, applyConfigDefaults, cacheStorage, cliReporter, createAdapter, createCliReporter, createKubb, createRenderer, createReporter, createResolver, createStorage, defineGenerator, defineParser, definePlugin, fileReporter, fsStorage, getInputKind, htmlReporter, jsonReporter, logLevel, memoryStorage, resolveCacheDir };
2834
2834
 
2835
2835
  //# sourceMappingURL=index.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kubb/core",
3
- "version": "5.3.16",
3
+ "version": "5.3.17",
4
4
  "description": "Core engine for Kubb. Provides the plugin driver, file manager and build orchestration used by every Kubb plugin.",
5
5
  "keywords": [
6
6
  "code-generator",
@@ -72,7 +72,7 @@
72
72
  "registry": "https://registry.npmjs.org/"
73
73
  },
74
74
  "dependencies": {
75
- "@kubb/ast": "5.3.16"
75
+ "@kubb/ast": "5.3.17"
76
76
  },
77
77
  "devDependencies": {
78
78
  "@internals/utils": "0.0.1",