Skip to content

Commit

Permalink
fix(cli): allow styled-component as dev dependency (#7132)
Browse files Browse the repository at this point in the history
  • Loading branch information
rexxars committed Jul 11, 2024
1 parent d298503 commit ff31556
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,10 @@ export async function checkRequiredDependencies(context: CliCommandContext): Pro
// The studio _must_ now declare `styled-components` as a dependency. If it's not there,
// we'll want to automatically _add it_ to the manifest and tell the user to reinstall
// dependencies before running whatever command was being run
const declaredStyledComponentsVersion = studioPackageManifest.dependencies['styled-components']
const declaredStyledComponentsVersion =
studioPackageManifest.dependencies['styled-components'] ||
studioPackageManifest.devDependencies['styled-components']

if (!declaredStyledComponentsVersion) {
const [file, ...args] = process.argv
const deps = {'styled-components': wantedStyledComponentsVersionRange}
Expand Down

0 comments on commit ff31556

Please sign in to comment.