@yarnpkg/plugin-essentials 4.2.2 → 4.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/commands/cache/clean.js +2 -0
- package/lib/commands/install.js +1 -1
- package/package.json +10 -10
|
@@ -17,6 +17,8 @@ class CacheCleanCommand extends cli_1.BaseCommand {
|
|
|
17
17
|
}
|
|
18
18
|
async execute() {
|
|
19
19
|
const configuration = await core_1.Configuration.find(this.context.cwd, this.context.plugins);
|
|
20
|
+
if (!configuration.get(`enableCacheClean`))
|
|
21
|
+
throw new clipanion_1.UsageError(`Cache cleaning is currently disabled. To enable it, set \`enableCacheClean: true\` in your configuration file. Note: Cache cleaning is typically not required and should be avoided when using Zero-Installs.`);
|
|
20
22
|
const cache = await core_1.Cache.find(configuration);
|
|
21
23
|
const report = await core_1.StreamReport.start({
|
|
22
24
|
configuration,
|
package/lib/commands/install.js
CHANGED
|
@@ -390,7 +390,7 @@ async function autofixMergeConflicts(configuration, immutable) {
|
|
|
390
390
|
if (key === `__metadata`)
|
|
391
391
|
continue;
|
|
392
392
|
const checksum = variant[key].checksum;
|
|
393
|
-
if (typeof checksum === `
|
|
393
|
+
if (typeof checksum === `undefined` || checksum.includes(`/`))
|
|
394
394
|
continue;
|
|
395
395
|
variant[key].checksum = `${variant.__metadata.cacheKey}/${checksum}`;
|
|
396
396
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yarnpkg/plugin-essentials",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.3.1",
|
|
4
4
|
"license": "BSD-2-Clause",
|
|
5
5
|
"main": "./lib/index.js",
|
|
6
6
|
"exports": {
|
|
@@ -8,8 +8,8 @@
|
|
|
8
8
|
"./package.json": "./package.json"
|
|
9
9
|
},
|
|
10
10
|
"dependencies": {
|
|
11
|
-
"@yarnpkg/fslib": "^3.1.
|
|
12
|
-
"@yarnpkg/parsers": "^3.0.
|
|
11
|
+
"@yarnpkg/fslib": "^3.1.2",
|
|
12
|
+
"@yarnpkg/parsers": "^3.0.3",
|
|
13
13
|
"ci-info": "^4.0.0",
|
|
14
14
|
"clipanion": "^4.0.0-rc.2",
|
|
15
15
|
"enquirer": "^2.3.6",
|
|
@@ -20,21 +20,21 @@
|
|
|
20
20
|
"typanion": "^3.14.0"
|
|
21
21
|
},
|
|
22
22
|
"peerDependencies": {
|
|
23
|
-
"@yarnpkg/cli": "^4.
|
|
24
|
-
"@yarnpkg/core": "^4.1
|
|
25
|
-
"@yarnpkg/plugin-git": "^3.1.
|
|
23
|
+
"@yarnpkg/cli": "^4.7.0",
|
|
24
|
+
"@yarnpkg/core": "^4.2.1",
|
|
25
|
+
"@yarnpkg/plugin-git": "^3.1.1"
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|
|
28
28
|
"@types/lodash": "^4.14.136",
|
|
29
29
|
"@types/micromatch": "^4.0.1",
|
|
30
30
|
"@types/semver": "^7.1.0",
|
|
31
|
-
"@yarnpkg/cli": "^4.
|
|
32
|
-
"@yarnpkg/core": "^4.1
|
|
33
|
-
"@yarnpkg/plugin-git": "^3.1.
|
|
31
|
+
"@yarnpkg/cli": "^4.7.0",
|
|
32
|
+
"@yarnpkg/core": "^4.2.1",
|
|
33
|
+
"@yarnpkg/plugin-git": "^3.1.1"
|
|
34
34
|
},
|
|
35
35
|
"repository": {
|
|
36
36
|
"type": "git",
|
|
37
|
-
"url": "
|
|
37
|
+
"url": "git+https://github.com/yarnpkg/berry.git",
|
|
38
38
|
"directory": "packages/plugin-essentials"
|
|
39
39
|
},
|
|
40
40
|
"scripts": {
|