@tuyau/core 0.2.2 → 0.2.3
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.
|
@@ -215,7 +215,7 @@ var ApiTypesGenerator = class {
|
|
|
215
215
|
if (!file) throw new Error("Unable to create the api.ts file");
|
|
216
216
|
const isTuyauInertiaInstalled = await this.#isTuyauInertiaInstalled();
|
|
217
217
|
file.removeText().insertText(0, (writer) => {
|
|
218
|
-
writer.writeLine(`import type { MakeTuyauRequest, MakeTuyauResponse } from '@tuyau/utils/types'`).writeLine(`import type { InferInput } from '@vinejs/vine/types'`).newLine();
|
|
218
|
+
writer.writeLine(`/* eslint-disable */`).writeLine("// --------------------------------------------------").writeLine("// This file is auto-generated by Tuyau. Do not edit manually !").writeLine("// --------------------------------------------------").writeLine("").writeLine(`import type { MakeTuyauRequest, MakeTuyauResponse } from '@tuyau/utils/types'`).writeLine(`import type { InferInput } from '@vinejs/vine/types'`).newLine();
|
|
219
219
|
Object.entries(options.typesByPattern).forEach(([key, value]) => {
|
|
220
220
|
writer.writeLine(`type ${key} = {`);
|
|
221
221
|
writer.writeLine(` request: ${value.request}`);
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tuyau/core",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.2.
|
|
4
|
+
"version": "0.2.3",
|
|
5
5
|
"description": "",
|
|
6
6
|
"author": "",
|
|
7
7
|
"license": "MIT",
|
|
@@ -23,17 +23,16 @@
|
|
|
23
23
|
"@adonisjs/core": "^6.2.0"
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"ts-morph": "^23.0.0"
|
|
26
|
+
"ts-morph": "^23.0.0",
|
|
27
|
+
"@tuyau/utils": "0.0.6"
|
|
27
28
|
},
|
|
28
29
|
"devDependencies": {
|
|
29
30
|
"@adonisjs/assembler": "^7.8.2",
|
|
30
|
-
"@adonisjs/core": "^6.
|
|
31
|
-
"@julr/tooling-configs": "^2.2.0",
|
|
31
|
+
"@adonisjs/core": "^6.16.0",
|
|
32
32
|
"@poppinss/cliui": "^6.4.1",
|
|
33
33
|
"@poppinss/matchit": "^3.1.2",
|
|
34
|
-
"@types/node": "^
|
|
35
|
-
"@tuyau/client": "0.2.
|
|
36
|
-
"@tuyau/utils": "0.0.5"
|
|
34
|
+
"@types/node": "^22.10.1",
|
|
35
|
+
"@tuyau/client": "0.2.2"
|
|
37
36
|
},
|
|
38
37
|
"publishConfig": {
|
|
39
38
|
"access": "public",
|