Remove temp tailwind config file in finally (#5450)
This commit is contained in:
parent
d6ece859ed
commit
cef33dd841
2 changed files with 8 additions and 3 deletions
5
.changeset/thirty-bananas-smell.md
Normal file
5
.changeset/thirty-bananas-smell.md
Normal file
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
'@astrojs/tailwind': patch
|
||||
---
|
||||
|
||||
Remove temp tailwind config file in finally
|
|
@ -47,10 +47,10 @@ async function getUserConfig(root: URL, configPath?: string, isRestart = false)
|
|||
cwd: resolvedRoot,
|
||||
filePath: tempConfigPath,
|
||||
});
|
||||
|
||||
} catch (err) {
|
||||
console.error(err)
|
||||
} finally {
|
||||
await fs.unlink(tempConfigPath);
|
||||
} catch {
|
||||
/** file already removed */
|
||||
}
|
||||
|
||||
return {
|
||||
|
|
Loading…
Reference in a new issue