Skip to content

Commit 909cfac

Browse files
committed
refactor(@angular-devkit/build-angular): avoid for await...of with promise arrays
The upcoming version of typescript Eslint rules will fail the `await-thenable` rule for cases of for await...of that use promise arrays. This change removes the usage to avoid lint failures during the version update. Ref: https://typescript-eslint.io/rules/await-thenable/#async-iteration-for-awaitof-loops
1 parent 5c72d5a commit 909cfac

File tree

1 file changed

+1
-1
lines changed
  • packages/angular_devkit/build_angular/src/utils

1 file changed

+1
-1
lines changed

packages/angular_devkit/build_angular/src/utils/tailwind.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export async function findTailwindConfigurationFile(
2828
);
2929

3030
// A configuration file can exist in the project or workspace root
31-
for await (const { root, files } of dirEntries) {
31+
for (const { root, files } of await Promise.all(dirEntries)) {
3232
for (const potentialConfig of tailwindConfigFiles) {
3333
if (files.has(potentialConfig)) {
3434
return join(root, potentialConfig);

0 commit comments

Comments
 (0)