@yarnpkg/plugin-essentials 4.0.0-rc.43 → 4.0.0-rc.44

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.
@@ -111,13 +111,18 @@ class UpCommand extends cli_1.BaseCommand {
111
111
  let isReferenced = false;
112
112
  // The range has to be static
113
113
  const pseudoDescriptor = core_1.structUtils.parseDescriptor(pattern);
114
+ const stringifiedPseudoDescriptor = core_1.structUtils.stringifyIdent(pseudoDescriptor);
114
115
  for (const workspace of project.workspaces) {
115
116
  for (const target of [suggestUtils.Target.REGULAR, suggestUtils.Target.DEVELOPMENT]) {
116
117
  const descriptors = workspace.manifest.getForScope(target);
117
118
  const stringifiedIdents = [...descriptors.values()].map(descriptor => {
118
119
  return core_1.structUtils.stringifyIdent(descriptor);
119
120
  });
120
- for (const stringifiedIdent of (0, micromatch_1.default)(stringifiedIdents, core_1.structUtils.stringifyIdent(pseudoDescriptor))) {
121
+ // As a special case, we support "*" as a pattern to upgrade all packages
122
+ const matches = stringifiedPseudoDescriptor === `*`
123
+ ? stringifiedIdents
124
+ : (0, micromatch_1.default)(stringifiedIdents, stringifiedPseudoDescriptor);
125
+ for (const stringifiedIdent of matches) {
121
126
  const ident = core_1.structUtils.parseIdent(stringifiedIdent);
122
127
  const existingDescriptor = workspace.manifest[target].get(ident.identHash);
123
128
  if (typeof existingDescriptor === `undefined`)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yarnpkg/plugin-essentials",
3
- "version": "4.0.0-rc.43",
3
+ "version": "4.0.0-rc.44",
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.43",
13
- "@yarnpkg/parsers": "^3.0.0-rc.43",
12
+ "@yarnpkg/fslib": "^3.0.0-rc.44",
13
+ "@yarnpkg/parsers": "^3.0.0-rc.44",
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.43",
25
- "@yarnpkg/core": "^4.0.0-rc.43",
26
- "@yarnpkg/plugin-git": "^3.0.0-rc.43"
24
+ "@yarnpkg/cli": "^4.0.0-rc.44",
25
+ "@yarnpkg/core": "^4.0.0-rc.44",
26
+ "@yarnpkg/plugin-git": "^3.0.0-rc.44"
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.43",
33
- "@yarnpkg/core": "^4.0.0-rc.43",
34
- "@yarnpkg/plugin-git": "^3.0.0-rc.43"
32
+ "@yarnpkg/cli": "^4.0.0-rc.44",
33
+ "@yarnpkg/core": "^4.0.0-rc.44",
34
+ "@yarnpkg/plugin-git": "^3.0.0-rc.44"
35
35
  },
36
36
  "repository": {
37
37
  "type": "git",