@pnpm/core 2.2.2 → 2.2.6

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.
Files changed (2) hide show
  1. package/README.md +2 -2
  2. package/package.json +9 -7
package/README.md CHANGED
@@ -7,13 +7,13 @@
7
7
  Install it via npm.
8
8
 
9
9
  ```
10
- <pnpm|yarn|npm> add @pnpm/core
10
+ pnpm add @pnpm/core
11
11
  ```
12
12
 
13
13
  It also depends on `@pnpm/logger` version `1`, so install it as well via:
14
14
 
15
15
  ```
16
- <pnpm|yarn|npm> add @pnpm/logger@1
16
+ pnpm add @pnpm/logger@1
17
17
  ```
18
18
 
19
19
  ## API
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@pnpm/core",
3
3
  "description": "Fast, disk space efficient installation engine",
4
- "version": "2.2.2",
4
+ "version": "2.2.6",
5
5
  "bugs": {
6
6
  "url": "https://github.com/pnpm/pnpm/issues"
7
7
  },
@@ -15,13 +15,13 @@
15
15
  "@pnpm/logger": "^4.0.0"
16
16
  },
17
17
  "dependencies": {
18
- "@pnpm/build-modules": "7.2.3",
18
+ "@pnpm/build-modules": "7.2.4",
19
19
  "@pnpm/constants": "5.0.0",
20
20
  "@pnpm/core-loggers": "6.1.2",
21
21
  "@pnpm/error": "2.0.0",
22
22
  "@pnpm/filter-lockfile": "5.0.15",
23
23
  "@pnpm/get-context": "5.3.4",
24
- "@pnpm/headless": "16.4.2",
24
+ "@pnpm/headless": "17.0.2",
25
25
  "@pnpm/hoist": "5.2.10",
26
26
  "@pnpm/lifecycle": "12.1.3",
27
27
  "@pnpm/link-bins": "6.2.8",
@@ -33,15 +33,16 @@
33
33
  "@pnpm/modules-cleaner": "11.0.19",
34
34
  "@pnpm/modules-yaml": "9.0.10",
35
35
  "@pnpm/normalize-registries": "2.0.11",
36
- "@pnpm/package-requester": "15.2.6",
36
+ "@pnpm/package-requester": "16.0.0",
37
37
  "@pnpm/parse-overrides": "1.0.0",
38
38
  "@pnpm/parse-wanted-dependency": "2.0.0",
39
39
  "@pnpm/prune-lockfile": "3.0.13",
40
40
  "@pnpm/read-modules-dir": "3.0.1",
41
41
  "@pnpm/read-package-json": "5.0.9",
42
42
  "@pnpm/read-project-manifest": "2.0.10",
43
+ "@pnpm/registry-mock": "2.12.1",
43
44
  "@pnpm/remove-bins": "2.0.11",
44
- "@pnpm/resolve-dependencies": "22.1.0",
45
+ "@pnpm/resolve-dependencies": "23.0.1",
45
46
  "@pnpm/resolver-base": "8.1.4",
46
47
  "@pnpm/store-controller-types": "11.0.10",
47
48
  "@pnpm/symlink-dependency": "4.0.11",
@@ -69,8 +70,9 @@
69
70
  "@pnpm/assert-store": "1.0.29",
70
71
  "@pnpm/cafs": "3.0.12",
71
72
  "@pnpm/client": "6.1.0",
73
+ "@pnpm/core": "2.2.6",
72
74
  "@pnpm/logger": "^4.0.0",
73
- "@pnpm/package-store": "12.1.6",
75
+ "@pnpm/package-store": "12.1.7",
74
76
  "@pnpm/prepare": "0.0.32",
75
77
  "@pnpm/store-path": "^5.0.0",
76
78
  "@pnpm/test-fixtures": "0.0.1",
@@ -142,5 +144,5 @@
142
144
  "test": "pnpm run compile && pnpm run _test",
143
145
  "compile": "rimraf lib tsconfig.tsbuildinfo && tsc --build && pnpm run lint -- --fix"
144
146
  },
