silgi 0.8.47 → 0.8.49
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/run.mjs +10 -2
- package/dist/meta/index.d.mts +1 -1
- package/dist/meta/index.d.ts +1 -1
- package/package.json +1 -1
package/dist/_chunks/index.mjs
CHANGED
package/dist/cli/run.mjs
CHANGED
|
@@ -171,19 +171,27 @@ const run = defineCommand({
|
|
|
171
171
|
} else {
|
|
172
172
|
const commandName = await p.select({
|
|
173
173
|
message: "Select a command to run",
|
|
174
|
-
options: Object.keys(cliJson).
|
|
174
|
+
options: Object.keys(cliJson).filter((key) => {
|
|
175
|
+
const scripts2 = cliJson[key];
|
|
176
|
+
const scriptValues = Object.values(scripts2);
|
|
177
|
+
return scriptValues;
|
|
178
|
+
}).map((key) => ({
|
|
175
179
|
label: key,
|
|
176
180
|
value: key
|
|
177
181
|
}))
|
|
178
182
|
});
|
|
183
|
+
if (!commandName)
|
|
184
|
+
return;
|
|
179
185
|
const scripts = cliJson[commandName];
|
|
180
186
|
const scriptName = await p.select({
|
|
181
187
|
message: "Select a script to run",
|
|
182
|
-
options: Object.keys(scripts).map((key) => ({
|
|
188
|
+
options: Object.keys(scripts).filter((key) => !scripts[key].tags?.length).map((key) => ({
|
|
183
189
|
label: key,
|
|
184
190
|
value: key
|
|
185
191
|
}))
|
|
186
192
|
});
|
|
193
|
+
if (!scriptName)
|
|
194
|
+
return;
|
|
187
195
|
selectedCommands = [{
|
|
188
196
|
command: commandName,
|
|
189
197
|
script: scriptName,
|
package/dist/meta/index.d.mts
CHANGED
package/dist/meta/index.d.ts
CHANGED