This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Recursively search for directories named "node_modules" | |
| Get-ChildItem -Recurse -Directory -Filter "node_modules" | ForEach-Object { | |
| # Check if the directory name is exactly "node_modules" | |
| if ($_.Name -eq "node_modules" -and $_.FullName -notmatch "node_modules.*\\node_modules") { | |
| # Output the path of the directory being deleted | |
| Write-Output "Deleting: $($_.FullName)" | |
| # Use the 'rd' command via cmd.exe to delete the directory quietly and efficiently | |
| # /s: Removes all files and subdirectories | |
| # /q: Suppresses confirmation prompts | |
| cmd.exe /c "rd /s /q `"$($_.FullName)`"" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { Effect, FiberRef, HashSet, Layer } from "effect"; | |
| /** | |
| * A Layer that clears all existing `Logger`s. | |
| * | |
| * @example | |
| * import { NodeRuntime } from "@effect/platform-node" | |
| * import { Effect, FiberRef, HashSet, Layer, Logger } from "effect" | |
| * | |
| * const MainLayer = Logger.json.pipe(Layer.provide(ClearAllLoggersLayer)) |
OlderNewer