Home / Function/ gracefullyRemove() — tailwindcss Function Reference

gracefullyRemove() — tailwindcss Function Reference

Architecture documentation for the gracefullyRemove() function in utils.ts from the tailwindcss codebase.

Entity Profile

Dependency Diagram

graph TD
  dec46249_6b4d_dc36_e8de_2585bc9aac6d["gracefullyRemove()"]
  9ffd1dda_9675_c514_373d_0f4ab4648249["utils.ts"]
  dec46249_6b4d_dc36_e8de_2585bc9aac6d -->|defined in| 9ffd1dda_9675_c514_373d_0f4ab4648249
  f11e3be9_51f8_140b_68b0_f58ddd082595["test()"]
  f11e3be9_51f8_140b_68b0_f58ddd082595 -->|calls| dec46249_6b4d_dc36_e8de_2585bc9aac6d
  style dec46249_6b4d_dc36_e8de_2585bc9aac6d fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

integrations/utils.ts lines 609–616

async function gracefullyRemove(dir: string) {
  // Skip removing the directory in CI because it can stall on Windows
  if (!process.env.CI) {
    await fs.rm(dir, { recursive: true, force: true }).catch((error) => {
      console.log(`Failed to remove ${dir}`, error)
    })
  }
}

Domain

Subdomains

Called By

Frequently Asked Questions

What does gracefullyRemove() do?
gracefullyRemove() is a function in the tailwindcss codebase, defined in integrations/utils.ts.
Where is gracefullyRemove() defined?
gracefullyRemove() is defined in integrations/utils.ts at line 609.
What calls gracefullyRemove()?
gracefullyRemove() is called by 1 function(s): test.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free