silgi 0.8.47 → 0.8.48

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.
@@ -1,4 +1,4 @@
1
- const version = "0.8.47";
1
+ const version = "0.8.48";
2
2
  const devDependencies = {
3
3
  "@antfu/eslint-config": "^4.2.0",
4
4
  "@fastify/deepmerge": "^2.0.2",
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).map((key) => ({
174
+ options: Object.keys(cliJson).filter((key) => {
175
+ const scripts2 = cliJson[key];
176
+ const scriptValues = Object.values(scripts2);
177
+ return !scriptValues.some((script) => script.tags?.length);
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,
@@ -1,4 +1,4 @@
1
- const version = "0.8.47";
1
+ const version = "0.8.48";
2
2
  const devDependencies = {
3
3
  "@antfu/eslint-config": "^4.2.0",
4
4
  "@fastify/deepmerge": "^2.0.2",
@@ -1,4 +1,4 @@
1
- const version = "0.8.47";
1
+ const version = "0.8.48";
2
2
  const devDependencies = {
3
3
  "@antfu/eslint-config": "^4.2.0",
4
4
  "@fastify/deepmerge": "^2.0.2",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "silgi",
3
3
  "type": "module",
4
- "version": "0.8.47",
4
+ "version": "0.8.48",
5
5
  "private": false,
6
6
  "sideEffects": false,
7
7
  "exports": {