silgi 0.0.10 → 0.0.12
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/chunks/generate.mjs +8 -3
- package/dist/cli/index.mjs +4 -4
- package/package.json +5 -5
package/dist/chunks/generate.mjs
CHANGED
|
@@ -68,8 +68,13 @@ async function generateClientGenTS(storage, outputDir) {
|
|
|
68
68
|
}
|
|
69
69
|
`;
|
|
70
70
|
}
|
|
71
|
-
const content =
|
|
72
|
-
|
|
71
|
+
const content = `// THIS FILE IS GENERATED, DO NOT EDIT!
|
|
72
|
+
/* tslint:disable */
|
|
73
|
+
/* eslint-disable */
|
|
74
|
+
/* prettier-ignore */
|
|
75
|
+
/* silgi - productdevbook.com */
|
|
76
|
+
import type { ResultOf, VariablesOf } from 'gql.tada'
|
|
77
|
+
import type { z as Zod } from 'zod'
|
|
73
78
|
${imports.join("\n")}
|
|
74
79
|
|
|
75
80
|
export interface SilgiClientStore {
|
|
@@ -649,7 +654,7 @@ class SchemaManager {
|
|
|
649
654
|
const { exportVariables } = this.parser.parseExports(content, filePath);
|
|
650
655
|
const { serviceName } = extractNamesFromPath(filePath);
|
|
651
656
|
const absoluteFilePath = resolve(this.config.rootDir, filePath);
|
|
652
|
-
let relativePath = makeRelativePath(this.config._silgi.
|
|
657
|
+
let relativePath = makeRelativePath(this.config._silgi.outputDirClientTS, absoluteFilePath);
|
|
653
658
|
relativePath = cleanPath(relativePath, this.config.removeExtensions);
|
|
654
659
|
if (!this.clientSchemas[serviceName]) {
|
|
655
660
|
this.clientSchemas[serviceName] = {
|
package/dist/cli/index.mjs
CHANGED
|
@@ -3,7 +3,7 @@ import consola from 'consola';
|
|
|
3
3
|
|
|
4
4
|
const name = "silgi";
|
|
5
5
|
const type = "module";
|
|
6
|
-
const version = "0.0.
|
|
6
|
+
const version = "0.0.12";
|
|
7
7
|
const exports = {
|
|
8
8
|
".": {
|
|
9
9
|
"import": {
|
|
@@ -59,7 +59,7 @@ const dependencies = {
|
|
|
59
59
|
"@oxc-parser/wasm": "^0.44.0",
|
|
60
60
|
c12: "^2.0.1",
|
|
61
61
|
citty: "^0.1.6",
|
|
62
|
-
consola: "^3.3.
|
|
62
|
+
consola: "^3.3.3",
|
|
63
63
|
defu: "^6.1.4",
|
|
64
64
|
eslint: "^9.17.0",
|
|
65
65
|
h3: "^1.13.0",
|
|
@@ -67,14 +67,14 @@ const dependencies = {
|
|
|
67
67
|
jiti: "^2.4.2",
|
|
68
68
|
mlly: "^1.7.3",
|
|
69
69
|
"openapi3-ts": "^4.4.0",
|
|
70
|
-
pathe: "^
|
|
70
|
+
pathe: "^2.0.0",
|
|
71
71
|
scule: "^1.3.0",
|
|
72
72
|
unctx: "^2.4.1",
|
|
73
73
|
zod: "^3.24.1"
|
|
74
74
|
};
|
|
75
75
|
const devDependencies = {
|
|
76
76
|
silgi: "workspace:*",
|
|
77
|
-
unbuild: "^3.0
|
|
77
|
+
unbuild: "^3.2.0"
|
|
78
78
|
};
|
|
79
79
|
const resolutions = {
|
|
80
80
|
silgi: "workspace:*"
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "silgi",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.12",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": {
|
|
7
7
|
"import": {
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
"@oxc-parser/wasm": "^0.44.0",
|
|
52
52
|
"c12": "^2.0.1",
|
|
53
53
|
"citty": "^0.1.6",
|
|
54
|
-
"consola": "^3.3.
|
|
54
|
+
"consola": "^3.3.3",
|
|
55
55
|
"defu": "^6.1.4",
|
|
56
56
|
"eslint": "^9.17.0",
|
|
57
57
|
"h3": "^1.13.0",
|
|
@@ -59,14 +59,14 @@
|
|
|
59
59
|
"jiti": "^2.4.2",
|
|
60
60
|
"mlly": "^1.7.3",
|
|
61
61
|
"openapi3-ts": "^4.4.0",
|
|
62
|
-
"pathe": "^
|
|
62
|
+
"pathe": "^2.0.0",
|
|
63
63
|
"scule": "^1.3.0",
|
|
64
64
|
"unctx": "^2.4.1",
|
|
65
65
|
"zod": "^3.24.1"
|
|
66
66
|
},
|
|
67
67
|
"devDependencies": {
|
|
68
|
-
"unbuild": "^3.0
|
|
69
|
-
"silgi": "0.0.
|
|
68
|
+
"unbuild": "^3.2.0",
|
|
69
|
+
"silgi": "0.0.12"
|
|
70
70
|
},
|
|
71
71
|
"resolutions": {
|
|
72
72
|
"silgi": "workspace:*"
|