145
- "readme": "# @pnpm/core\n\n> Fast, disk space efficient installation engine. Used by [pnpm](https://github.com/pnpm/pnpm)\n\n## Install\n\nInstall it via npm.\n\n```\n<pnpm|yarn|npm> add @pnpm/core\n```\n\nIt also depends on `@pnpm/logger` version `1`, so install it as well via:\n\n```\n<pnpm|yarn|npm> add @pnpm/logger@1\n```\n\n## API\n\n### `mutateModules(importers, options)`\n\nTODO\n\n### `link(linkFromPkgs, linkToModules, [options])`\n\nCreate symbolic links from the linked packages to the target package's `node_modules` (and its `node_modules/.bin`).\n\n**Arguments:**\n\n* `linkFromPkgs` - *String[]* - paths to the packages that should be linked.\n* `linkToModules` - *String* - path to the dependent package's `node_modules` directory.\n* `options.reporter` - *Function* - A function that listens for logs.\n\n### `linkToGlobal(linkFrom, options)`\n\nCreate a symbolic link from the specified package to the global `node_modules`.\n\n**Arguments:**\n\n* `linkFrom` - *String* - path to the package that should be linked.\n* `globalDir` - *String* - path to the global directory.\n* `options.reporter` - *Function* - A function that listens for logs.\n\n### `linkFromGlobal(pkgNames, linkTo, options)`\n\nCreate symbolic links from the global `pkgName`s to the `linkTo/node_modules` folder.\n\n**Arguments:**\n\n* `pkgNames` - *String[]* - packages to link.\n* `linkTo` - *String* - package to link to.\n* `globalDir` - *String* - path to the global directory.\n* `options.reporter` - *Function* - A function that listens for logs.\n\n### `storeStatus([options])`\n\nReturn the list of modified dependencies.\n\n**Arguments:**\n\n* `options.reporter` - *Function* - A function that listens for logs.\n\n**Returns:** `Promise<string[]>` - the paths to the modified packages of the current project. The paths contain the location of packages in the store,\nnot in the projects `node_modules` folder.\n\n### `storePrune([options])`\n\nRemove unreferenced packages from the store.\n\n## Hooks\n\nHooks are functions that can step into the installation process.\n\n### `readPackage(pkg: Manifest): Manifest | Promise<Manifest>`\n\nThis hook is called with every dependency's manifest information.\nThe modified manifest returned by this hook is then used by `@pnpm/core` during installation.\nAn async function is supported.\n\n**Example:**\n\n```js\nconst { installPkgs } = require('@pnpm/core')\n\ninstallPkgs({\n hooks: {readPackage}\n})\n\nfunction readPackage (pkg) {\n if (pkg.name === 'foo') {\n pkg.dependencies = {\n bar: '^2.0.0',\n }\n }\n return pkg\n}\n```\n\n### `afterAllResolved(lockfile: Lockfile): Lockfile | Promise<Lockfile>`\n\nThis hook is called after all dependencies are resolved. It recieves and returns the resolved lockfile object.\nAn async function is supported.\n\n## License\n\n[MIT](LICENSE)\n"
147
+ "readme": "# @pnpm/core\n\n> Fast, disk space efficient installation engine. Used by [pnpm](https://github.com/pnpm/pnpm)\n\n## Install\n\nInstall it via npm.\n\n```\npnpm add @pnpm/core\n```\n\nIt also depends on `@pnpm/logger` version `1`, so install it as well via:\n\n```\npnpm add @pnpm/logger@1\n```\n\n## API\n\n### `mutateModules(importers, options)`\n\nTODO\n\n### `link(linkFromPkgs, linkToModules, [options])`\n\nCreate symbolic links from the linked packages to the target package's `node_modules` (and its `node_modules/.bin`).\n\n**Arguments:**\n\n* `linkFromPkgs` - *String[]* - paths to the packages that should be linked.\n* `linkToModules` - *String* - path to the dependent package's `node_modules` directory.\n* `options.reporter` - *Function* - A function that listens for logs.\n\n### `linkToGlobal(linkFrom, options)`\n\nCreate a symbolic link from the specified package to the global `node_modules`.\n\n**Arguments:**\n\n* `linkFrom` - *String* - path to the package that should be linked.\n* `globalDir` - *String* - path to the global directory.\n* `options.reporter` - *Function* - A function that listens for logs.\n\n### `linkFromGlobal(pkgNames, linkTo, options)`\n\nCreate symbolic links from the global `pkgName`s to the `linkTo/node_modules` folder.\n\n**Arguments:**\n\n* `pkgNames` - *String[]* - packages to link.\n* `linkTo` - *String* - package to link to.\n* `globalDir` - *String* - path to the global directory.\n* `options.reporter` - *Function* - A function that listens for logs.\n\n### `storeStatus([options])`\n\nReturn the list of modified dependencies.\n\n**Arguments:**\n\n* `options.reporter` - *Function* - A function that listens for logs.\n\n**Returns:** `Promise<string[]>` - the paths to the modified packages of the current project. The paths contain the location of packages in the store,\nnot in the projects `node_modules` folder.\n\n### `storePrune([options])`\n\nRemove unreferenced packages from the store.\n\n## Hooks\n\nHooks are functions that can step into the installation process.\n\n### `readPackage(pkg: Manifest): Manifest | Promise<Manifest>`\n\nThis hook is called with every dependency's manifest information.\nThe modified manifest returned by this hook is then used by `@pnpm/core` during installation.\nAn async function is supported.\n\n**Example:**\n\n```js\nconst { installPkgs } = require('@pnpm/core')\n\ninstallPkgs({\n hooks: {readPackage}\n})\n\nfunction readPackage (pkg) {\n if (pkg.name === 'foo') {\n pkg.dependencies = {\n bar: '^2.0.0',\n }\n }\n return pkg\n}\n```\n\n### `afterAllResolved(lockfile: Lockfile): Lockfile | Promise<Lockfile>`\n\nThis hook is called after all dependencies are resolved. It recieves and returns the resolved lockfile object.\nAn async function is supported.\n\n## License\n\n[MIT](LICENSE)\n"
146
148
  }