@kubb/plugin-react-query 5.10.0 → 5.10.1

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
@@ -37,7 +37,7 @@ var compatibility = {
37
37
  "node": ">=22.22"
38
38
  };
39
39
  // package.json
40
- var version = "5.10.0";
40
+ var version = "5.10.1";
41
41
  // ../../internals/client/src/resolveClient.ts
42
42
  /**
43
43
  * Resolves which client plugin a consumer (react-query, vue-query, swr, mcp) should call for an
@@ -1574,6 +1574,13 @@ const customHookOptionsFileGenerator = (0, _kubb_kit.defineGenerator)({
1574
1574
  const relativeToOutput = node_path.default.relative(outputDir, file.path);
1575
1575
  if (relativeToOutput === ".." || relativeToOutput.startsWith(`..${node_path.default.sep}`) || node_path.default.isAbsolute(relativeToOutput)) return null;
1576
1576
  if (node_fs.default.existsSync(file.path)) return null;
1577
+ const hookOptionsPath = resolver.file({
1578
+ name: hookOptionsName,
1579
+ extname: ".ts",
1580
+ root,
1581
+ output,
1582
+ group: group ?? void 0
1583
+ }).path.replace(/[^/\\]+\.ts$/, `${hookOptionsName}.ts`);
1577
1584
  return /* @__PURE__ */ (0, _kubb_renderer_jsx_jsx_runtime.jsxs)(_kubb_renderer_jsx.File, {
1578
1585
  baseName: file.baseName,
1579
1586
  path: file.path,
@@ -1590,7 +1597,8 @@ const customHookOptionsFileGenerator = (0, _kubb_kit.defineGenerator)({
1590
1597
  /* @__PURE__ */ (0, _kubb_renderer_jsx_jsx_runtime.jsx)(_kubb_renderer_jsx.File.Import, {
1591
1598
  name: [hookOptionsName],
1592
1599
  root: file.path,
1593
- path: node_path.default.resolve(root, "./index.ts")
1600
+ path: hookOptionsPath,
1601
+ isTypeOnly: true
1594
1602
  }),
1595
1603
  /* @__PURE__ */ (0, _kubb_renderer_jsx_jsx_runtime.jsxs)(_kubb_renderer_jsx.File.Source, {
1596
1604
  name,