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 incremental build Rollup's TypeScript plugin keeps
Țugui Dragoș2f14c0d04e86
diff --git a/Packages/PeelCore/Sources/PeelCore/Developer/ProjectArtifacts.swift b/Packages/PeelCore/Sources/PeelCore/Developer/ProjectArtifacts.swiftindex 8a594892..63a4db24 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: ".rollup.cache", markers: ["package.json"], tool: "@rollup/plugin-typescript", isGeneric: false,+ source: "https://github.com/rollup/plugins/blob/639f45638234c1c3fabfb13615c78bebaef89ef2/packages/typescript/README.md#L289-L296"+ ),Definition(name: ".rpt2_cache", markers: ["package.json"], tool: "rollup-plugin-typescript2", isGeneric: false,source: "https://github.com/ezolenko/rollup-plugin-typescript2/blob/afaf7140fd640beb6164084a8f27f49e5f9b727e/src/index.ts#L52"diff --git a/Packages/PeelCore/Tests/PeelCoreTests/ProjectArtifactsTests.swift b/Packages/PeelCore/Tests/PeelCoreTests/ProjectArtifactsTests.swiftindex 443ac6a2..0a38cb45 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 offersTheIncrementalBuildRollupsTypeScriptPluginKeeps() async throws {+ let directory = try TemporaryDirectory()+ try directory.file("lib/package.json", bytes: 16)+ try directory.file("lib/.rollup.cache/Users/me/lib/dist/index.js", bytes: 400_000)+ try age(directory.url, days: 60)++ let found = await ProjectArtifacts.scan(roots: [directory.url]).artifacts++ #expect(found.map(\.name) == [".rollup.cache"])+ #expect(found.first?.tool == "@rollup/plugin-typescript")+ #expect(found.first?.isRecommended == true)+ }+@Test func offersTheCacheOlderTypeScriptBuildsForRollupKept() async throws {let directory = try TemporaryDirectory()try directory.file("lib/package.json", bytes: 16)