@yarnpkg/plugin-essentials 4.2.0 → 4.2.2
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/add.js +7 -1
- package/lib/commands/explain.js +2 -2
- package/lib/commands/up.js +4 -1
- package/package.json +8 -8
package/lib/commands/add.js
CHANGED
|
@@ -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 =
|
|
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;
|
package/lib/commands/explain.js
CHANGED
|
@@ -15,7 +15,7 @@ async function getErrorCodeDetails(configuration) {
|
|
|
15
15
|
const version = core_1.miscUtils.isTaggedYarnVersion(core_1.YarnVersion)
|
|
16
16
|
? core_1.YarnVersion
|
|
17
17
|
: await (0, version_1.resolveTag)(configuration, `canary`);
|
|
18
|
-
const errorCodesUrl = `https://repo.yarnpkg.com/${version}/packages/
|
|
18
|
+
const errorCodesUrl = `https://repo.yarnpkg.com/${version}/packages/docusaurus/docs/advanced/01-general-reference/error-codes.mdx`;
|
|
19
19
|
const raw = await core_1.httpUtils.get(errorCodesUrl, { configuration });
|
|
20
20
|
return new Map(Array.from(raw.toString().matchAll(ERROR_CODE_DOC_REGEXP), ({ groups }) => {
|
|
21
21
|
if (!groups)
|
|
@@ -54,7 +54,7 @@ class ExplainCommand extends cli_1.BaseCommand {
|
|
|
54
54
|
format: this.cli.format(),
|
|
55
55
|
paragraphs: true,
|
|
56
56
|
}))
|
|
57
|
-
: `This error code does not have a description.\n\nYou can help us by editing this page on GitHub 🙂:\n${core_1.formatUtils.jsonOrPretty(this.json, configuration, core_1.formatUtils.tuple(core_1.formatUtils.Type.URL, `https://github.com/yarnpkg/berry/blob/master/packages/
|
|
57
|
+
: `This error code does not have a description.\n\nYou can help us by editing this page on GitHub 🙂:\n${core_1.formatUtils.jsonOrPretty(this.json, configuration, core_1.formatUtils.tuple(core_1.formatUtils.Type.URL, `https://github.com/yarnpkg/berry/blob/master/packages/docusaurus/docs/advanced/01-general-reference/error-codes.mdx`))}\n`;
|
|
58
58
|
if (this.json) {
|
|
59
59
|
this.context.stdout.write(`${JSON.stringify({ code: this.code, name, details: content })}\n`);
|
|
60
60
|
}
|
package/lib/commands/up.js
CHANGED
|
@@ -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 =
|
|
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.
|
|
3
|
+
"version": "4.2.2",
|
|
4
4
|
"license": "BSD-2-Clause",
|
|
5
5
|
"main": "./lib/index.js",
|
|
6
6
|
"exports": {
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
"dependencies": {
|
|
11
11
|
"@yarnpkg/fslib": "^3.1.0",
|
|
12
12
|
"@yarnpkg/parsers": "^3.0.2",
|
|
13
|
-
"ci-info": "^
|
|
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.
|
|
24
|
-
"@yarnpkg/core": "^4.1.
|
|
25
|
-
"@yarnpkg/plugin-git": "^3.
|
|
23
|
+
"@yarnpkg/cli": "^4.4.0",
|
|
24
|
+
"@yarnpkg/core": "^4.1.2",
|
|
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.
|
|
32
|
-
"@yarnpkg/core": "^4.1.
|
|
33
|
-
"@yarnpkg/plugin-git": "^3.
|
|
31
|
+
"@yarnpkg/cli": "^4.4.0",
|
|
32
|
+
"@yarnpkg/core": "^4.1.2",
|
|
33
|
+
"@yarnpkg/plugin-git": "^3.1.0"
|
|
34
34
|
},
|
|
35
35
|
"repository": {
|
|
36
36
|
"type": "git",
|