@yarnpkg/plugin-essentials 4.0.0-rc.35 → 4.0.0-rc.37
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 +1 -1
- package/lib/commands/bin.js +1 -1
- package/lib/commands/cache/clean.js +1 -1
- package/lib/commands/config/get.js +1 -1
- package/lib/commands/config/set.js +1 -1
- package/lib/commands/config/unset.js +1 -1
- package/lib/commands/config.js +1 -1
- package/lib/commands/dedupe.js +1 -1
- package/lib/commands/entries/clipanion.js +1 -1
- package/lib/commands/entries/help.js +1 -1
- package/lib/commands/entries/version.js +1 -1
- package/lib/commands/exec.js +1 -1
- package/lib/commands/explain/peerRequirements.js +1 -1
- package/lib/commands/explain.js +1 -1
- package/lib/commands/info.js +1 -1
- package/lib/commands/install.js +1 -1
- package/lib/commands/link.js +1 -1
- package/lib/commands/node.js +1 -1
- package/lib/commands/plugin/check.js +1 -1
- package/lib/commands/plugin/import/sources.js +1 -1
- package/lib/commands/plugin/import.js +1 -1
- package/lib/commands/plugin/list.js +1 -1
- package/lib/commands/plugin/remove.js +1 -1
- package/lib/commands/plugin/runtime.js +1 -1
- package/lib/commands/rebuild.js +1 -1
- package/lib/commands/remove.js +1 -1
- package/lib/commands/run.js +1 -1
- package/lib/commands/runIndex.js +1 -1
- package/lib/commands/set/resolution.js +1 -1
- package/lib/commands/set/version/sources.js +1 -1
- package/lib/commands/set/version.js +1 -1
- package/lib/commands/unlink.js +1 -1
- package/lib/commands/up.js +1 -1
- package/lib/commands/why.js +1 -1
- package/lib/commands/workspace.js +1 -1
- package/lib/commands/workspaces/list.js +1 -1
- package/package.json +9 -9
package/lib/commands/add.js
CHANGED
|
@@ -212,7 +212,6 @@ class AddCommand extends cli_1.BaseCommand {
|
|
|
212
212
|
return installReport.exitCode();
|
|
213
213
|
}
|
|
214
214
|
}
|
|
215
|
-
exports.default = AddCommand;
|
|
216
215
|
AddCommand.paths = [
|
|
217
216
|
[`add`],
|
|
218
217
|
];
|
|
@@ -265,6 +264,7 @@ AddCommand.usage = clipanion_1.Command.Usage({
|
|
|
265
264
|
`$0 add lodash-es@lodash/lodash#es`,
|
|
266
265
|
]],
|
|
267
266
|
});
|
|
267
|
+
exports.default = AddCommand;
|
|
268
268
|
function suggestTargetList(workspace, ident, { dev, peer, preferDev, optional }) {
|
|
269
269
|
const hasRegular = workspace.manifest[suggestUtils.Target.REGULAR].has(ident.identHash);
|
|
270
270
|
const hasDev = workspace.manifest[suggestUtils.Target.DEVELOPMENT].has(ident.identHash);
|
package/lib/commands/bin.js
CHANGED
|
@@ -58,7 +58,6 @@ class BinCommand extends cli_1.BaseCommand {
|
|
|
58
58
|
return report.exitCode();
|
|
59
59
|
}
|
|
60
60
|
}
|
|
61
|
-
exports.default = BinCommand;
|
|
62
61
|
BinCommand.paths = [
|
|
63
62
|
[`bin`],
|
|
64
63
|
];
|
|
@@ -77,3 +76,4 @@ BinCommand.usage = clipanion_1.Command.Usage({
|
|
|
77
76
|
`$0 bin eslint`,
|
|
78
77
|
]],
|
|
79
78
|
});
|
|
79
|
+
exports.default = BinCommand;
|
|
@@ -35,7 +35,6 @@ class CacheCleanCommand extends cli_1.BaseCommand {
|
|
|
35
35
|
return report.exitCode();
|
|
36
36
|
}
|
|
37
37
|
}
|
|
38
|
-
exports.default = CacheCleanCommand;
|
|
39
38
|
CacheCleanCommand.paths = [
|
|
40
39
|
[`cache`, `clean`],
|
|
41
40
|
[`cache`, `clear`],
|
|
@@ -53,3 +52,4 @@ CacheCleanCommand.usage = clipanion_1.Command.Usage({
|
|
|
53
52
|
`$0 cache clean --mirror`,
|
|
54
53
|
]],
|
|
55
54
|
});
|
|
55
|
+
exports.default = CacheCleanCommand;
|
|
@@ -57,7 +57,6 @@ class ConfigGetCommand extends cli_1.BaseCommand {
|
|
|
57
57
|
return report.exitCode();
|
|
58
58
|
}
|
|
59
59
|
}
|
|
60
|
-
exports.default = ConfigGetCommand;
|
|
61
60
|
ConfigGetCommand.paths = [
|
|
62
61
|
[`config`, `get`],
|
|
63
62
|
];
|
|
@@ -85,3 +84,4 @@ ConfigGetCommand.usage = clipanion_1.Command.Usage({
|
|
|
85
84
|
`yarn config get packageExtensions --json`,
|
|
86
85
|
]],
|
|
87
86
|
});
|
|
87
|
+
exports.default = ConfigGetCommand;
|
|
@@ -79,7 +79,6 @@ class ConfigSetCommand extends cli_1.BaseCommand {
|
|
|
79
79
|
return report.exitCode();
|
|
80
80
|
}
|
|
81
81
|
}
|
|
82
|
-
exports.default = ConfigSetCommand;
|
|
83
82
|
ConfigSetCommand.paths = [
|
|
84
83
|
[`config`, `set`],
|
|
85
84
|
];
|
|
@@ -112,3 +111,4 @@ ConfigSetCommand.usage = clipanion_1.Command.Usage({
|
|
|
112
111
|
`yarn config set 'npmRegistries["//npm.example.com"].npmAuthToken' "ffffffff-ffff-ffff-ffff-ffffffffffff"`,
|
|
113
112
|
]],
|
|
114
113
|
});
|
|
114
|
+
exports.default = ConfigSetCommand;
|
|
@@ -57,7 +57,6 @@ class ConfigUnsetCommand extends cli_1.BaseCommand {
|
|
|
57
57
|
return report.exitCode();
|
|
58
58
|
}
|
|
59
59
|
}
|
|
60
|
-
exports.default = ConfigUnsetCommand;
|
|
61
60
|
ConfigUnsetCommand.paths = [
|
|
62
61
|
[`config`, `unset`],
|
|
63
62
|
];
|
|
@@ -77,3 +76,4 @@ ConfigUnsetCommand.usage = clipanion_1.Command.Usage({
|
|
|
77
76
|
`yarn config unset npmScopes.company.npmRegistryServer`,
|
|
78
77
|
]],
|
|
79
78
|
});
|
|
79
|
+
exports.default = ConfigUnsetCommand;
|
package/lib/commands/config.js
CHANGED
|
@@ -85,7 +85,6 @@ class ConfigCommand extends cli_1.BaseCommand {
|
|
|
85
85
|
return report.exitCode();
|
|
86
86
|
}
|
|
87
87
|
}
|
|
88
|
-
exports.default = ConfigCommand;
|
|
89
88
|
ConfigCommand.paths = [
|
|
90
89
|
[`config`],
|
|
91
90
|
];
|
|
@@ -99,3 +98,4 @@ ConfigCommand.usage = clipanion_1.Command.Usage({
|
|
|
99
98
|
`$0 config`,
|
|
100
99
|
]],
|
|
101
100
|
});
|
|
101
|
+
exports.default = ConfigCommand;
|
package/lib/commands/dedupe.js
CHANGED
|
@@ -72,7 +72,6 @@ class DedupeCommand extends cli_1.BaseCommand {
|
|
|
72
72
|
}
|
|
73
73
|
}
|
|
74
74
|
}
|
|
75
|
-
exports.default = DedupeCommand;
|
|
76
75
|
DedupeCommand.paths = [
|
|
77
76
|
[`dedupe`],
|
|
78
77
|
];
|
|
@@ -124,3 +123,4 @@ DedupeCommand.usage = clipanion_1.Command.Usage({
|
|
|
124
123
|
`$0 dedupe --check`,
|
|
125
124
|
]],
|
|
126
125
|
});
|
|
126
|
+
exports.default = DedupeCommand;
|
|
@@ -33,7 +33,7 @@ class ClipanionCommand extends cli_1.BaseCommand {
|
|
|
33
33
|
this.context.stdout.write(`${JSON.stringify(clipanionDefinitions, null, 2)}\n`);
|
|
34
34
|
}
|
|
35
35
|
}
|
|
36
|
-
exports.default = ClipanionCommand;
|
|
37
36
|
ClipanionCommand.paths = [
|
|
38
37
|
[`--clipanion=definitions`],
|
|
39
38
|
];
|
|
39
|
+
exports.default = ClipanionCommand;
|
|
@@ -8,8 +8,8 @@ class VersionCommand extends cli_1.BaseCommand {
|
|
|
8
8
|
this.context.stdout.write(`${core_1.YarnVersion || `<unknown>`}\n`);
|
|
9
9
|
}
|
|
10
10
|
}
|
|
11
|
-
exports.default = VersionCommand;
|
|
12
11
|
VersionCommand.paths = [
|
|
13
12
|
[`-v`],
|
|
14
13
|
[`--version`],
|
|
15
14
|
];
|
|
15
|
+
exports.default = VersionCommand;
|
package/lib/commands/exec.js
CHANGED
|
@@ -24,7 +24,6 @@ class ExecCommand extends cli_1.BaseCommand {
|
|
|
24
24
|
});
|
|
25
25
|
}
|
|
26
26
|
}
|
|
27
|
-
exports.default = ExecCommand;
|
|
28
27
|
ExecCommand.paths = [
|
|
29
28
|
[`exec`],
|
|
30
29
|
];
|
|
@@ -43,3 +42,4 @@ ExecCommand.usage = clipanion_1.Command.Usage({
|
|
|
43
42
|
`$0 exec "tsc & babel src --out-dir lib"`,
|
|
44
43
|
]],
|
|
45
44
|
});
|
|
45
|
+
exports.default = ExecCommand;
|
|
@@ -62,7 +62,6 @@ class ExplainPeerRequirementsCommand extends cli_1.BaseCommand {
|
|
|
62
62
|
return report.exitCode();
|
|
63
63
|
}
|
|
64
64
|
}
|
|
65
|
-
exports.default = ExplainPeerRequirementsCommand;
|
|
66
65
|
ExplainPeerRequirementsCommand.paths = [
|
|
67
66
|
[`explain`, `peer-requirements`],
|
|
68
67
|
];
|
|
@@ -85,6 +84,7 @@ ExplainPeerRequirementsCommand.usage = clipanion_1.Command.Usage({
|
|
|
85
84
|
`$0 explain peer-requirements`,
|
|
86
85
|
]],
|
|
87
86
|
});
|
|
87
|
+
exports.default = ExplainPeerRequirementsCommand;
|
|
88
88
|
async function explainPeerRequirements(peerRequirementsHash, project, opts) {
|
|
89
89
|
const { configuration } = project;
|
|
90
90
|
const requirement = project.peerRequirements.get(peerRequirementsHash);
|
package/lib/commands/explain.js
CHANGED
|
@@ -78,7 +78,6 @@ class ExplainCommand extends cli_1.BaseCommand {
|
|
|
78
78
|
}
|
|
79
79
|
}
|
|
80
80
|
}
|
|
81
|
-
exports.default = ExplainCommand;
|
|
82
81
|
ExplainCommand.paths = [
|
|
83
82
|
[`explain`],
|
|
84
83
|
];
|
|
@@ -97,3 +96,4 @@ ExplainCommand.usage = clipanion_1.Command.Usage({
|
|
|
97
96
|
`$0 explain`,
|
|
98
97
|
]],
|
|
99
98
|
});
|
|
99
|
+
exports.default = ExplainCommand;
|
package/lib/commands/info.js
CHANGED
|
@@ -308,7 +308,6 @@ class InfoCommand extends cli_1.BaseCommand {
|
|
|
308
308
|
});
|
|
309
309
|
}
|
|
310
310
|
}
|
|
311
|
-
exports.default = InfoCommand;
|
|
312
311
|
InfoCommand.paths = [
|
|
313
312
|
[`info`],
|
|
314
313
|
];
|
|
@@ -328,3 +327,4 @@ InfoCommand.usage = clipanion_1.Command.Usage({
|
|
|
328
327
|
`$0 info lodash`,
|
|
329
328
|
]],
|
|
330
329
|
});
|
|
330
|
+
exports.default = InfoCommand;
|
package/lib/commands/install.js
CHANGED
|
@@ -256,7 +256,6 @@ class YarnCommand extends cli_1.BaseCommand {
|
|
|
256
256
|
return report.exitCode();
|
|
257
257
|
}
|
|
258
258
|
}
|
|
259
|
-
exports.default = YarnCommand;
|
|
260
259
|
YarnCommand.paths = [
|
|
261
260
|
[`install`],
|
|
262
261
|
clipanion_1.Command.Default,
|
|
@@ -303,6 +302,7 @@ YarnCommand.usage = clipanion_1.Command.Usage({
|
|
|
303
302
|
`$0 install --immutable --immutable-cache --check-cache`,
|
|
304
303
|
]],
|
|
305
304
|
});
|
|
305
|
+
exports.default = YarnCommand;
|
|
306
306
|
const MERGE_CONFLICT_START = `<<<<<<<`;
|
|
307
307
|
async function autofixMergeConflicts(configuration, immutable) {
|
|
308
308
|
if (!configuration.projectCwd)
|
package/lib/commands/link.js
CHANGED
|
@@ -77,7 +77,6 @@ class LinkCommand extends cli_1.BaseCommand {
|
|
|
77
77
|
return report.exitCode();
|
|
78
78
|
}
|
|
79
79
|
}
|
|
80
|
-
exports.default = LinkCommand;
|
|
81
80
|
LinkCommand.paths = [
|
|
82
81
|
[`link`],
|
|
83
82
|
];
|
|
@@ -94,3 +93,4 @@ LinkCommand.usage = clipanion_1.Command.Usage({
|
|
|
94
93
|
`$0 link ~/jest --all`,
|
|
95
94
|
]],
|
|
96
95
|
});
|
|
96
|
+
exports.default = LinkCommand;
|
package/lib/commands/node.js
CHANGED
|
@@ -12,7 +12,6 @@ class NodeCommand extends cli_1.BaseCommand {
|
|
|
12
12
|
return this.cli.run([`exec`, `node`, ...this.args]);
|
|
13
13
|
}
|
|
14
14
|
}
|
|
15
|
-
exports.default = NodeCommand;
|
|
16
15
|
NodeCommand.paths = [
|
|
17
16
|
[`node`],
|
|
18
17
|
];
|
|
@@ -28,3 +27,4 @@ NodeCommand.usage = clipanion_1.Command.Usage({
|
|
|
28
27
|
`$0 node ./my-script.js`,
|
|
29
28
|
]],
|
|
30
29
|
});
|
|
30
|
+
exports.default = NodeCommand;
|
|
@@ -43,7 +43,6 @@ class PluginCheckCommand extends cli_1.BaseCommand {
|
|
|
43
43
|
return report.exitCode();
|
|
44
44
|
}
|
|
45
45
|
}
|
|
46
|
-
exports.default = PluginCheckCommand;
|
|
47
46
|
PluginCheckCommand.paths = [
|
|
48
47
|
[`plugin`, `check`],
|
|
49
48
|
];
|
|
@@ -60,3 +59,4 @@ PluginCheckCommand.usage = clipanion_1.Command.Usage({
|
|
|
60
59
|
`$0 plugin check`,
|
|
61
60
|
]],
|
|
62
61
|
});
|
|
62
|
+
exports.default = PluginCheckCommand;
|
|
@@ -56,7 +56,6 @@ class PluginImportSourcesCommand extends cli_1.BaseCommand {
|
|
|
56
56
|
return report.exitCode();
|
|
57
57
|
}
|
|
58
58
|
}
|
|
59
|
-
exports.default = PluginImportSourcesCommand;
|
|
60
59
|
PluginImportSourcesCommand.paths = [
|
|
61
60
|
[`plugin`, `import`, `from`, `sources`],
|
|
62
61
|
];
|
|
@@ -76,6 +75,7 @@ PluginImportSourcesCommand.usage = clipanion_1.Command.Usage({
|
|
|
76
75
|
`$0 plugin import from sources exec`,
|
|
77
76
|
]],
|
|
78
77
|
});
|
|
78
|
+
exports.default = PluginImportSourcesCommand;
|
|
79
79
|
async function buildAndSavePlugin(pluginSpec, { context, noMinify }, { project, report, target }) {
|
|
80
80
|
const pluginName = pluginSpec.replace(/@yarnpkg\//, ``);
|
|
81
81
|
const { configuration } = project;
|
|
@@ -78,7 +78,6 @@ class PluginImportCommand extends cli_1.BaseCommand {
|
|
|
78
78
|
return report.exitCode();
|
|
79
79
|
}
|
|
80
80
|
}
|
|
81
|
-
exports.default = PluginImportCommand;
|
|
82
81
|
PluginImportCommand.paths = [
|
|
83
82
|
[`plugin`, `import`],
|
|
84
83
|
];
|
|
@@ -112,6 +111,7 @@ PluginImportCommand.usage = clipanion_1.Command.Usage({
|
|
|
112
111
|
`$0 plugin import ./path/to/plugin.js`,
|
|
113
112
|
]],
|
|
114
113
|
});
|
|
114
|
+
exports.default = PluginImportCommand;
|
|
115
115
|
async function savePlugin(pluginSpec, pluginBuffer, { checksum = true, project, report }) {
|
|
116
116
|
const { configuration } = project;
|
|
117
117
|
const vmExports = {};
|
|
@@ -42,7 +42,6 @@ class PluginListCommand extends cli_1.BaseCommand {
|
|
|
42
42
|
return report.exitCode();
|
|
43
43
|
}
|
|
44
44
|
}
|
|
45
|
-
exports.default = PluginListCommand;
|
|
46
45
|
PluginListCommand.paths = [
|
|
47
46
|
[`plugin`, `list`],
|
|
48
47
|
];
|
|
@@ -57,3 +56,4 @@ PluginListCommand.usage = clipanion_1.Command.Usage({
|
|
|
57
56
|
`$0 plugin list`,
|
|
58
57
|
]],
|
|
59
58
|
});
|
|
59
|
+
exports.default = PluginListCommand;
|
|
@@ -45,7 +45,6 @@ class PluginRemoveCommand extends cli_1.BaseCommand {
|
|
|
45
45
|
return report.exitCode();
|
|
46
46
|
}
|
|
47
47
|
}
|
|
48
|
-
exports.default = PluginRemoveCommand;
|
|
49
48
|
PluginRemoveCommand.paths = [
|
|
50
49
|
[`plugin`, `remove`],
|
|
51
50
|
];
|
|
@@ -65,3 +64,4 @@ PluginRemoveCommand.usage = clipanion_1.Command.Usage({
|
|
|
65
64
|
`$0 plugin remove my-local-plugin`,
|
|
66
65
|
]],
|
|
67
66
|
});
|
|
67
|
+
exports.default = PluginRemoveCommand;
|
|
@@ -30,7 +30,6 @@ class PluginRuntimeCommand extends cli_1.BaseCommand {
|
|
|
30
30
|
return report.exitCode();
|
|
31
31
|
}
|
|
32
32
|
}
|
|
33
|
-
exports.default = PluginRuntimeCommand;
|
|
34
33
|
PluginRuntimeCommand.paths = [
|
|
35
34
|
[`plugin`, `runtime`],
|
|
36
35
|
];
|
|
@@ -45,3 +44,4 @@ PluginRuntimeCommand.usage = clipanion_1.Command.Usage({
|
|
|
45
44
|
`$0 plugin runtime`,
|
|
46
45
|
]],
|
|
47
46
|
});
|
|
47
|
+
exports.default = PluginRuntimeCommand;
|
package/lib/commands/rebuild.js
CHANGED
|
@@ -46,7 +46,6 @@ class RebuildCommand extends cli_1.BaseCommand {
|
|
|
46
46
|
return installReport.exitCode();
|
|
47
47
|
}
|
|
48
48
|
}
|
|
49
|
-
exports.default = RebuildCommand;
|
|
50
49
|
RebuildCommand.paths = [
|
|
51
50
|
[`rebuild`],
|
|
52
51
|
];
|
|
@@ -67,3 +66,4 @@ RebuildCommand.usage = clipanion_1.Command.Usage({
|
|
|
67
66
|
`$0 rebuild fsevents`,
|
|
68
67
|
]],
|
|
69
68
|
});
|
|
69
|
+
exports.default = RebuildCommand;
|
package/lib/commands/remove.js
CHANGED
|
@@ -103,7 +103,6 @@ class RemoveCommand extends cli_1.BaseCommand {
|
|
|
103
103
|
return 0;
|
|
104
104
|
}
|
|
105
105
|
}
|
|
106
|
-
exports.default = RemoveCommand;
|
|
107
106
|
RemoveCommand.paths = [
|
|
108
107
|
[`remove`],
|
|
109
108
|
];
|
|
@@ -137,3 +136,4 @@ RemoveCommand.usage = clipanion_1.Command.Usage({
|
|
|
137
136
|
`$0 remove 'react-{dom,helmet}'`,
|
|
138
137
|
]],
|
|
139
138
|
});
|
|
139
|
+
exports.default = RemoveCommand;
|
package/lib/commands/run.js
CHANGED
|
@@ -117,7 +117,6 @@ class RunCommand extends cli_1.BaseCommand {
|
|
|
117
117
|
}
|
|
118
118
|
}
|
|
119
119
|
}
|
|
120
|
-
exports.default = RunCommand;
|
|
121
120
|
RunCommand.paths = [
|
|
122
121
|
[`run`],
|
|
123
122
|
];
|
|
@@ -145,3 +144,4 @@ RunCommand.usage = clipanion_1.Command.Usage({
|
|
|
145
144
|
`$0 run --inspect-brk webpack`,
|
|
146
145
|
]],
|
|
147
146
|
});
|
|
147
|
+
exports.default = RunCommand;
|
package/lib/commands/runIndex.js
CHANGED
|
@@ -37,7 +37,6 @@ class SetResolutionCommand extends cli_1.BaseCommand {
|
|
|
37
37
|
return report.exitCode();
|
|
38
38
|
}
|
|
39
39
|
}
|
|
40
|
-
exports.default = SetResolutionCommand;
|
|
41
40
|
SetResolutionCommand.paths = [
|
|
42
41
|
[`set`, `resolution`],
|
|
43
42
|
];
|
|
@@ -55,3 +54,4 @@ SetResolutionCommand.usage = clipanion_1.Command.Usage({
|
|
|
55
54
|
`$0 set resolution lodash@npm:^1.2.3 1.5.0`,
|
|
56
55
|
]],
|
|
57
56
|
});
|
|
57
|
+
exports.default = SetResolutionCommand;
|
|
@@ -86,7 +86,6 @@ class SetVersionSourcesCommand extends cli_1.BaseCommand {
|
|
|
86
86
|
return report.exitCode();
|
|
87
87
|
}
|
|
88
88
|
}
|
|
89
|
-
exports.default = SetVersionSourcesCommand;
|
|
90
89
|
SetVersionSourcesCommand.paths = [
|
|
91
90
|
[`set`, `version`, `from`, `sources`],
|
|
92
91
|
];
|
|
@@ -102,6 +101,7 @@ SetVersionSourcesCommand.usage = clipanion_1.Command.Usage({
|
|
|
102
101
|
`$0 set version from sources`,
|
|
103
102
|
]],
|
|
104
103
|
});
|
|
104
|
+
exports.default = SetVersionSourcesCommand;
|
|
105
105
|
async function runWorkflow(workflow, { configuration, context, target }) {
|
|
106
106
|
for (const [fileName, ...args] of workflow) {
|
|
107
107
|
const usePipe = args[args.length - 1] === `|`;
|
|
@@ -82,7 +82,6 @@ class SetVersionCommand extends cli_1.BaseCommand {
|
|
|
82
82
|
return report.exitCode();
|
|
83
83
|
}
|
|
84
84
|
}
|
|
85
|
-
exports.default = SetVersionCommand;
|
|
86
85
|
SetVersionCommand.paths = [
|
|
87
86
|
[`set`, `version`],
|
|
88
87
|
];
|
|
@@ -139,6 +138,7 @@ SetVersionCommand.usage = clipanion_1.Command.Usage({
|
|
|
139
138
|
`$0 set version self`,
|
|
140
139
|
]],
|
|
141
140
|
});
|
|
141
|
+
exports.default = SetVersionCommand;
|
|
142
142
|
async function resolveRange(configuration, request) {
|
|
143
143
|
const data = await core_2.httpUtils.get(`https://repo.yarnpkg.com/tags`, { configuration, jsonResponse: true });
|
|
144
144
|
const candidates = data.tags.filter(version => core_2.semverUtils.satisfiesWithPrereleases(version, request));
|
package/lib/commands/unlink.js
CHANGED
|
@@ -72,7 +72,6 @@ class UnlinkCommand extends cli_1.BaseCommand {
|
|
|
72
72
|
return report.exitCode();
|
|
73
73
|
}
|
|
74
74
|
}
|
|
75
|
-
exports.default = UnlinkCommand;
|
|
76
75
|
UnlinkCommand.paths = [
|
|
77
76
|
[`unlink`],
|
|
78
77
|
];
|
|
@@ -95,3 +94,4 @@ UnlinkCommand.usage = clipanion_1.Command.Usage({
|
|
|
95
94
|
`$0 unlink '@babel/*' 'pkg-{a,b}'`,
|
|
96
95
|
]],
|
|
97
96
|
});
|
|
97
|
+
exports.default = UnlinkCommand;
|
package/lib/commands/up.js
CHANGED
|
@@ -240,7 +240,6 @@ class UpCommand extends cli_1.BaseCommand {
|
|
|
240
240
|
return installReport.exitCode();
|
|
241
241
|
}
|
|
242
242
|
}
|
|
243
|
-
exports.default = UpCommand;
|
|
244
243
|
UpCommand.paths = [
|
|
245
244
|
[`up`],
|
|
246
245
|
];
|
|
@@ -290,3 +289,4 @@ UpCommand.usage = clipanion_1.Command.Usage({
|
|
|
290
289
|
UpCommand.schema = [
|
|
291
290
|
t.hasKeyRelationship(`recursive`, t.KeyRelationship.Forbids, [`interactive`, `exact`, `tilde`, `caret`], { ignore: [undefined, false] }),
|
|
292
291
|
];
|
|
292
|
+
exports.default = UpCommand;
|
package/lib/commands/why.js
CHANGED
|
@@ -38,7 +38,6 @@ class WhyCommand extends cli_1.BaseCommand {
|
|
|
38
38
|
});
|
|
39
39
|
}
|
|
40
40
|
}
|
|
41
|
-
exports.default = WhyCommand;
|
|
42
41
|
WhyCommand.paths = [
|
|
43
42
|
[`why`],
|
|
44
43
|
];
|
|
@@ -54,6 +53,7 @@ WhyCommand.usage = clipanion_1.Command.Usage({
|
|
|
54
53
|
`$0 why lodash`,
|
|
55
54
|
]],
|
|
56
55
|
});
|
|
56
|
+
exports.default = WhyCommand;
|
|
57
57
|
function whySimple(project, identHash, { configuration, peers }) {
|
|
58
58
|
const sortedPackages = core_3.miscUtils.sortMap(project.storedPackages.values(), pkg => {
|
|
59
59
|
return core_3.structUtils.stringifyLocator(pkg);
|
|
@@ -27,7 +27,6 @@ class WorkspaceCommand extends cli_1.BaseCommand {
|
|
|
27
27
|
return this.cli.run([this.commandName, ...this.args], { cwd: workspace.cwd });
|
|
28
28
|
}
|
|
29
29
|
}
|
|
30
|
-
exports.default = WorkspaceCommand;
|
|
31
30
|
WorkspaceCommand.paths = [
|
|
32
31
|
[`workspace`],
|
|
33
32
|
];
|
|
@@ -45,3 +44,4 @@ WorkspaceCommand.usage = clipanion_1.Command.Usage({
|
|
|
45
44
|
`yarn workspace components run build`,
|
|
46
45
|
]],
|
|
47
46
|
});
|
|
47
|
+
exports.default = WorkspaceCommand;
|
|
@@ -84,7 +84,6 @@ class WorkspacesListCommand extends cli_1.BaseCommand {
|
|
|
84
84
|
return report.exitCode();
|
|
85
85
|
}
|
|
86
86
|
}
|
|
87
|
-
exports.default = WorkspacesListCommand;
|
|
88
87
|
WorkspacesListCommand.paths = [
|
|
89
88
|
[`workspaces`, `list`],
|
|
90
89
|
];
|
|
@@ -103,3 +102,4 @@ WorkspacesListCommand.usage = clipanion_1.Command.Usage({
|
|
|
103
102
|
- If both the \`-v,--verbose\` and \`--json\` options are set, Yarn will also return the cross-dependencies between each workspaces (useful when you wish to automatically generate Buck / Bazel rules).
|
|
104
103
|
`,
|
|
105
104
|
});
|
|
105
|
+
exports.default = WorkspacesListCommand;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yarnpkg/plugin-essentials",
|
|
3
|
-
"version": "4.0.0-rc.
|
|
3
|
+
"version": "4.0.0-rc.37",
|
|
4
4
|
"stableVersion": "3.3.0",
|
|
5
5
|
"license": "BSD-2-Clause",
|
|
6
6
|
"main": "./lib/index.js",
|
|
@@ -9,8 +9,8 @@
|
|
|
9
9
|
"./package.json": "./package.json"
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {
|
|
12
|
-
"@yarnpkg/fslib": "^3.0.0-rc.
|
|
13
|
-
"@yarnpkg/parsers": "^3.0.0-rc.
|
|
12
|
+
"@yarnpkg/fslib": "^3.0.0-rc.37",
|
|
13
|
+
"@yarnpkg/parsers": "^3.0.0-rc.37",
|
|
14
14
|
"ci-info": "^3.2.0",
|
|
15
15
|
"clipanion": "^3.2.0-rc.10",
|
|
16
16
|
"enquirer": "^2.3.6",
|
|
@@ -21,17 +21,17 @@
|
|
|
21
21
|
"typanion": "^3.3.0"
|
|
22
22
|
},
|
|
23
23
|
"peerDependencies": {
|
|
24
|
-
"@yarnpkg/cli": "^4.0.0-rc.
|
|
25
|
-
"@yarnpkg/core": "^4.0.0-rc.
|
|
26
|
-
"@yarnpkg/plugin-git": "^3.0.0-rc.
|
|
24
|
+
"@yarnpkg/cli": "^4.0.0-rc.37",
|
|
25
|
+
"@yarnpkg/core": "^4.0.0-rc.37",
|
|
26
|
+
"@yarnpkg/plugin-git": "^3.0.0-rc.37"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
29
|
"@types/lodash": "^4.14.136",
|
|
30
30
|
"@types/micromatch": "^4.0.1",
|
|
31
31
|
"@types/semver": "^7.1.0",
|
|
32
|
-
"@yarnpkg/cli": "^4.0.0-rc.
|
|
33
|
-
"@yarnpkg/core": "^4.0.0-rc.
|
|
34
|
-
"@yarnpkg/plugin-git": "^3.0.0-rc.
|
|
32
|
+
"@yarnpkg/cli": "^4.0.0-rc.37",
|
|
33
|
+
"@yarnpkg/core": "^4.0.0-rc.37",
|
|
34
|
+
"@yarnpkg/plugin-git": "^3.0.0-rc.37"
|
|
35
35
|
},
|
|
36
36
|
"repository": {
|
|
37
37
|
"type": "git",
|