@@ -52,7 +52,7 @@ const copyAndResolveCss = async (
5252 jsOutputFile : string
5353) : Promise < string | null > => {
5454 const cssSourcePath = resolveCssPath ( cssImportPath , sourceFile , srcDir ) ;
55- if ( ! cssSourcePath || ! ( await fileExists ( cssSourcePath ) ) ) return null ;
55+ if ( ! cssSourcePath || ! ( await fileExists ( cssSourcePath ) ) ) { return null ; }
5656
5757 const cssRelativeToSrc = path . relative ( srcDir , cssSourcePath ) ;
5858 const cssOutputPath = path . join ( distDir , cssRelativeToSrc ) ;
@@ -111,10 +111,10 @@ export const injectComponentCss = async (
111111 const component = path . basename ( dir ) ;
112112 const cssFile = path . join ( dir , `${ component } .css` ) ;
113113
114- if ( ! ( await fileExists ( cssFile ) ) ) continue ;
114+ if ( ! ( await fileExists ( cssFile ) ) ) { continue ; }
115115
116116 const content = await fs . readFile ( jsFile , 'utf-8' ) ;
117- if ( content . includes ( `${ component } .css` ) ) continue ;
117+ if ( content . includes ( `${ component } .css` ) ) { continue ; }
118118
119119 const importStmt = createImportStatement ( `./${ component } .css` , format ) + '\n' ;
120120 const updated = insertAtTop ( content , importStmt ) ;
@@ -133,7 +133,7 @@ export const injectRegularCssImports = async (
133133 distDir : string ,
134134 format : 'esm' | 'cjs'
135135) : Promise < void > => {
136- if ( trackedImports . length === 0 ) return ;
136+ if ( trackedImports . length === 0 ) { return ; }
137137
138138 const srcDir = path . join ( rootDir , 'src' ) ;
139139
@@ -144,7 +144,7 @@ export const injectRegularCssImports = async (
144144 relativeToSrc . replace ( / \. t s x ? $ / , `.${ format === 'esm' ? 'js' : 'cjs' } ` )
145145 ) ;
146146
147- if ( ! ( await fileExists ( jsOutputFile ) ) ) continue ;
147+ if ( ! ( await fileExists ( jsOutputFile ) ) ) { continue ; }
148148
149149 let content = await fs . readFile ( jsOutputFile , 'utf-8' ) ;
150150
0 commit comments