diff --git a/.changeset/thirty-bananas-smell.md b/.changeset/thirty-bananas-smell.md new file mode 100644 index 000000000000..cf420b59642c --- /dev/null +++ b/.changeset/thirty-bananas-smell.md @@ -0,0 +1,5 @@ +--- +'@astrojs/tailwind': patch +--- + +Remove temp tailwind config file in finally diff --git a/packages/integrations/tailwind/src/index.ts b/packages/integrations/tailwind/src/index.ts index fb75e34fee1c..c344416f3487 100644 --- a/packages/integrations/tailwind/src/index.ts +++ b/packages/integrations/tailwind/src/index.ts @@ -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 {