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 +1 -8
- package/cli.cjs.map +1 -1
- package/cli.js +1 -8
- package/cli.js.map +1 -1
- package/package.json +1 -1
package/cli.js
CHANGED
|
@@ -4,7 +4,6 @@ import { cloneDeep } from "lodash-es";
|
|
|
4
4
|
import { generateApi as generateApi$1 } from "swagger-typescript-api";
|
|
5
5
|
import { splitTextByLines } from "yummies/text";
|
|
6
6
|
import { Project, SyntaxKind, Node } from "ts-morph";
|
|
7
|
-
const fs = {};
|
|
8
7
|
const LINTERS_IGNORE = `/* eslint-disable */
|
|
9
8
|
/* tslint:disable */`;
|
|
10
9
|
const buildGenerics = (contract) => {
|
|
@@ -1632,7 +1631,6 @@ const generateApi = async (params) => {
|
|
|
1632
1631
|
}
|
|
1633
1632
|
const codegenFs = codegenProcess.fileSystem;
|
|
1634
1633
|
await Promise.resolve(codegenFs.cleanDir(paths.outputDir));
|
|
1635
|
-
await fs.mkdir(paths.outputDir, { recursive: true });
|
|
1636
1634
|
await Promise.resolve(codegenFs.createDir(paths.outputDir));
|
|
1637
1635
|
const filterTypes = unpackFilterOption(
|
|
1638
1636
|
params.filterTypes,
|
|
@@ -1668,12 +1666,7 @@ const generateApi = async (params) => {
|
|
|
1668
1666
|
if (params.groupBy == null) {
|
|
1669
1667
|
collectedExportFilesFromIndexFile.push("endpoints");
|
|
1670
1668
|
if (outputType === "one-endpoint-per-file") {
|
|
1671
|
-
|
|
1672
|
-
recursive: true
|
|
1673
|
-
});
|
|
1674
|
-
await Promise.resolve(
|
|
1675
|
-
codegenFs.createDir(path.resolve(params.output, "endpoints"))
|
|
1676
|
-
);
|
|
1669
|
+
codegenFs.createDir(path.resolve(params.output, "endpoints"));
|
|
1677
1670
|
const fileNamesWithRequestInfo = [];
|
|
1678
1671
|
for await (const route of allRoutes) {
|
|
1679
1672
|
const {
|