Skip to content

Commit

Permalink
fix(style): resilient when not a string (#887)
Browse files Browse the repository at this point in the history
  • Loading branch information
Haroenv committed Mar 2, 2022
1 parent 08cd9ca commit 6cc8ad7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/formatPkg.ts
Original file line number Diff line number Diff line change
Expand Up @@ -640,7 +640,7 @@ function getModuleTypes(pkg: NicePackageType): ModuleType[] {

function getStyleTypes(pkg: NicePackageType): StyleType[] {
// style not declared - we will detect it later based on file list
if (!pkg.style) {
if (typeof pkg.style !== 'string') {
return [];
}

Expand Down

0 comments on commit 6cc8ad7

Please sign in to comment.