Skip to content

Commit

Permalink
🩹 fix(patch): create-bud-app dependencies (#2409)
Browse files Browse the repository at this point in the history
Follow-up: #2404

## Type of change

**PATCH: backwards compatible change**
  • Loading branch information
kellymears committed Aug 15, 2023
1 parent 6cbd959 commit ed0c54e
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions sources/create-bud-app/src/tasks/install.dev.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,11 @@ export default async function installTask(command: CreateCommand) {
const spinner = command.createSpinner()
spinner.start(`Installing development dependencies...`)

if (!command.dependencies?.length) {
return spinner.succeed(`No development dependencies to install.`)
}

try {
const formatSignifier = createSignifierFormatter(command)

const dependencies = new Set([
`@roots/bud`,
...command.support.map(formatSignifier).filter(Boolean),
...command.devDependencies.map(formatSignifier).filter(Boolean),
])
Expand All @@ -26,12 +23,12 @@ export default async function installTask(command: CreateCommand) {
await command.sh(`yarn`, [`add`, ...dependencies, `--dev`])
break
}

spinner.succeed()
} catch (error) {
spinner.fail()
throw error
}

spinner.succeed()
}

function createSignifierFormatter(
Expand Down

0 comments on commit ed0c54e

Please sign in to comment.