@yarnpkg/plugin-essentials 4.2.1 → 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.
@@ -63,7 +63,10 @@ class AddCommand extends cli_1.BaseCommand {
63
63
  restoreResolutions: false,
64
64
  });
65
65
  const fixed = this.fixed;
66
- const interactive = this.interactive ?? configuration.get(`preferInteractive`);
66
+ const interactive = configuration.isInteractive({
67
+ interactive: this.interactive,
68
+ stdout: this.context.stdout,
69
+ });
67
70
  const reuse = interactive || configuration.get(`preferReuse`);
68
71
  const modifier = suggestUtils.getModifier(this, project);
69
72
  const strategies = [
@@ -260,6 +263,9 @@ AddCommand.usage = clipanion_1.Command.Usage({
260
263
  ], [
261
264
  `Add a package from a specific branch of a GitHub repository to the current workspace using the GitHub protocol (shorthand)`,
262
265
  `$0 add lodash-es@lodash/lodash#es`,
266
+ ], [
267
+ `Add a local package (gzipped tarball format) to the current workspace`,
268
+ `$0 add local-package-name@file:../path/to/local-package-name-v0.1.2.tgz`,
263
269
  ]],
264
270
  });
265
271
  exports.default = AddCommand;
@@ -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,
@@ -92,7 +92,10 @@ class UpCommand extends cli_1.BaseCommand {
92
92
  restoreResolutions: false,
93
93
  });
94
94
  const fixed = this.fixed;
95
- const interactive = this.interactive ?? configuration.get(`preferInteractive`);
95
+ const interactive = configuration.isInteractive({
96
+ interactive: this.interactive,
97
+ stdout: this.context.stdout,
98
+ });
96
99
  const modifier = suggestUtils.getModifier(this, project);
97
100
  const strategies = interactive ? [
98
101
  suggestUtils.Strategy.KEEP,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yarnpkg/plugin-essentials",
3
- "version": "4.2.1",
3
+ "version": "4.3.0",
4
4
  "license": "BSD-2-Clause",
5
5
  "main": "./lib/index.js",
6
6
  "exports": {
@@ -8,9 +8,9 @@
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
- "ci-info": "^3.2.0",
13
+ "ci-info": "^4.0.0",
14
14
  "clipanion": "^4.0.0-rc.2",
15
15
  "enquirer": "^2.3.6",
16
16
  "lodash": "^4.17.15",
@@ -20,17 +20,17 @@
20
20
  "typanion": "^3.14.0"
21
21
  },
22
22
  "peerDependencies": {
23
- "@yarnpkg/cli": "^4.3.1",
24
- "@yarnpkg/core": "^4.1.1",
25
- "@yarnpkg/plugin-git": "^3.0.0"
23
+ "@yarnpkg/cli": "^4.6.0",
24
+ "@yarnpkg/core": "^4.2.0",
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.3.1",
32
- "@yarnpkg/core": "^4.1.1",
33
- "@yarnpkg/plugin-git": "^3.0.0"
31
+ "@yarnpkg/cli": "^4.6.0",
32
+ "@yarnpkg/core": "^4.2.0",
33
+ "@yarnpkg/plugin-git": "^3.1.0"
34
34
  },
35
35
  "repository": {
36
36
  "type": "git",