Skip to content

Commit

Permalink
Remove temp tailwind config file in finally
Browse files Browse the repository at this point in the history
  • Loading branch information
chenxsan committed Nov 21, 2022
1 parent d6ece85 commit 8be6f9d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
5 changes: 5 additions & 0 deletions .changeset/thirty-bananas-smell.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@astrojs/tailwind': patch
---

Remove temp tailwind config file in finally
6 changes: 3 additions & 3 deletions packages/integrations/tailwind/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 8be6f9d

Please sign in to comment.