@yarnpkg/plugin-pnpm 2.0.0-rc.48 → 2.0.0-rc.49

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/PnpmLinker.js CHANGED
@@ -99,7 +99,6 @@ class PnpmInstaller {
99
99
  };
100
100
  }
101
101
  async installPackageHard(pkg, fetchResult, api) {
102
- var _a;
103
102
  const packagePaths = getPackagePaths(pkg, { project: this.opts.project });
104
103
  const packageLocation = packagePaths.packageLocation;
105
104
  this.customData.locatorByPath.set(packageLocation, core_1.structUtils.stringifyLocator(pkg));
@@ -121,7 +120,7 @@ class PnpmInstaller {
121
120
  const isVirtual = core_1.structUtils.isVirtualLocator(pkg);
122
121
  const devirtualizedLocator = isVirtual ? core_1.structUtils.devirtualizeLocator(pkg) : pkg;
123
122
  const buildConfig = {
124
- manifest: (_a = await core_1.Manifest.tryFind(fetchResult.prefixPath, { baseFs: fetchResult.packageFs })) !== null && _a !== void 0 ? _a : new core_1.Manifest(),
123
+ manifest: await core_1.Manifest.tryFind(fetchResult.prefixPath, { baseFs: fetchResult.packageFs }) ?? new core_1.Manifest(),
125
124
  misc: {
126
125
  hasBindingGyp: plugin_pnp_1.jsInstallUtils.hasBindingGyp(fetchResult),
127
126
  },
@@ -304,12 +303,11 @@ async function getNodeModulesListing(nmPath) {
304
303
  return listing;
305
304
  }
306
305
  async function cleanNodeModules(nmPath, extraneous) {
307
- var _a;
308
306
  const removeNamePromises = [];
309
307
  const scopesToRemove = new Set();
310
308
  for (const name of extraneous.keys()) {
311
309
  removeNamePromises.push(fslib_1.xfs.removePromise(fslib_1.ppath.join(nmPath, name)));
312
- const scope = (_a = core_1.structUtils.tryParseIdent(name)) === null || _a === void 0 ? void 0 : _a.scope;
310
+ const scope = core_1.structUtils.tryParseIdent(name)?.scope;
313
311
  if (scope) {
314
312
  scopesToRemove.add(`@${scope}`);
315
313
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yarnpkg/plugin-pnpm",
3
- "version": "2.0.0-rc.48",
3
+ "version": "2.0.0-rc.49",
4
4
  "license": "BSD-2-Clause",
5
5
  "main": "./lib/index.js",
6
6
  "exports": {
@@ -8,20 +8,20 @@
8
8
  "./package.json": "./package.json"
9
9
  },
10
10
  "dependencies": {
11
- "@yarnpkg/fslib": "^3.0.0-rc.48",
12
- "@yarnpkg/plugin-pnp": "^4.0.0-rc.48",
13
- "@yarnpkg/plugin-stage": "^4.0.0-rc.48",
14
- "clipanion": "^3.2.1",
11
+ "@yarnpkg/fslib": "^3.0.0-rc.49",
12
+ "@yarnpkg/plugin-pnp": "^4.0.0-rc.49",
13
+ "@yarnpkg/plugin-stage": "^4.0.0-rc.49",
14
+ "clipanion": "^4.0.0-rc.2",
15
15
  "p-limit": "^2.2.0",
16
16
  "tslib": "^2.4.0"
17
17
  },
18
18
  "peerDependencies": {
19
- "@yarnpkg/cli": "^4.0.0-rc.48",
20
- "@yarnpkg/core": "^4.0.0-rc.48"
19
+ "@yarnpkg/cli": "^4.0.0-rc.49",
20
+ "@yarnpkg/core": "^4.0.0-rc.49"
21
21
  },
22
22
  "devDependencies": {
23
- "@yarnpkg/cli": "^4.0.0-rc.48",
24
- "@yarnpkg/core": "^4.0.0-rc.48"
23
+ "@yarnpkg/cli": "^4.0.0-rc.49",
24
+ "@yarnpkg/core": "^4.0.0-rc.49"
25
25
  },
26
26
  "repository": {
27
27
  "type": "git",