silgi 0.9.23 → 0.9.25
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/index.mjs +4 -4
- package/dist/cli/prepare.mjs +19 -0
- package/dist/meta/index.d.mts +4 -4
- package/dist/meta/index.d.ts +4 -4
- package/package.json +6 -6
package/dist/_chunks/index.mjs
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
const version = "0.9.
|
|
1
|
+
const version = "0.9.25";
|
|
2
2
|
const devDependencies = {
|
|
3
3
|
"@antfu/eslint-config": "^4.3.0",
|
|
4
4
|
"@nuxt/kit": "^3.15.4",
|
|
5
5
|
"@nuxt/schema": "^3.15.4",
|
|
6
|
-
"@types/node": "^22.13.
|
|
6
|
+
"@types/node": "^22.13.5",
|
|
7
7
|
"@types/semver": "^7.5.8",
|
|
8
8
|
"@vitest/coverage-v8": "3.0.5",
|
|
9
|
-
eslint: "^9.
|
|
10
|
-
h3: "^1.15.
|
|
9
|
+
eslint: "^9.21.0",
|
|
10
|
+
h3: "^1.15.1",
|
|
11
11
|
nitropack: "^2.10.4",
|
|
12
12
|
nuxt: "^3.15.4",
|
|
13
13
|
typescript: "^5.7.3",
|
package/dist/cli/prepare.mjs
CHANGED
|
@@ -16,6 +16,7 @@ import { s as silgiGenerateType } from './types.mjs';
|
|
|
16
16
|
import { c as commonArgs } from './common.mjs';
|
|
17
17
|
import { createHooks, createDebugger } from 'hookable';
|
|
18
18
|
import { useSilgiCLI, silgiCLICtx } from 'silgi/core';
|
|
19
|
+
import { autoImportTypes } from 'silgi/types';
|
|
19
20
|
import { p as prepareEnv } from './env.mjs';
|
|
20
21
|
import { pascalCase } from 'scule';
|
|
21
22
|
import { h as hasInstalledModule } from './compatibility.mjs';
|
|
@@ -1898,6 +1899,24 @@ async function createSilgiCLI(config = {}, opts = {}) {
|
|
|
1898
1899
|
await installPackages(silgi);
|
|
1899
1900
|
await generateApp(silgi);
|
|
1900
1901
|
if (silgi.options.imports) {
|
|
1902
|
+
silgi.options.imports.dirs ??= [];
|
|
1903
|
+
silgi.options.imports.dirs.push(
|
|
1904
|
+
join(silgi.options.serverDir, "**/*")
|
|
1905
|
+
);
|
|
1906
|
+
silgi.options.imports.presets.push({
|
|
1907
|
+
from: "silgi/types",
|
|
1908
|
+
imports: autoImportTypes.map((type) => type),
|
|
1909
|
+
type: true
|
|
1910
|
+
});
|
|
1911
|
+
silgi.options.imports.presets.push({
|
|
1912
|
+
from: "silgi/types",
|
|
1913
|
+
imports: autoImportTypes.map((type) => type),
|
|
1914
|
+
type: true
|
|
1915
|
+
});
|
|
1916
|
+
silgi.options.imports.presets.push({
|
|
1917
|
+
from: "silgi/runtime/internal/ofetch",
|
|
1918
|
+
imports: ["createSilgiFetch", "silgi$fetch"]
|
|
1919
|
+
});
|
|
1901
1920
|
silgi.unimport = createUnimport(silgi.options.imports);
|
|
1902
1921
|
await silgi.unimport.init();
|
|
1903
1922
|
}
|
package/dist/meta/index.d.mts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
const version = "0.9.
|
|
1
|
+
const version = "0.9.25";
|
|
2
2
|
const devDependencies = {
|
|
3
3
|
"@antfu/eslint-config": "^4.3.0",
|
|
4
4
|
"@nuxt/kit": "^3.15.4",
|
|
5
5
|
"@nuxt/schema": "^3.15.4",
|
|
6
|
-
"@types/node": "^22.13.
|
|
6
|
+
"@types/node": "^22.13.5",
|
|
7
7
|
"@types/semver": "^7.5.8",
|
|
8
8
|
"@vitest/coverage-v8": "3.0.5",
|
|
9
|
-
eslint: "^9.
|
|
10
|
-
h3: "^1.15.
|
|
9
|
+
eslint: "^9.21.0",
|
|
10
|
+
h3: "^1.15.1",
|
|
11
11
|
nitropack: "^2.10.4",
|
|
12
12
|
nuxt: "^3.15.4",
|
|
13
13
|
typescript: "^5.7.3",
|
package/dist/meta/index.d.ts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
const version = "0.9.
|
|
1
|
+
const version = "0.9.25";
|
|
2
2
|
const devDependencies = {
|
|
3
3
|
"@antfu/eslint-config": "^4.3.0",
|
|
4
4
|
"@nuxt/kit": "^3.15.4",
|
|
5
5
|
"@nuxt/schema": "^3.15.4",
|
|
6
|
-
"@types/node": "^22.13.
|
|
6
|
+
"@types/node": "^22.13.5",
|
|
7
7
|
"@types/semver": "^7.5.8",
|
|
8
8
|
"@vitest/coverage-v8": "3.0.5",
|
|
9
|
-
eslint: "^9.
|
|
10
|
-
h3: "^1.15.
|
|
9
|
+
eslint: "^9.21.0",
|
|
10
|
+
h3: "^1.15.1",
|
|
11
11
|
nitropack: "^2.10.4",
|
|
12
12
|
nuxt: "^3.15.4",
|
|
13
13
|
typescript: "^5.7.3",
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "silgi",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.9.
|
|
4
|
+
"version": "0.9.25",
|
|
5
5
|
"private": false,
|
|
6
6
|
"sideEffects": false,
|
|
7
7
|
"exports": {
|
|
@@ -114,7 +114,7 @@
|
|
|
114
114
|
"@fastify/deepmerge": "^2.0.2",
|
|
115
115
|
"@oxc-parser/wasm": "^0.49.0",
|
|
116
116
|
"@standard-schema/spec": "^1.0.0",
|
|
117
|
-
"c12": "^2.0.
|
|
117
|
+
"c12": "^2.0.4",
|
|
118
118
|
"chokidar": "^4.0.3",
|
|
119
119
|
"citty": "^0.1.6",
|
|
120
120
|
"compatx": "^0.1.8",
|
|
@@ -142,18 +142,18 @@
|
|
|
142
142
|
"ufo": "^1.5.4",
|
|
143
143
|
"unctx": "^2.4.1",
|
|
144
144
|
"unimport": "^4.1.2",
|
|
145
|
-
"unstorage": "^1.
|
|
145
|
+
"unstorage": "^1.15.0",
|
|
146
146
|
"untyped": "^1.5.2"
|
|
147
147
|
},
|
|
148
148
|
"devDependencies": {
|
|
149
149
|
"@antfu/eslint-config": "^4.3.0",
|
|
150
150
|
"@nuxt/kit": "^3.15.4",
|
|
151
151
|
"@nuxt/schema": "^3.15.4",
|
|
152
|
-
"@types/node": "^22.13.
|
|
152
|
+
"@types/node": "^22.13.5",
|
|
153
153
|
"@types/semver": "^7.5.8",
|
|
154
154
|
"@vitest/coverage-v8": "3.0.5",
|
|
155
|
-
"eslint": "^9.
|
|
156
|
-
"h3": "^1.15.
|
|
155
|
+
"eslint": "^9.21.0",
|
|
156
|
+
"h3": "^1.15.1",
|
|
157
157
|
"nitropack": "^2.10.4",
|
|
158
158
|
"nuxt": "^3.15.4",
|
|
159
159
|
"typescript": "^5.7.3",
|