silgi 0.3.12 → 0.4.0
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/README.md +1 -31
- package/cli.d.ts +1 -0
- package/config.d.ts +1 -0
- package/core.d.ts +1 -0
- package/dist/_chunks/index.mjs +233 -0
- package/dist/cli/compatibility.mjs +42 -0
- package/dist/cli/index.mjs +3 -178
- package/dist/cli/prepare.mjs +1346 -0
- package/dist/config/index.d.mts +5 -0
- package/dist/config/index.d.ts +5 -0
- package/dist/core/index.d.mts +136 -0
- package/dist/core/index.d.ts +136 -0
- package/dist/core/index.mjs +1444 -0
- package/dist/ecosystem/nitro/index.mjs +21 -10
- package/dist/ecosystem/nuxt/module.mjs +4 -6
- package/dist/kit/index.d.mts +90 -0
- package/dist/kit/index.d.ts +90 -0
- package/dist/kit/index.mjs +316 -0
- package/dist/meta/index.d.mts +3 -0
- package/dist/meta/index.d.ts +3 -0
- package/dist/meta/index.mjs +1 -0
- package/dist/presets/_all.gen.d.ts +2 -0
- package/dist/presets/_all.gen.mjs +8 -0
- package/dist/presets/_resolve.d.ts +8 -0
- package/dist/presets/_resolve.mjs +58 -0
- package/dist/presets/_types.gen.d.ts +5 -0
- package/dist/presets/_types.gen.mjs +1 -0
- package/dist/presets/h3/preset.d.ts +2 -0
- package/dist/presets/h3/preset.mjs +22 -0
- package/dist/presets/index.d.mts +1 -0
- package/dist/presets/index.d.ts +2 -0
- package/dist/presets/index.mjs +1 -0
- package/dist/presets/nitro/preset.d.ts +2 -0
- package/dist/presets/nitro/preset.mjs +26 -0
- package/dist/presets/npmpackage/preset.d.ts +2 -0
- package/dist/presets/npmpackage/preset.mjs +23 -0
- package/dist/runtime/index.d.ts +1 -0
- package/dist/runtime/index.mjs +1 -0
- package/dist/runtime/internal/debug.d.ts +2 -0
- package/dist/runtime/internal/debug.mjs +5 -0
- package/dist/runtime/internal/nitro.d.ts +2 -0
- package/dist/runtime/internal/nitro.mjs +45 -0
- package/dist/runtime/internal/plugin.d.ts +3 -0
- package/dist/runtime/internal/plugin.mjs +4 -0
- package/dist/shared/silgi.40ZJYm8F.d.mts +11 -0
- package/dist/shared/silgi.40ZJYm8F.d.ts +11 -0
- package/dist/shared/{silgi.ClpvycKI.d.mts → silgi.D8h2AAVk.d.ts} +451 -437
- package/dist/shared/{silgi.ClpvycKI.d.ts → silgi.DSHNePNA.d.mts} +451 -437
- package/dist/types/index.d.mts +42 -0
- package/dist/types/index.d.ts +42 -0
- package/dist/types/index.mjs +1 -0
- package/kit.d.ts +1 -0
- package/meta.d.ts +1 -0
- package/package.json +89 -39
- package/presets.d.ts +1 -0
- package/runtime-meta.d.ts +4 -0
- package/runtime-meta.mjs +32 -0
- package/runtime.d.ts +1 -0
- package/types.d.ts +1 -0
- package/bin/silgi.mjs +0 -3
- package/dist/chunks/generate.mjs +0 -1258
- package/dist/cli/config.d.mts +0 -1633
- package/dist/cli/config.d.ts +0 -1633
- package/dist/index.d.mts +0 -196
- package/dist/index.d.ts +0 -196
- package/dist/index.mjs +0 -499
- package/dist/shared/silgi.b9yhSIGd.mjs +0 -459
- package/dist/shared/silgi.mBwNj1W0.mjs +0 -386
- /package/dist/{chunks → cli}/init.mjs +0 -0
- /package/dist/{cli/config.mjs → config/index.mjs} +0 -0
package/README.md
CHANGED
|
@@ -1,31 +1 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
Silgi, TypeScript tabanlı servis tanımlama ve yönetimi için geliştirilmiş güçlü bir framework'tür. Mikroservis mimarisi için tasarlanmış olup, type-safe servis tanımlamaları, plugin sistemi ve cache yönetimi gibi özellikleri içerir.
|
|
4
|
-
|
|
5
|
-
## Özellikler
|
|
6
|
-
|
|
7
|
-
- **Type-Safe Servis Tanımlamaları**: TypeScript ile tam entegre, end-to-end type güvenliği
|
|
8
|
-
- **Plugin Sistemi**: Servisleri ve methodları genişletmek için esnek plugin sistemi
|
|
9
|
-
- **Cache Yönetimi**: Built-in cache sistemi ile method sonuçlarını önbellekleme
|
|
10
|
-
- **Hook Sistemi**: Servis yaşam döngüsünü yönetmek için hook'lar
|
|
11
|
-
- **OpenAPI Entegrasyonu**: Otomatik API dokümantasyonu oluşturma
|
|
12
|
-
- **Validation**: Giriş ve çıkış verilerinin validasyonu
|
|
13
|
-
|
|
14
|
-
<!-- H3 -->
|
|
15
|
-
checks.........................: 100.00% 1991978 out of 1991978
|
|
16
|
-
data_received..................: 205 MB 5.9 MB/s
|
|
17
|
-
data_sent......................: 167 MB 4.8 MB/s
|
|
18
|
-
http_req_blocked...............: avg=1.53µs min=0s med=1µs max=12.96ms p(90)=2µs p(95)=3µs
|
|
19
|
-
http_req_connecting............: avg=15ns min=0s med=0s max=1.37ms p(90)=0s p(95)=0s
|
|
20
|
-
✓ http_req_duration..............: avg=1.58ms min=29µs med=1.44ms max=90.54ms p(90)=2.52ms p(95)=3.06ms
|
|
21
|
-
{ expected_response:true }...: avg=1.58ms min=29µs med=1.44ms max=90.54ms p(90)=2.52ms p(95)=3.06ms
|
|
22
|
-
http_req_failed................: 0.00% 0 out of 1991978
|
|
23
|
-
http_req_receiving.............: avg=16.9µs min=3µs med=6µs max=74.06ms p(90)=18µs p(95)=30µs
|
|
24
|
-
http_req_sending...............: avg=5.5µs min=1µs med=2µs max=21.54ms p(90)=6µs p(95)=8µs
|
|
25
|
-
http_req_tls_handshaking.......: avg=0s min=0s med=0s max=0s p(90)=0s p(95)=0s
|
|
26
|
-
http_req_waiting...............: avg=1.56ms min=21µs med=1.42ms max=90.51ms p(90)=2.5ms p(95)=3.03ms
|
|
27
|
-
http_reqs......................: 1991978 56910.593727/s
|
|
28
|
-
iteration_duration.............: avg=1.62ms min=43.29µs med=1.47ms max=129.1ms p(90)=2.57ms p(95)=3.11ms
|
|
29
|
-
iterations.....................: 1991978 56910.593727/s
|
|
30
|
-
vus............................: 100 min=20 max=100
|
|
31
|
-
vus_max........................: 100 min=100 max=100
|
|
1
|
+
v0.0.0
|
package/cli.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './dist/cli/index';
|
package/config.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './dist/config/index';
|
package/core.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './dist/core/index';
|
|
@@ -0,0 +1,233 @@
|
|
|
1
|
+
const name = "silgi";
|
|
2
|
+
const type = "module";
|
|
3
|
+
const version = "0.4.0";
|
|
4
|
+
const packageManager = "pnpm@9.15.1";
|
|
5
|
+
const sideEffects = false;
|
|
6
|
+
const exports = {
|
|
7
|
+
"./cli": {
|
|
8
|
+
types: "./cli.d.ts",
|
|
9
|
+
"import": "./dist/cli/index.mjs"
|
|
10
|
+
},
|
|
11
|
+
"./config": {
|
|
12
|
+
types: "./config.d.ts",
|
|
13
|
+
"import": "./dist/config/index.mjs"
|
|
14
|
+
},
|
|
15
|
+
".": {
|
|
16
|
+
types: "./dist/core/index.d.ts",
|
|
17
|
+
"import": "./dist/core/index.mjs"
|
|
18
|
+
},
|
|
19
|
+
"./ecosystem/nitro": {
|
|
20
|
+
types: "./dist/ecosystem/nitro/index.d.ts",
|
|
21
|
+
"import": "./dist/ecosystem/nitro/index.mjs"
|
|
22
|
+
},
|
|
23
|
+
"./ecosystem/nitro/runtime/*": {
|
|
24
|
+
types: "./dist/ecosystem/nitro/runtime/*.d.ts",
|
|
25
|
+
"import": "./dist/ecosystem/nitro/runtime/*.mjs"
|
|
26
|
+
},
|
|
27
|
+
"./ecosystem/nuxt/runtime/*": {
|
|
28
|
+
silgi: "./dist/ecosystem/nuxt/runtime/**/*.ts",
|
|
29
|
+
silgiTypes: "./dist/ecosystem/nuxt/runtime/**/*.ts",
|
|
30
|
+
types: "./dist/ecosystem/nuxt/runtime/*.d.ts",
|
|
31
|
+
"import": "./dist/ecosystem/nuxt/runtime/*.mjs"
|
|
32
|
+
},
|
|
33
|
+
"./nuxt": {
|
|
34
|
+
types: "./dist/ecosystem/nuxt/module.d.ts",
|
|
35
|
+
"import": "./dist/ecosystem/nuxt/module.mjs"
|
|
36
|
+
},
|
|
37
|
+
"./meta": {
|
|
38
|
+
types: "./dist/meta/index.d.ts",
|
|
39
|
+
"import": "./dist/meta/index.mjs"
|
|
40
|
+
},
|
|
41
|
+
"./types": {
|
|
42
|
+
types: "./types.d.ts",
|
|
43
|
+
"import": "./dist/types/index.mjs"
|
|
44
|
+
},
|
|
45
|
+
"./kit": {
|
|
46
|
+
types: "./kit.d.ts",
|
|
47
|
+
"import": "./dist/kit/index.mjs"
|
|
48
|
+
},
|
|
49
|
+
"./core": {
|
|
50
|
+
types: "./core.d.ts",
|
|
51
|
+
"import": "./dist/core/index.mjs"
|
|
52
|
+
},
|
|
53
|
+
"./presets": {
|
|
54
|
+
types: "./presets.d.ts",
|
|
55
|
+
"import": "./dist/presets/index.mjs"
|
|
56
|
+
},
|
|
57
|
+
"./runtime": {
|
|
58
|
+
silgi: "./dist/runtime/*.ts",
|
|
59
|
+
silgiTypes: "./dist/runtime/*.ts",
|
|
60
|
+
types: "./runtime.d.ts",
|
|
61
|
+
"import": "./dist/runtime/index.mjs"
|
|
62
|
+
},
|
|
63
|
+
"./runtime/meta": {
|
|
64
|
+
types: "./runtime-meta.d.ts",
|
|
65
|
+
"import": "./runtime-meta.mjs"
|
|
66
|
+
},
|
|
67
|
+
"./runtime/*": {
|
|
68
|
+
silgi: "./dist/runtime/*.ts",
|
|
69
|
+
silgiTypes: "./dist/runtime/*.ts",
|
|
70
|
+
types: "./dist/runtime/*.d.ts",
|
|
71
|
+
"import": "./dist/runtime/*.mjs"
|
|
72
|
+
},
|
|
73
|
+
"./dist/runtime/*": {
|
|
74
|
+
silgi: "./dist/runtime/*.ts",
|
|
75
|
+
silgiTypes: "./dist/runtime/*.ts",
|
|
76
|
+
types: "./dist/runtime/*.d.ts",
|
|
77
|
+
"import": "./dist/runtime/*.mjs"
|
|
78
|
+
},
|
|
79
|
+
"./package.json": "./package.json"
|
|
80
|
+
};
|
|
81
|
+
const main = "./dist/core/index.mjs";
|
|
82
|
+
const types = "./dist/core/index.d.ts";
|
|
83
|
+
const bin = {
|
|
84
|
+
silgi: "./dist/cli/index.mjs"
|
|
85
|
+
};
|
|
86
|
+
const files = [
|
|
87
|
+
"*.d.ts",
|
|
88
|
+
"bin",
|
|
89
|
+
"dist",
|
|
90
|
+
"package.json",
|
|
91
|
+
"runtime-meta.*"
|
|
92
|
+
];
|
|
93
|
+
const scripts = {
|
|
94
|
+
build: "pnpm gen-presets && pnpm build:package && pnpm --filter './modules/*' generate && pnpm build:module",
|
|
95
|
+
"build:prepare": "pnpm gen-presets && pnpm build:package && pnpm --filter './modules/*' generate && pnpm build:prepare",
|
|
96
|
+
"build:package": "unbuild",
|
|
97
|
+
"build:module": "pnpm --filter '@silgi/*' build",
|
|
98
|
+
"build:stub": "pnpm gen-presets && unbuild --stub && pnpm --filter './modules/*' build:stub && pnpm --filter './module-builder' build:stub",
|
|
99
|
+
"dev:k6": "k6 run ./__tests__/k6.js",
|
|
100
|
+
test: "vitest",
|
|
101
|
+
"test:coverage": "vitest run --coverage",
|
|
102
|
+
lint: "eslint .",
|
|
103
|
+
"lint:fix": "eslint . --fix",
|
|
104
|
+
silgi: "tsx cli/index.ts",
|
|
105
|
+
pb: "pnpm unbuild && pnpm publish --no-git-checks --access public",
|
|
106
|
+
generate: "pnpm --filter './playground/*' silgi:prepare && pnpm --filter './modules/*' silgi:prepare && pnpm --filter './ecosystem/*' silgi:prepare && pnpm --filter './examples/**' silgi:prepare",
|
|
107
|
+
"gen-presets": "pnpm jiti scripts/gen-presets.ts"
|
|
108
|
+
};
|
|
109
|
+
const peerDependencies = {
|
|
110
|
+
"@nuxt/kit": "^3.15.3",
|
|
111
|
+
h3: "^1.14.0",
|
|
112
|
+
nitropack: "^2.10.4",
|
|
113
|
+
nuxt: "^3.15.3",
|
|
114
|
+
typescript: "^5.7.3",
|
|
115
|
+
vue: "^3.5.13",
|
|
116
|
+
zod: "^3.24.1"
|
|
117
|
+
};
|
|
118
|
+
const peerDependenciesMeta = {
|
|
119
|
+
"@nuxt/kit": {
|
|
120
|
+
optional: true
|
|
121
|
+
},
|
|
122
|
+
h3: {
|
|
123
|
+
optional: true
|
|
124
|
+
},
|
|
125
|
+
nitropack: {
|
|
126
|
+
optional: true
|
|
127
|
+
},
|
|
128
|
+
nuxt: {
|
|
129
|
+
optional: true
|
|
130
|
+
},
|
|
131
|
+
vue: {
|
|
132
|
+
optional: true
|
|
133
|
+
},
|
|
134
|
+
zod: {
|
|
135
|
+
optional: true
|
|
136
|
+
}
|
|
137
|
+
};
|
|
138
|
+
const dependencies = {
|
|
139
|
+
"@antfu/eslint-config": "^3.16.0",
|
|
140
|
+
"@graphql-tools/graphql-file-loader": "^8.0.12",
|
|
141
|
+
"@graphql-tools/load": "^8.0.12",
|
|
142
|
+
"@graphql-tools/schema": "^10.0.16",
|
|
143
|
+
"@graphql-tools/utils": "^10.7.2",
|
|
144
|
+
"@nuxt/schema": "^3.15.2",
|
|
145
|
+
"@oxc-parser/wasm": "^0.48.0",
|
|
146
|
+
"@standard-schema/spec": "^1.0.0",
|
|
147
|
+
c12: "^2.0.1",
|
|
148
|
+
chokidar: "^4.0.3",
|
|
149
|
+
citty: "^0.1.6",
|
|
150
|
+
compatx: "^0.1.8",
|
|
151
|
+
consola: "^3.4.0",
|
|
152
|
+
defu: "^6.1.4",
|
|
153
|
+
"dot-prop": "^9.0.0",
|
|
154
|
+
"escape-string-regexp": "^5.0.0",
|
|
155
|
+
eslint: "^9.18.0",
|
|
156
|
+
esno: "^4.8.0",
|
|
157
|
+
globby: "^14.0.2",
|
|
158
|
+
graphql: "^16.10.0",
|
|
159
|
+
hookable: "^5.5.3",
|
|
160
|
+
ignore: "^7.0.3",
|
|
161
|
+
jiti: "^2.4.2",
|
|
162
|
+
klona: "^2.0.6",
|
|
163
|
+
mlly: "^1.7.4",
|
|
164
|
+
ofetch: "^1.4.1",
|
|
165
|
+
ohash: "^1.1.4",
|
|
166
|
+
pathe: "^2.0.2",
|
|
167
|
+
"pkg-types": "^1.3.1",
|
|
168
|
+
scule: "^1.3.0",
|
|
169
|
+
semver: "^7.6.3",
|
|
170
|
+
"std-env": "^3.8.0",
|
|
171
|
+
tsconfck: "^3.1.4",
|
|
172
|
+
typescript: "^5.7.3",
|
|
173
|
+
ufo: "^1.5.4",
|
|
174
|
+
unctx: "^2.4.1",
|
|
175
|
+
unimport: "^4.0.0",
|
|
176
|
+
unstorage: "^1.14.4",
|
|
177
|
+
untyped: "^1.5.2"
|
|
178
|
+
};
|
|
179
|
+
const devDependencies = {
|
|
180
|
+
"@graphql-codegen/core": "^4.0.2",
|
|
181
|
+
"@graphql-codegen/introspection": "^4.0.3",
|
|
182
|
+
"@nuxt/kit": "^3.15.3",
|
|
183
|
+
"@types/node": "^22.10.7",
|
|
184
|
+
"@types/semver": "^7.5.8",
|
|
185
|
+
"@vitest/coverage-v8": "3.0.4",
|
|
186
|
+
"graphql-yoga": "^5.10.11",
|
|
187
|
+
h3: "^1.14.0",
|
|
188
|
+
nitropack: "^2.10.4",
|
|
189
|
+
nuxt: "^3.15.3",
|
|
190
|
+
unbuild: "^3.3.1",
|
|
191
|
+
vitest: "^3.0.3",
|
|
192
|
+
vue: "^3.5.13",
|
|
193
|
+
zod: "^3.24.1"
|
|
194
|
+
};
|
|
195
|
+
const pnpm = {
|
|
196
|
+
patchedDependencies: {
|
|
197
|
+
"nitropack@2.10.4": "patches/nitropack@2.10.4.patch",
|
|
198
|
+
"unbuild@3.3.1": "patches/unbuild@3.3.1.patch"
|
|
199
|
+
}
|
|
200
|
+
};
|
|
201
|
+
const resolutions = {
|
|
202
|
+
"@silgi/module-builder": "link:./module-builder",
|
|
203
|
+
"@silgi/openapi": "link:./modules/openapi",
|
|
204
|
+
"@silgi/permission": "link:./modules/permission",
|
|
205
|
+
"@silgi/scalar": "link:./modules/scalar",
|
|
206
|
+
"@silgi/yoga": "link:./modules/yoga",
|
|
207
|
+
silgi: "link:./"
|
|
208
|
+
};
|
|
209
|
+
const publishConfig = {
|
|
210
|
+
access: "public"
|
|
211
|
+
};
|
|
212
|
+
const packageJson = {
|
|
213
|
+
name: name,
|
|
214
|
+
type: type,
|
|
215
|
+
version: version,
|
|
216
|
+
packageManager: packageManager,
|
|
217
|
+
sideEffects: sideEffects,
|
|
218
|
+
exports: exports,
|
|
219
|
+
main: main,
|
|
220
|
+
types: types,
|
|
221
|
+
bin: bin,
|
|
222
|
+
files: files,
|
|
223
|
+
scripts: scripts,
|
|
224
|
+
peerDependencies: peerDependencies,
|
|
225
|
+
peerDependenciesMeta: peerDependenciesMeta,
|
|
226
|
+
dependencies: dependencies,
|
|
227
|
+
devDependencies: devDependencies,
|
|
228
|
+
pnpm: pnpm,
|
|
229
|
+
resolutions: resolutions,
|
|
230
|
+
publishConfig: publishConfig
|
|
231
|
+
};
|
|
232
|
+
|
|
233
|
+
export { packageJson as p, version as v };
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import satisfies from 'semver/functions/satisfies.js';
|
|
2
|
+
import { version } from 'silgi/meta';
|
|
3
|
+
import { getContext } from 'unctx';
|
|
4
|
+
|
|
5
|
+
const silgiCLICtx = getContext("SilgiCLI");
|
|
6
|
+
function useSilgiCLI() {
|
|
7
|
+
const instance = silgiCLICtx.tryUse();
|
|
8
|
+
if (!instance) {
|
|
9
|
+
throw new Error("Silgi instance is unavailable!");
|
|
10
|
+
}
|
|
11
|
+
return instance;
|
|
12
|
+
}
|
|
13
|
+
function tryUseSilgiCLI() {
|
|
14
|
+
return silgiCLICtx.tryUse();
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
const SEMANTIC_VERSION_RE = /-\d+\.[0-9a-f]+/;
|
|
18
|
+
function normalizeSemanticVersion(version) {
|
|
19
|
+
return version.replace(SEMANTIC_VERSION_RE, "");
|
|
20
|
+
}
|
|
21
|
+
const SILGI_VERSION_RE = /^v/g;
|
|
22
|
+
async function checkSilgiCompatibility(constraints, silgi = useSilgiCLI()) {
|
|
23
|
+
const issues = [];
|
|
24
|
+
if (constraints.silgi) {
|
|
25
|
+
const _silgiVersion = version.replace(SILGI_VERSION_RE, "");
|
|
26
|
+
if (!satisfies(normalizeSemanticVersion(_silgiVersion), constraints.silgi, { includePrerelease: true })) {
|
|
27
|
+
issues.push({
|
|
28
|
+
name: "silgi",
|
|
29
|
+
message: `Silgi version \`${constraints.silgi}\` is required but currently using \`${version}\``
|
|
30
|
+
});
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
await silgi.callHook("kit:compatibility", constraints, issues);
|
|
34
|
+
issues.toString = () => issues.map((issue) => ` - [${issue.name}] ${issue.message}`).join("\n");
|
|
35
|
+
return issues;
|
|
36
|
+
}
|
|
37
|
+
function hasInstalledModule(moduleKey, silgi = useSilgiCLI()) {
|
|
38
|
+
const find = silgi.scanModules.find(({ meta }) => meta.configKey === moduleKey);
|
|
39
|
+
return find?.installed ?? false;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export { checkSilgiCompatibility as c, hasInstalledModule as h, silgiCLICtx as s, tryUseSilgiCLI as t, useSilgiCLI as u };
|
package/dist/cli/index.mjs
CHANGED
|
@@ -1,181 +1,6 @@
|
|
|
1
1
|
import { defineCommand, runMain } from 'citty';
|
|
2
2
|
import consola from 'consola';
|
|
3
|
-
|
|
4
|
-
const name = "silgi";
|
|
5
|
-
const type = "module";
|
|
6
|
-
const version = "0.3.12";
|
|
7
|
-
const packageManager = "pnpm@9.15.1";
|
|
8
|
-
const sideEffects = false;
|
|
9
|
-
const exports = {
|
|
10
|
-
".": {
|
|
11
|
-
"import": {
|
|
12
|
-
types: "./dist/index.d.mts",
|
|
13
|
-
"default": "./dist/index.mjs"
|
|
14
|
-
}
|
|
15
|
-
},
|
|
16
|
-
"./config": {
|
|
17
|
-
types: "./dist/cli/config.d.mts",
|
|
18
|
-
"import": "./dist/cli/config.mjs"
|
|
19
|
-
},
|
|
20
|
-
"./ecosystem/nitro": {
|
|
21
|
-
types: "./dist/ecosystem/nitro/index.d.mts",
|
|
22
|
-
"import": "./dist/ecosystem/nitro/index.mjs"
|
|
23
|
-
},
|
|
24
|
-
"./ecosystem/nitro/runtime/*": {
|
|
25
|
-
types: "./dist/ecosystem/nitro/runtime/*.d.ts",
|
|
26
|
-
"import": "./dist/ecosystem/nitro/runtime/*.mjs"
|
|
27
|
-
},
|
|
28
|
-
"./ecosystem/nuxt/runtime/*": {
|
|
29
|
-
types: "./dist/ecosystem/nuxt/runtime/*.d.ts",
|
|
30
|
-
"import": "./dist/ecosystem/nuxt/runtime/*.mjs"
|
|
31
|
-
},
|
|
32
|
-
"./nuxt": {
|
|
33
|
-
types: "./dist/ecosystem/nuxt/module.d.mts",
|
|
34
|
-
"import": "./dist/ecosystem/nuxt/module.mjs"
|
|
35
|
-
}
|
|
36
|
-
};
|
|
37
|
-
const module = "./dist/index.mjs";
|
|
38
|
-
const types = "./dist/index.d.ts";
|
|
39
|
-
const typesVersions = {
|
|
40
|
-
"*": {
|
|
41
|
-
"*": [
|
|
42
|
-
"./dist/*"
|
|
43
|
-
],
|
|
44
|
-
"modules/*": [
|
|
45
|
-
"./dist/modules/*"
|
|
46
|
-
],
|
|
47
|
-
config: [
|
|
48
|
-
"./dist/cli/config"
|
|
49
|
-
],
|
|
50
|
-
"ecosystem/nuxt/runtime/*": [
|
|
51
|
-
"./dist/ecosystem/nuxt/runtime/*"
|
|
52
|
-
],
|
|
53
|
-
"ecosystem/nitro/runtime/*": [
|
|
54
|
-
"./dist/ecosystem/nitro/runtime/*"
|
|
55
|
-
]
|
|
56
|
-
}
|
|
57
|
-
};
|
|
58
|
-
const bin = {
|
|
59
|
-
silgi: "bin/silgi.mjs"
|
|
60
|
-
};
|
|
61
|
-
const files = [
|
|
62
|
-
"bin",
|
|
63
|
-
"dist",
|
|
64
|
-
"package.json"
|
|
65
|
-
];
|
|
66
|
-
const scripts = {
|
|
67
|
-
build: "pnpm build:package && pnpm --filter ./modules... generate && pnpm build:module",
|
|
68
|
-
"build:package": "unbuild",
|
|
69
|
-
"build:module": "pnpm --filter '@silgi/*' build",
|
|
70
|
-
"build:stub": "unbuild --stub",
|
|
71
|
-
"dev:k6": "k6 run ./__tests__/k6.js",
|
|
72
|
-
test: "vitest",
|
|
73
|
-
"test:coverage": "vitest run --coverage",
|
|
74
|
-
lint: "eslint .",
|
|
75
|
-
"lint:fix": "eslint . --fix",
|
|
76
|
-
silgi: "tsx cli/index.ts",
|
|
77
|
-
pb: "pnpm unbuild && pnpm publish --no-git-checks --access public",
|
|
78
|
-
generate: "pnpm --filter ./playground... generate && pnpm --filter ./modules... generate && pnpm --filter ./ecosystem... generate && pnpm --filter ./examples/** generate"
|
|
79
|
-
};
|
|
80
|
-
const peerDependencies = {
|
|
81
|
-
"@nuxt/kit": "^3.15.3",
|
|
82
|
-
h3: "^1.14.0",
|
|
83
|
-
nitropack: "^2.10.4",
|
|
84
|
-
nuxt: "^3.15.3",
|
|
85
|
-
typescript: "^5.7.3",
|
|
86
|
-
vue: "^3.5.13",
|
|
87
|
-
zod: "^3.24.1"
|
|
88
|
-
};
|
|
89
|
-
const peerDependenciesMeta = {
|
|
90
|
-
"@nuxt/kit": {
|
|
91
|
-
optional: true
|
|
92
|
-
},
|
|
93
|
-
h3: {
|
|
94
|
-
optional: true
|
|
95
|
-
},
|
|
96
|
-
nitropack: {
|
|
97
|
-
optional: true
|
|
98
|
-
},
|
|
99
|
-
nuxt: {
|
|
100
|
-
optional: true
|
|
101
|
-
},
|
|
102
|
-
vue: {
|
|
103
|
-
optional: true
|
|
104
|
-
},
|
|
105
|
-
zod: {
|
|
106
|
-
optional: true
|
|
107
|
-
}
|
|
108
|
-
};
|
|
109
|
-
const dependencies = {
|
|
110
|
-
"@antfu/eslint-config": "^3.16.0",
|
|
111
|
-
"@nuxt/schema": "^3.15.2",
|
|
112
|
-
"@oxc-parser/wasm": "^0.48.0",
|
|
113
|
-
"@standard-schema/spec": "^1.0.0",
|
|
114
|
-
c12: "^2.0.1",
|
|
115
|
-
citty: "^0.1.6",
|
|
116
|
-
consola: "^3.4.0",
|
|
117
|
-
defu: "^6.1.4",
|
|
118
|
-
eslint: "^9.18.0",
|
|
119
|
-
esno: "^4.8.0",
|
|
120
|
-
globby: "^14.0.2",
|
|
121
|
-
hookable: "^5.5.3",
|
|
122
|
-
ignore: "^7.0.3",
|
|
123
|
-
jiti: "^2.4.2",
|
|
124
|
-
klona: "^2.0.6",
|
|
125
|
-
mlly: "^1.7.4",
|
|
126
|
-
ofetch: "^1.4.1",
|
|
127
|
-
pathe: "^2.0.2",
|
|
128
|
-
"pkg-types": "^1.3.1",
|
|
129
|
-
scule: "^1.3.0",
|
|
130
|
-
semver: "^7.6.3",
|
|
131
|
-
"std-env": "^3.8.0",
|
|
132
|
-
tsconfck: "^3.1.4",
|
|
133
|
-
typescript: "^5.7.3",
|
|
134
|
-
ufo: "^1.5.4",
|
|
135
|
-
unctx: "^2.4.1",
|
|
136
|
-
unimport: "^4.0.0",
|
|
137
|
-
unstorage: "^1.14.4",
|
|
138
|
-
untyped: "^1.5.2"
|
|
139
|
-
};
|
|
140
|
-
const devDependencies = {
|
|
141
|
-
"@nuxt/kit": "^3.15.3",
|
|
142
|
-
"@types/node": "^22.10.7",
|
|
143
|
-
"@types/semver": "^7.5.8",
|
|
144
|
-
h3: "^1.14.0",
|
|
145
|
-
nitropack: "^2.10.4",
|
|
146
|
-
nuxt: "^3.15.3",
|
|
147
|
-
unbuild: "^3.3.1",
|
|
148
|
-
vitest: "^3.0.3",
|
|
149
|
-
vue: "^3.5.13",
|
|
150
|
-
zod: "^3.24.1"
|
|
151
|
-
};
|
|
152
|
-
const resolutions = {
|
|
153
|
-
"@silgi/modules": "workspace:*",
|
|
154
|
-
silgi: "workspace:*"
|
|
155
|
-
};
|
|
156
|
-
const publishConfig = {
|
|
157
|
-
access: "public"
|
|
158
|
-
};
|
|
159
|
-
const packageJson = {
|
|
160
|
-
name: name,
|
|
161
|
-
type: type,
|
|
162
|
-
version: version,
|
|
163
|
-
packageManager: packageManager,
|
|
164
|
-
sideEffects: sideEffects,
|
|
165
|
-
exports: exports,
|
|
166
|
-
module: module,
|
|
167
|
-
types: types,
|
|
168
|
-
typesVersions: typesVersions,
|
|
169
|
-
bin: bin,
|
|
170
|
-
files: files,
|
|
171
|
-
scripts: scripts,
|
|
172
|
-
peerDependencies: peerDependencies,
|
|
173
|
-
peerDependenciesMeta: peerDependenciesMeta,
|
|
174
|
-
dependencies: dependencies,
|
|
175
|
-
devDependencies: devDependencies,
|
|
176
|
-
resolutions: resolutions,
|
|
177
|
-
publishConfig: publishConfig
|
|
178
|
-
};
|
|
3
|
+
import { p as packageJson } from '../_chunks/index.mjs';
|
|
179
4
|
|
|
180
5
|
const main = defineCommand({
|
|
181
6
|
meta: {
|
|
@@ -190,8 +15,8 @@ const main = defineCommand({
|
|
|
190
15
|
}
|
|
191
16
|
},
|
|
192
17
|
subCommands: {
|
|
193
|
-
|
|
194
|
-
init: () => import('
|
|
18
|
+
prepare: () => import('./prepare.mjs').then((m) => m.default),
|
|
19
|
+
init: () => import('./init.mjs').then((m) => m.default)
|
|
195
20
|
},
|
|
196
21
|
run({ args }) {
|
|
197
22
|
consola.info("Silgi CLI , --help for more info");
|