Uninstall Mac apps with every file they leave behind, and see why each belongs. Free up space, fine-tune macOS, and set up Terminal.
Swift cache-cleanercleanerclideveloper-toolsdisk-cleanupdisk-spaceduplicate-finderhomebrewliquid-glassmac-cleanermacosmacos-appmacos-golden-gatemacos-tahoemacos-tweaksswiftswiftuiterminal-themesuninstalluninstaller
Offer the cache SWC keeps for its plugins in Build Artifacts
Țugui Dragoș2e53258b9d12
diff --git a/Packages/PeelCore/Sources/PeelCore/Developer/ProjectArtifacts.swift b/Packages/PeelCore/Sources/PeelCore/Developer/ProjectArtifacts.swiftindex 3331f68e..e4b759ef 100644--- a/Packages/PeelCore/Sources/PeelCore/Developer/ProjectArtifacts.swift+++ b/Packages/PeelCore/Sources/PeelCore/Developer/ProjectArtifacts.swift@@ -204,6 +204,10 @@ public enum ProjectArtifacts {name: ".turbo", markers: ["turbo.json"], tool: "Turborepo", isGeneric: false,source: "https://turborepo.dev/docs/crafting-your-repository/caching"),+ Definition(+ name: ".swc", markers: ["package.json", ".swcrc"], tool: "SWC", isGeneric: false,+ source: "https://github.com/swc-project/website/blob/81b00b1c8cc95477b64efd7f3f7a366a787757bd/apps/website/docs/docs/configuration/compilation.mdx#L671-L675"+ ),Definition(name: ".react-router", markers: ["package.json"] + reactRouterConfigFiles, tool: "React Router",isGeneric: false,diff --git a/Packages/PeelCore/Tests/PeelCoreTests/ProjectArtifactsTests.swift b/Packages/PeelCore/Tests/PeelCoreTests/ProjectArtifactsTests.swiftindex 3078f524..1deb0b80 100644--- a/Packages/PeelCore/Tests/PeelCoreTests/ProjectArtifactsTests.swift+++ b/Packages/PeelCore/Tests/PeelCoreTests/ProjectArtifactsTests.swift@@ -416,6 +416,19 @@ struct ProjectArtifactsTests {#expect(found.first?.isRecommended == true)}+ @Test func offersTheCacheSWCKeepsForItsPlugins() async throws {+ let directory = try TemporaryDirectory()+ try directory.file("web/.swcrc", bytes: 16)+ try directory.file("web/.swc/plugins/v7_macos_aarch64_0.106.0/plugin.wasm", bytes: 400_000)+ try age(directory.url, days: 60)++ let found = await ProjectArtifacts.scan(roots: [directory.url]).artifacts++ #expect(found.map(\.name) == [".swc"])+ #expect(found.first?.tool == "SWC")+ #expect(found.first?.isRecommended == true)+ }+@Test func offersTheTypesReactRouterGenerates() async throws {let directory = try TemporaryDirectory()try directory.file("web/package.json", bytes: 16)