mobx-tanstack-query-api 0.40.0 → 0.40.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/cli.cjs CHANGED
@@ -7,7 +7,6 @@ const swaggerTypescriptApi = require("swagger-typescript-api");
7
7
  const text = require("yummies/text");
8
8
  const tsMorph = require("ts-morph");
9
9
  var _documentCurrentScript = typeof document !== "undefined" ? document.currentScript : null;
10
- const fs = {};
11
10
  const LINTERS_IGNORE = `/* eslint-disable */
12
11
  /* tslint:disable */`;
13
12
  const buildGenerics = (contract) => {
@@ -1635,7 +1634,6 @@ const generateApi = async (params) => {
1635
1634
  }
1636
1635
  const codegenFs = codegenProcess.fileSystem;
1637
1636
  await Promise.resolve(codegenFs.cleanDir(paths.outputDir));
1638
- await fs.mkdir(paths.outputDir, { recursive: true });
1639
1637
  await Promise.resolve(codegenFs.createDir(paths.outputDir));
1640
1638
  const filterTypes = unpackFilterOption(
1641
1639
  params.filterTypes,
@@ -1671,12 +1669,7 @@ const generateApi = async (params) => {
1671
1669
  if (params.groupBy == null) {
1672
1670
  collectedExportFilesFromIndexFile.push("endpoints");
1673
1671
  if (outputType === "one-endpoint-per-file") {
1674
- await fs.mkdir(path.resolve(paths.outputDir, "endpoints"), {
1675
- recursive: true
1676
- });
1677
- await Promise.resolve(
1678
- codegenFs.createDir(path.resolve(params.output, "endpoints"))
1679
- );
1672
+ codegenFs.createDir(path.resolve(params.output, "endpoints"));
1680
1673
  const fileNamesWithRequestInfo = [];
1681
1674
  for await (const route of allRoutes) {
1682
1675
  const {