@yarnpkg/cli 4.0.0-rc.50 → 4.0.0-rc.52
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/lib.js +9 -1
- package/package.json +32 -32
package/lib/lib.js
CHANGED
|
@@ -86,6 +86,13 @@ function checkCwd(cli, argv) {
|
|
|
86
86
|
cwd = fslib_1.npath.toPortablePath(argv[0].slice(6));
|
|
87
87
|
postCwdArgv = argv.slice(1);
|
|
88
88
|
}
|
|
89
|
+
else if (argv[0] === `add` && argv[argv.length - 2] === `--cwd`) {
|
|
90
|
+
// CRA adds `--cwd` at the end of the command; it's not ideal, but since
|
|
91
|
+
// it's unlikely to receive more releases we can just special-case it
|
|
92
|
+
// TODO v5: remove this special case
|
|
93
|
+
cwd = fslib_1.npath.toPortablePath(argv[argv.length - 1]);
|
|
94
|
+
postCwdArgv = argv.slice(0, argv.length - 2);
|
|
95
|
+
}
|
|
89
96
|
cli.defaultContext.cwd = cwd !== null
|
|
90
97
|
? fslib_1.ppath.resolve(cwd)
|
|
91
98
|
: fslib_1.ppath.cwd();
|
|
@@ -96,8 +103,9 @@ function initTelemetry(cli, { configuration }) {
|
|
|
96
103
|
if (!isTelemetryEnabled || ci_info_1.isCI || !process.stdout.isTTY)
|
|
97
104
|
return;
|
|
98
105
|
core_1.Configuration.telemetry = new core_1.TelemetryManager(configuration, `puba9cdc10ec5790a2cf4969dd413a47270`);
|
|
106
|
+
const PLUGIN_REGEX = /^@yarnpkg\/plugin-(.*)$/;
|
|
99
107
|
for (const name of configuration.plugins.keys())
|
|
100
|
-
if (pluginCommands_1.pluginCommands.has(name.match(
|
|
108
|
+
if (pluginCommands_1.pluginCommands.has(name.match(PLUGIN_REGEX)?.[1] ?? ``))
|
|
101
109
|
core_1.Configuration.telemetry?.reportPluginName(name);
|
|
102
110
|
if (cli.binaryVersion) {
|
|
103
111
|
core_1.Configuration.telemetry.reportVersion(cli.binaryVersion);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yarnpkg/cli",
|
|
3
|
-
"version": "4.0.0-rc.
|
|
3
|
+
"version": "4.0.0-rc.52",
|
|
4
4
|
"stableVersion": "3.6.3",
|
|
5
5
|
"license": "BSD-2-Clause",
|
|
6
6
|
"main": "./lib/index.js",
|
|
@@ -9,34 +9,34 @@
|
|
|
9
9
|
"./package.json": "./package.json"
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {
|
|
12
|
-
"@yarnpkg/core": "^4.0.0-rc.
|
|
13
|
-
"@yarnpkg/fslib": "^3.0.0-rc.
|
|
14
|
-
"@yarnpkg/libzip": "^3.0.0-rc.
|
|
15
|
-
"@yarnpkg/parsers": "^3.0.0-rc.
|
|
16
|
-
"@yarnpkg/plugin-compat": "^4.0.0-rc.
|
|
17
|
-
"@yarnpkg/plugin-constraints": "^4.0.0-rc.
|
|
18
|
-
"@yarnpkg/plugin-dlx": "^4.0.0-rc.
|
|
19
|
-
"@yarnpkg/plugin-essentials": "^4.0.0-rc.
|
|
20
|
-
"@yarnpkg/plugin-exec": "^3.0.0-rc.
|
|
21
|
-
"@yarnpkg/plugin-file": "^3.0.0-rc.
|
|
22
|
-
"@yarnpkg/plugin-git": "^3.0.0-rc.
|
|
23
|
-
"@yarnpkg/plugin-github": "^3.0.0-rc.
|
|
24
|
-
"@yarnpkg/plugin-http": "^3.0.0-rc.
|
|
25
|
-
"@yarnpkg/plugin-init": "^4.0.0-rc.
|
|
26
|
-
"@yarnpkg/plugin-interactive-tools": "^4.0.0-rc.
|
|
27
|
-
"@yarnpkg/plugin-link": "^3.0.0-rc.
|
|
28
|
-
"@yarnpkg/plugin-nm": "^4.0.0-rc.
|
|
29
|
-
"@yarnpkg/plugin-npm": "^3.0.0-rc.
|
|
30
|
-
"@yarnpkg/plugin-npm-cli": "^4.0.0-rc.
|
|
31
|
-
"@yarnpkg/plugin-pack": "^4.0.0-rc.
|
|
32
|
-
"@yarnpkg/plugin-patch": "^4.0.0-rc.
|
|
33
|
-
"@yarnpkg/plugin-pnp": "^4.0.0-rc.
|
|
34
|
-
"@yarnpkg/plugin-pnpm": "^2.0.0-rc.
|
|
35
|
-
"@yarnpkg/plugin-stage": "^4.0.0-rc.
|
|
36
|
-
"@yarnpkg/plugin-typescript": "^4.0.0-rc.
|
|
37
|
-
"@yarnpkg/plugin-version": "^4.0.0-rc.
|
|
38
|
-
"@yarnpkg/plugin-workspace-tools": "^4.0.0-rc.
|
|
39
|
-
"@yarnpkg/shell": "^4.0.0-rc.
|
|
12
|
+
"@yarnpkg/core": "^4.0.0-rc.52",
|
|
13
|
+
"@yarnpkg/fslib": "^3.0.0-rc.52",
|
|
14
|
+
"@yarnpkg/libzip": "^3.0.0-rc.52",
|
|
15
|
+
"@yarnpkg/parsers": "^3.0.0-rc.52",
|
|
16
|
+
"@yarnpkg/plugin-compat": "^4.0.0-rc.52",
|
|
17
|
+
"@yarnpkg/plugin-constraints": "^4.0.0-rc.52",
|
|
18
|
+
"@yarnpkg/plugin-dlx": "^4.0.0-rc.52",
|
|
19
|
+
"@yarnpkg/plugin-essentials": "^4.0.0-rc.52",
|
|
20
|
+
"@yarnpkg/plugin-exec": "^3.0.0-rc.52",
|
|
21
|
+
"@yarnpkg/plugin-file": "^3.0.0-rc.52",
|
|
22
|
+
"@yarnpkg/plugin-git": "^3.0.0-rc.52",
|
|
23
|
+
"@yarnpkg/plugin-github": "^3.0.0-rc.52",
|
|
24
|
+
"@yarnpkg/plugin-http": "^3.0.0-rc.52",
|
|
25
|
+
"@yarnpkg/plugin-init": "^4.0.0-rc.52",
|
|
26
|
+
"@yarnpkg/plugin-interactive-tools": "^4.0.0-rc.52",
|
|
27
|
+
"@yarnpkg/plugin-link": "^3.0.0-rc.52",
|
|
28
|
+
"@yarnpkg/plugin-nm": "^4.0.0-rc.52",
|
|
29
|
+
"@yarnpkg/plugin-npm": "^3.0.0-rc.52",
|
|
30
|
+
"@yarnpkg/plugin-npm-cli": "^4.0.0-rc.52",
|
|
31
|
+
"@yarnpkg/plugin-pack": "^4.0.0-rc.52",
|
|
32
|
+
"@yarnpkg/plugin-patch": "^4.0.0-rc.52",
|
|
33
|
+
"@yarnpkg/plugin-pnp": "^4.0.0-rc.52",
|
|
34
|
+
"@yarnpkg/plugin-pnpm": "^2.0.0-rc.52",
|
|
35
|
+
"@yarnpkg/plugin-stage": "^4.0.0-rc.52",
|
|
36
|
+
"@yarnpkg/plugin-typescript": "^4.0.0-rc.52",
|
|
37
|
+
"@yarnpkg/plugin-version": "^4.0.0-rc.52",
|
|
38
|
+
"@yarnpkg/plugin-workspace-tools": "^4.0.0-rc.52",
|
|
39
|
+
"@yarnpkg/shell": "^4.0.0-rc.52",
|
|
40
40
|
"ci-info": "^3.2.0",
|
|
41
41
|
"clipanion": "^4.0.0-rc.2",
|
|
42
42
|
"semver": "^7.1.2",
|
|
@@ -45,12 +45,12 @@
|
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
47
|
"@types/semver": "^7.1.0",
|
|
48
|
-
"@yarnpkg/builder": "^4.0.0-rc.
|
|
48
|
+
"@yarnpkg/builder": "^4.0.0-rc.52",
|
|
49
49
|
"@yarnpkg/monorepo": "^0.0.0",
|
|
50
|
-
"@yarnpkg/pnpify": "^4.0.0-rc.
|
|
50
|
+
"@yarnpkg/pnpify": "^4.0.0-rc.52"
|
|
51
51
|
},
|
|
52
52
|
"peerDependencies": {
|
|
53
|
-
"@yarnpkg/core": "^4.0.0-rc.
|
|
53
|
+
"@yarnpkg/core": "^4.0.0-rc.52"
|
|
54
54
|
},
|
|
55
55
|
"scripts": {
|
|
56
56
|
"postpack": "rm -rf lib",
|