fix e2e for sbt.

This commit is contained in:
Florian Meriaux 2022-04-12 11:53:42 +02:00
parent 7df480742f
commit b9d25ecda2
No known key found for this signature in database
GPG key ID: A3F999CB41DB6BE2
66 changed files with 110 additions and 12 deletions

15
dist/cleanup/index.js vendored
View file

@ -61889,10 +61889,21 @@ const supportedPackageManager = [
},
{
id: 'sbt',
path: [path_1.join(os_1.default.homedir(), '.ivy2', 'cache'), path_1.join(os_1.default.homedir(), '.sbt')],
pattern: ['**/*.sbt', '**/project/build.properties', '**/project/**.scala']
path: [
path_1.join(os_1.default.homedir(), '.ivy2', 'cache'),
path_1.join(os_1.default.homedir(), '.sbt'),
getCoursierCachePath()
],
pattern: ['*.sbt', 'project/build.properties', 'project/**.{scala,sbt}']
}
];
function getCoursierCachePath() {
if (os_1.default.type() === 'Linux')
return path_1.join(os_1.default.homedir(), 'AppData', 'Local', 'Coursier', 'Cache');
if (os_1.default.type() === 'Darwin')
return path_1.join(os_1.default.homedir(), 'Library', 'Caches', 'Coursier');
return path_1.join(os_1.default.homedir(), '.cache', 'coursier');
}
function findPackageManager(id) {
const packageManager = supportedPackageManager.find(packageManager => packageManager.id === id);
if (packageManager === undefined) {