silgi 0.7.58 → 0.8.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/dist/_chunks/index.mjs +1 -1
- package/dist/cli/common.mjs +13 -0
- package/dist/cli/config/index.mjs +2 -1
- package/dist/cli/index.mjs +2 -3
- package/dist/cli/loader.mjs +555 -0
- package/dist/cli/prepare.mjs +23 -16
- package/dist/cli/run.mjs +62 -0
- package/dist/cli/types.mjs +6 -554
- package/dist/kit/index.mjs +4 -4
- package/dist/meta/index.d.mts +1 -1
- package/dist/meta/index.d.ts +1 -1
- package/dist/types/index.d.mts +2 -4
- package/dist/types/index.d.ts +2 -4
- package/package.json +3 -1
package/dist/types/index.d.ts
CHANGED
|
@@ -351,6 +351,7 @@ interface SilgiCLIHooks extends SilgiHooks {
|
|
|
351
351
|
*/
|
|
352
352
|
'app:templatesGenerated': (app: SilgiCLI, templates: ResolvedSilgiTemplate[], options?: GenerateAppOptions) => HookResult;
|
|
353
353
|
'scanFiles:done': (app: SilgiCLI) => HookResult;
|
|
354
|
+
'prepare:commands': (commands: Record<string, Record<string, string>>) => HookResult;
|
|
354
355
|
}
|
|
355
356
|
|
|
356
357
|
/**
|
|
@@ -610,10 +611,6 @@ interface SilgiCLIOptions extends PresetOptions {
|
|
|
610
611
|
imports: UnimportPluginOptions | false;
|
|
611
612
|
watchOptions: ChokidarOptions;
|
|
612
613
|
nodeModulesDirs: string[];
|
|
613
|
-
commands: {
|
|
614
|
-
preview: string;
|
|
615
|
-
deploy: string;
|
|
616
|
-
};
|
|
617
614
|
framework: SilgiFrameworkInfo$1;
|
|
618
615
|
/**
|
|
619
616
|
* More customizable than `ignorePrefix`: all files matching glob patterns specified inside the `ignore` array will be ignored in building.
|
|
@@ -729,6 +726,7 @@ interface SilgiCLIOptions extends PresetOptions {
|
|
|
729
726
|
* ```
|
|
730
727
|
*/
|
|
731
728
|
ignoreOptions: Options;
|
|
729
|
+
commands: Record<string, string>;
|
|
732
730
|
}
|
|
733
731
|
/**
|
|
734
732
|
* Silgi input config (silgi.config)
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "silgi",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.8.0",
|
|
5
5
|
"private": false,
|
|
6
6
|
"sideEffects": false,
|
|
7
7
|
"exports": {
|
|
@@ -109,6 +109,7 @@
|
|
|
109
109
|
}
|
|
110
110
|
},
|
|
111
111
|
"dependencies": {
|
|
112
|
+
"@clack/prompts": "^0.10.0",
|
|
112
113
|
"@oxc-parser/wasm": "^0.49.0",
|
|
113
114
|
"@standard-schema/spec": "^1.0.0",
|
|
114
115
|
"c12": "^2.0.1",
|
|
@@ -129,6 +130,7 @@
|
|
|
129
130
|
"ofetch": "^1.4.1",
|
|
130
131
|
"ohash": "^1.1.4",
|
|
131
132
|
"pathe": "^2.0.2",
|
|
133
|
+
"picocolors": "^1.1.1",
|
|
132
134
|
"pkg-types": "^1.3.1",
|
|
133
135
|
"scule": "^1.3.0",
|
|
134
136
|
"semver": "^7.7.1",
|