silgi 0.8.55 → 0.8.57
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 +6 -6
- package/dist/cli/prepare.mjs +11 -8
- package/dist/meta/index.d.mts +6 -6
- package/dist/meta/index.d.ts +6 -6
- package/dist/types/index.d.mts +1 -0
- package/dist/types/index.d.ts +1 -0
- package/package.json +9 -9
package/dist/_chunks/index.mjs
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
const version = "0.8.
|
|
1
|
+
const version = "0.8.57";
|
|
2
2
|
const devDependencies = {
|
|
3
|
-
"@antfu/eslint-config": "^4.
|
|
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.4",
|
|
7
7
|
"@types/semver": "^7.5.8",
|
|
8
8
|
"@vitest/coverage-v8": "3.0.5",
|
|
9
|
-
eslint: "^9.20.
|
|
9
|
+
eslint: "^9.20.1",
|
|
10
10
|
h3: "^1.15.0",
|
|
11
11
|
nitropack: "^2.10.4",
|
|
12
12
|
nuxt: "^3.15.4",
|
|
13
13
|
typescript: "^5.7.3",
|
|
14
14
|
unbuild: "^3.3.1",
|
|
15
|
-
vitest: "^3.0.
|
|
15
|
+
vitest: "^3.0.6",
|
|
16
16
|
vue: "^3.5.13",
|
|
17
|
-
zod: "^3.24.
|
|
17
|
+
zod: "^3.24.2"
|
|
18
18
|
};
|
|
19
19
|
const packageJson = {
|
|
20
20
|
version: version};
|
package/dist/cli/prepare.mjs
CHANGED
|
@@ -20,7 +20,7 @@ import { useSilgiCLI, silgiCLICtx } from 'silgi/core';
|
|
|
20
20
|
import { pascalCase } from 'scule';
|
|
21
21
|
import { h as hasInstalledModule } from './compatibility.mjs';
|
|
22
22
|
import { pathToFileURL, fileURLToPath } from 'node:url';
|
|
23
|
-
import
|
|
23
|
+
import defu from 'defu';
|
|
24
24
|
import { isRelative, withTrailingSlash } from 'ufo';
|
|
25
25
|
import { globby } from 'globby';
|
|
26
26
|
import ignore from 'ignore';
|
|
@@ -28,7 +28,6 @@ import { parseSync } from '@oxc-parser/wasm';
|
|
|
28
28
|
import { klona } from 'klona';
|
|
29
29
|
import { createStorage, builtinDrivers } from 'unstorage';
|
|
30
30
|
import { l as loadOptions } from './loader.mjs';
|
|
31
|
-
import 'defu';
|
|
32
31
|
import 'semver/functions/satisfies.js';
|
|
33
32
|
import 'c12';
|
|
34
33
|
import 'compatx';
|
|
@@ -661,9 +660,14 @@ async function silgiCoreFile(data, frameworkContext, silgi) {
|
|
|
661
660
|
importItems
|
|
662
661
|
};
|
|
663
662
|
for (const module of silgi.scanModules) {
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
663
|
+
if (module.meta.cliToRuntimeOptionsKeys && module.meta.cliToRuntimeOptionsKeys?.length > 0) {
|
|
664
|
+
for (const key of module.meta.cliToRuntimeOptionsKeys) {
|
|
665
|
+
_data.cliOptions[module.meta.configKey] = {
|
|
666
|
+
..._data.cliOptions[module.meta.configKey],
|
|
667
|
+
[key]: module.options[key]
|
|
668
|
+
};
|
|
669
|
+
}
|
|
670
|
+
}
|
|
667
671
|
}
|
|
668
672
|
await silgi.callHook("prepare:core.ts", _data);
|
|
669
673
|
if (importItems["#silgi/vfs"].import.length === 0) {
|
|
@@ -1010,7 +1014,6 @@ async function installModule(moduleToInstall, silgi = useSilgiCLI(), inlineOptio
|
|
|
1010
1014
|
}
|
|
1011
1015
|
|
|
1012
1016
|
const logger$1 = consola$1;
|
|
1013
|
-
const merged = deepmerge({ all: true });
|
|
1014
1017
|
async function _resolveSilgiModule(mod, silgi) {
|
|
1015
1018
|
let _url;
|
|
1016
1019
|
let buildTimeModuleMeta = {};
|
|
@@ -1066,7 +1069,7 @@ async function _resolveSilgiModule(mod, silgi) {
|
|
|
1066
1069
|
}
|
|
1067
1070
|
const options = await mod.getOptions?.() || {};
|
|
1068
1071
|
if (options) {
|
|
1069
|
-
silgi.options._c12.config[buildTimeModuleMeta.configKey] =
|
|
1072
|
+
silgi.options._c12.config[buildTimeModuleMeta.configKey] = defu(
|
|
1070
1073
|
silgi.options._c12.config[buildTimeModuleMeta.configKey] || {},
|
|
1071
1074
|
options || {}
|
|
1072
1075
|
);
|
|
@@ -1075,7 +1078,7 @@ async function _resolveSilgiModule(mod, silgi) {
|
|
|
1075
1078
|
meta: buildTimeModuleMeta,
|
|
1076
1079
|
entryPath: _url,
|
|
1077
1080
|
installed: false,
|
|
1078
|
-
options
|
|
1081
|
+
options
|
|
1079
1082
|
});
|
|
1080
1083
|
}
|
|
1081
1084
|
}
|
package/dist/meta/index.d.mts
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
const version = "0.8.
|
|
1
|
+
const version = "0.8.57";
|
|
2
2
|
const devDependencies = {
|
|
3
|
-
"@antfu/eslint-config": "^4.
|
|
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.4",
|
|
7
7
|
"@types/semver": "^7.5.8",
|
|
8
8
|
"@vitest/coverage-v8": "3.0.5",
|
|
9
|
-
eslint: "^9.20.
|
|
9
|
+
eslint: "^9.20.1",
|
|
10
10
|
h3: "^1.15.0",
|
|
11
11
|
nitropack: "^2.10.4",
|
|
12
12
|
nuxt: "^3.15.4",
|
|
13
13
|
typescript: "^5.7.3",
|
|
14
14
|
unbuild: "^3.3.1",
|
|
15
|
-
vitest: "^3.0.
|
|
15
|
+
vitest: "^3.0.6",
|
|
16
16
|
vue: "^3.5.13",
|
|
17
|
-
zod: "^3.24.
|
|
17
|
+
zod: "^3.24.2"
|
|
18
18
|
};
|
|
19
19
|
|
|
20
20
|
export { devDependencies, version };
|
package/dist/meta/index.d.ts
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
const version = "0.8.
|
|
1
|
+
const version = "0.8.57";
|
|
2
2
|
const devDependencies = {
|
|
3
|
-
"@antfu/eslint-config": "^4.
|
|
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.4",
|
|
7
7
|
"@types/semver": "^7.5.8",
|
|
8
8
|
"@vitest/coverage-v8": "3.0.5",
|
|
9
|
-
eslint: "^9.20.
|
|
9
|
+
eslint: "^9.20.1",
|
|
10
10
|
h3: "^1.15.0",
|
|
11
11
|
nitropack: "^2.10.4",
|
|
12
12
|
nuxt: "^3.15.4",
|
|
13
13
|
typescript: "^5.7.3",
|
|
14
14
|
unbuild: "^3.3.1",
|
|
15
|
-
vitest: "^3.0.
|
|
15
|
+
vitest: "^3.0.6",
|
|
16
16
|
vue: "^3.5.13",
|
|
17
|
-
zod: "^3.24.
|
|
17
|
+
zod: "^3.24.2"
|
|
18
18
|
};
|
|
19
19
|
|
|
20
20
|
export { devDependencies, version };
|
package/dist/types/index.d.mts
CHANGED
|
@@ -469,6 +469,7 @@ interface ModuleMeta {
|
|
|
469
469
|
* @private
|
|
470
470
|
*/
|
|
471
471
|
_packageName?: string;
|
|
472
|
+
cliToRuntimeOptionsKeys?: string[];
|
|
472
473
|
readonly afterDependencies?: ReadonlyArray<string>;
|
|
473
474
|
readonly beforeDependencies?: ReadonlyArray<string>;
|
|
474
475
|
readonly requiredDependencies?: ReadonlyArray<string>;
|
package/dist/types/index.d.ts
CHANGED
|
@@ -469,6 +469,7 @@ interface ModuleMeta {
|
|
|
469
469
|
* @private
|
|
470
470
|
*/
|
|
471
471
|
_packageName?: string;
|
|
472
|
+
cliToRuntimeOptionsKeys?: string[];
|
|
472
473
|
readonly afterDependencies?: ReadonlyArray<string>;
|
|
473
474
|
readonly beforeDependencies?: ReadonlyArray<string>;
|
|
474
475
|
readonly requiredDependencies?: ReadonlyArray<string>;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "silgi",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.8.
|
|
4
|
+
"version": "0.8.57",
|
|
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.2",
|
|
118
118
|
"chokidar": "^4.0.3",
|
|
119
119
|
"citty": "^0.1.6",
|
|
120
120
|
"compatx": "^0.1.8",
|
|
@@ -132,7 +132,7 @@
|
|
|
132
132
|
"mlly": "^1.7.4",
|
|
133
133
|
"ofetch": "^1.4.1",
|
|
134
134
|
"ohash": "^1.1.4",
|
|
135
|
-
"pathe": "^2.0.
|
|
135
|
+
"pathe": "^2.0.3",
|
|
136
136
|
"picocolors": "^1.1.1",
|
|
137
137
|
"pkg-types": "^1.3.1",
|
|
138
138
|
"scule": "^1.3.0",
|
|
@@ -140,26 +140,26 @@
|
|
|
140
140
|
"std-env": "^3.8.0",
|
|
141
141
|
"ufo": "^1.5.4",
|
|
142
142
|
"unctx": "^2.4.1",
|
|
143
|
-
"unimport": "^4.1.
|
|
143
|
+
"unimport": "^4.1.2",
|
|
144
144
|
"unstorage": "^1.14.4",
|
|
145
145
|
"untyped": "^1.5.2"
|
|
146
146
|
},
|
|
147
147
|
"devDependencies": {
|
|
148
|
-
"@antfu/eslint-config": "^4.
|
|
148
|
+
"@antfu/eslint-config": "^4.3.0",
|
|
149
149
|
"@nuxt/kit": "^3.15.4",
|
|
150
150
|
"@nuxt/schema": "^3.15.4",
|
|
151
|
-
"@types/node": "^22.13.
|
|
151
|
+
"@types/node": "^22.13.4",
|
|
152
152
|
"@types/semver": "^7.5.8",
|
|
153
153
|
"@vitest/coverage-v8": "3.0.5",
|
|
154
|
-
"eslint": "^9.20.
|
|
154
|
+
"eslint": "^9.20.1",
|
|
155
155
|
"h3": "^1.15.0",
|
|
156
156
|
"nitropack": "^2.10.4",
|
|
157
157
|
"nuxt": "^3.15.4",
|
|
158
158
|
"typescript": "^5.7.3",
|
|
159
159
|
"unbuild": "^3.3.1",
|
|
160
|
-
"vitest": "^3.0.
|
|
160
|
+
"vitest": "^3.0.6",
|
|
161
161
|
"vue": "^3.5.13",
|
|
162
|
-
"zod": "^3.24.
|
|
162
|
+
"zod": "^3.24.2"
|
|
163
163
|
},
|
|
164
164
|
"resolutions": {
|
|
165
165
|
"silgi": "link:."
|