Skip to content

Commit cef33dd

Browse files
authored
Remove temp tailwind config file in finally (#5450)
1 parent d6ece85 commit cef33dd

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

.changeset/thirty-bananas-smell.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@astrojs/tailwind': patch
3+
---
4+
5+
Remove temp tailwind config file in finally

packages/integrations/tailwind/src/index.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -47,10 +47,10 @@ async function getUserConfig(root: URL, configPath?: string, isRestart = false)
4747
cwd: resolvedRoot,
4848
filePath: tempConfigPath,
4949
});
50-
50+
} catch (err) {
51+
console.error(err)
52+
} finally {
5153
await fs.unlink(tempConfigPath);
52-
} catch {
53-
/** file already removed */
5454
}
5555

5656
return {

0 commit comments

Comments
 (0)