File tree Expand file tree Collapse file tree
packages/angular/build/src Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -287,7 +287,7 @@ export async function normalizeOptions(
287287 // Skip tailwind configuration if postcss is customized
288288 const tailwindConfiguration = postcssConfiguration
289289 ? undefined
290- : await getTailwindConfig ( searchDirectories , workspaceRoot , context . logger ) ;
290+ : getTailwindConfig ( searchDirectories , workspaceRoot , context . logger ) ;
291291
292292 let serverEntryPoint : string | undefined ;
293293 if ( typeof options . server === 'string' ) {
Original file line number Diff line number Diff line change @@ -126,7 +126,7 @@ export async function normalizeLibraryOptions(
126126 const postcssConfiguration = await loadPostcssConfiguration ( searchDirectories ) ;
127127 const tailwindConfiguration = postcssConfiguration
128128 ? undefined
129- : await getTailwindConfig ( searchDirectories , workspaceRoot , context . logger ) ;
129+ : getTailwindConfig ( searchDirectories , workspaceRoot , context . logger ) ;
130130
131131 return {
132132 workspaceRoot,
Original file line number Diff line number Diff line change @@ -31,8 +31,8 @@ export interface SearchDirectory {
3131 files : Set < string > ;
3232}
3333
34- export async function generateSearchDirectories ( roots : string [ ] ) : Promise < SearchDirectory [ ] > {
35- return await Promise . all (
34+ export function generateSearchDirectories ( roots : string [ ] ) : Promise < SearchDirectory [ ] > {
35+ return Promise . all (
3636 roots . map ( ( root ) =>
3737 readdir ( root , { withFileTypes : true } ) . then ( ( entries ) => ( {
3838 root,
@@ -63,11 +63,11 @@ export function findTailwindConfiguration(
6363 return findFile ( searchDirectories , tailwindConfigFiles ) ;
6464}
6565
66- export async function getTailwindConfig (
66+ export function getTailwindConfig (
6767 searchDirectories : SearchDirectory [ ] ,
6868 workspaceRoot : string ,
6969 logger ?: { warn ( message : string ) : void } ,
70- ) : Promise < { file : string ; package : string } | undefined > {
70+ ) : { file : string ; package : string } | undefined {
7171 const tailwindConfigurationPath = findTailwindConfiguration ( searchDirectories ) ;
7272 if ( ! tailwindConfigurationPath ) {
7373 return undefined ;
You can’t perform that action at this time.
0 commit comments