@yarnpkg/plugin-essentials 4.2.2 → 4.3.0

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.
@@ -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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yarnpkg/plugin-essentials",
3
- "version": "4.2.2",
3
+ "version": "4.3.0",
4
4
  "license": "BSD-2-Clause",
5
5
  "main": "./lib/index.js",
6
6
  "exports": {
@@ -8,7 +8,7 @@
8
8
  "./package.json": "./package.json"
9
9
  },
10
10
  "dependencies": {
11
- "@yarnpkg/fslib": "^3.1.0",
11
+ "@yarnpkg/fslib": "^3.1.1",
12
12
  "@yarnpkg/parsers": "^3.0.2",
13
13
  "ci-info": "^4.0.0",
14
14
  "clipanion": "^4.0.0-rc.2",
@@ -20,16 +20,16 @@
20
20
  "typanion": "^3.14.0"
21
21
  },
22
22
  "peerDependencies": {
23
- "@yarnpkg/cli": "^4.4.0",
24
- "@yarnpkg/core": "^4.1.2",
23
+ "@yarnpkg/cli": "^4.6.0",
24
+ "@yarnpkg/core": "^4.2.0",
25
25
  "@yarnpkg/plugin-git": "^3.1.0"
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.4.0",
32
- "@yarnpkg/core": "^4.1.2",
31
+ "@yarnpkg/cli": "^4.6.0",
32
+ "@yarnpkg/core": "^4.2.0",
33
33
  "@yarnpkg/plugin-git": "^3.1.0"
34
34
  },
35
35
  "repository": {