Skip to content

Commit

Permalink
feat: 🎨 filter unlisted scripts in project listing
Browse files Browse the repository at this point in the history
  • Loading branch information
pelikhan committed Jan 8, 2025
1 parent 236b8bb commit 2e1e443
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/cli/src/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,10 @@ export async function startServer(options: {
const scriptList = async () => {
logVerbose(`project: list scripts`)
const project = await buildProject()
logVerbose(`project: found ${project?.scripts?.length || 0} scripts`)
const scripts = project?.scripts || []
logVerbose(
`project: found ${scripts.filter((s) => !s.unlisted).length} scripts`
)
return <PromptScriptListResponse>{
ok: true,
status: 0,
Expand Down

0 comments on commit 2e1e443

Please sign in to comment.