@kubb/core 0.44.1 → 0.44.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.
package/dist/index.d.ts CHANGED
@@ -50,6 +50,11 @@ type KubbConfig = {
50
50
  * Remove previous generated files and folders.
51
51
  */
52
52
  clean?: boolean;
53
+ /**
54
+ * Write output to the fileSystem
55
+ * @default true
56
+ */
57
+ write?: boolean;
53
58
  };
54
59
  /**
55
60
  * Array of Kubb plugins to use.
@@ -16902,6 +16902,7 @@ var kubb = (function (exports) {
16902
16902
 
16903
16903
  // src/build.ts
16904
16904
  init_define_process();
16905
+ var import_path4 = __toESM(require_path_browserify());
16905
16906
 
16906
16907
  // src/utils/isURL.ts
16907
16908
  init_define_process();
@@ -16917,9 +16918,6 @@ var kubb = (function (exports) {
16917
16918
  return false;
16918
16919
  };
16919
16920
 
16920
- // src/build.ts
16921
- var import_path4 = __toESM(require_path_browserify());
16922
-
16923
16921
  // src/managers/pluginManager/PluginManager.ts
16924
16922
  init_define_process();
16925
16923
 
@@ -17634,7 +17632,9 @@ ${curr.source}`,
17634
17632
  }
17635
17633
  if (code) {
17636
17634
  const transformedCode = await pluginManager.hookReduceArg0("transform", [code, path], transformReducer);
17637
- await pluginManager.hookParallel("writeFile", [transformedCode, path]);
17635
+ if (config.output.write || config.output.write === void 0) {
17636
+ await pluginManager.hookParallel("writeFile", [transformedCode, path]);
17637
+ }
17638
17638
  fileManager.setStatus(id, "success");
17639
17639
  fileManager.remove(id);
17640
17640
  }