@yarnpkg/plugin-pnpm 2.0.1 → 2.1.0

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
@@ -241,7 +241,7 @@ function getNodeModulesLocation(project) {
241
241
  return fslib_1.ppath.join(project.cwd, fslib_1.Filename.nodeModules);
242
242
  }
243
243
  function getStoreLocation(project) {
244
- return fslib_1.ppath.join(getNodeModulesLocation(project), `.store`);
244
+ return project.configuration.get(`pnpmStoreFolder`);
245
245
  }
246
246
  function getPackagePaths(locator, { project }) {
247
247
  const pkgKey = core_1.structUtils.slugifyLocator(locator);
package/lib/index.d.ts CHANGED
@@ -1,5 +1,11 @@
1
1
  import { Plugin } from '@yarnpkg/core';
2
+ import { PortablePath } from '@yarnpkg/fslib';
2
3
  import { PnpmLinker } from './PnpmLinker';
3
4
  export { PnpmLinker };
5
+ declare module '@yarnpkg/core' {
6
+ interface ConfigurationValueMap {
7
+ pnpmStoreFolder: PortablePath;
8
+ }
9
+ }
4
10
  declare const plugin: Plugin;
5
11
  export default plugin;
package/lib/index.js CHANGED
@@ -1,9 +1,17 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.PnpmLinker = void 0;
4
+ const core_1 = require("@yarnpkg/core");
4
5
  const PnpmLinker_1 = require("./PnpmLinker");
5
6
  Object.defineProperty(exports, "PnpmLinker", { enumerable: true, get: function () { return PnpmLinker_1.PnpmLinker; } });
6
7
  const plugin = {
8
+ configuration: {
9
+ pnpmStoreFolder: {
10
+ description: `By default, the store is stored in the 'node_modules/.store' of the project. Sometimes in CI scenario's it is convenient to store this in a different location so it can be cached and reused.`,
11
+ type: core_1.SettingsType.ABSOLUTE_PATH,
12
+ default: `./node_modules/.store`,
13
+ },
14
+ },
7
15
  linkers: [
8
16
  PnpmLinker_1.PnpmLinker,
9
17
  ],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yarnpkg/plugin-pnpm",
3
- "version": "2.0.1",
3
+ "version": "2.1.0",
4
4
  "license": "BSD-2-Clause",
5
5
  "main": "./lib/index.js",
6
6
  "exports": {
@@ -9,19 +9,19 @@
9
9
  },
10
10
  "dependencies": {
11
11
  "@yarnpkg/fslib": "^3.1.2",
12
- "@yarnpkg/plugin-pnp": "^4.0.7",
12
+ "@yarnpkg/plugin-pnp": "^4.0.8",
13
13
  "@yarnpkg/plugin-stage": "^4.0.1",
14
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.7.0",
20
- "@yarnpkg/core": "^4.2.1"
19
+ "@yarnpkg/cli": "^4.8.0",
20
+ "@yarnpkg/core": "^4.3.0"
21
21
  },
22
22
  "devDependencies": {
23
- "@yarnpkg/cli": "^4.7.0",
24
- "@yarnpkg/core": "^4.2.1"
23
+ "@yarnpkg/cli": "^4.8.0",
24
+ "@yarnpkg/core": "^4.3.0"
25
25
  },
26
26
  "repository": {
27
27
  "type": "git",