doc: remove Corepack documentation · nodejs/node@fa83489 · GitHub
Skip to content

Commit fa83489

Browse files
aduh95RafaelGSS
authored andcommitted
doc: remove Corepack documentation
PR-URL: #57635 Reviewed-By: Jordan Harband <ljharb@gmail.com> Reviewed-By: Zeyu "Alex" Yang <himself65@outlook.com> Reviewed-By: Chemi Atlow <chemi@atlow.co.il> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com> Reviewed-By: Darshan Sen <raisinten@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
1 parent 8988173 commit fa83489

4 files changed

Lines changed: 4 additions & 181 deletions

File tree

doc/api/corepack.md

Lines changed: 3 additions & 132 deletions

doc/api/index.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121
* [Cluster](cluster.md)
2222
* [Command-line options](cli.md)
2323
* [Console](console.md)
24-
* [Corepack](corepack.md)
2524
* [Crypto](crypto.md)
2625
* [Debugger](debugger.md)
2726
* [Deprecated APIs](deprecations.md)

doc/api/packages.md

Lines changed: 0 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -270,21 +270,6 @@ For completeness there is also `--input-type=commonjs`, for explicitly running
270270
string input as CommonJS. This is the default behavior if `--input-type` is
271271
unspecified.
272272

273-
## Determining package manager
274-
275-
> Stability: 1 - Experimental
276-
277-
While all Node.js projects are expected to be installable by all package
278-
managers once published, their development teams are often required to use one
279-
specific package manager. To make this process easier, Node.js ships with a
280-
tool called [Corepack][] that aims to make all package managers transparently
281-
available in your environment - provided you have Node.js installed.
282-
283-
By default Corepack won't enforce any specific package manager and will use
284-
the generic "Last Known Good" versions associated with each Node.js release,
285-
but you can improve this experience by setting the [`"packageManager"`][] field
286-
in your project's `package.json`.
287-
288273
## Package entry points
289274

290275
In a package's `package.json` file, two fields can define entry points for a
@@ -916,8 +901,6 @@ The following fields in `package.json` files are used in Node.js:
916901
by package managers as the name of the package.
917902
* [`"main"`][] - The default module when loading the package, if exports is not
918903
specified, and in versions of Node.js prior to the introduction of exports.
919-
* [`"packageManager"`][] - The package manager recommended when contributing to
920-
the package. Leveraged by the [Corepack][] shims.
921904
* [`"type"`][] - The package type determining whether to load `.js` files as
922905
CommonJS or ES modules.
923906
* [`"exports"`][] - Package exports and conditional exports. When present,
@@ -982,33 +965,6 @@ via `require()`](modules.md#folders-as-modules).
982965
require('./path/to/directory');
983966
```
984967

985-
### `"packageManager"`
986-
987-
<!-- YAML
988-
added:
989-
- v16.9.0
990-
- v14.19.0
991-
-->
992-
993-
> Stability: 1 - Experimental
994-
995-
* Type: {string}
996-
997-
```json
998-
{
999-
"packageManager": "<package manager name>@<version>"
1000-
}
1001-
```
1002-
1003-
The `"packageManager"` field defines which package manager is expected to be
1004-
used when working on the current project. It can be set to any of the
1005-
[supported package managers][], and will ensure that your teams use the exact
1006-
same package manager versions without having to install anything else other than
1007-
Node.js.
1008-
1009-
This field is currently experimental and needs to be opted-in; check the
1010-
[Corepack][] page for details about the procedure.
1011-
1012968
### `"type"`
1013969

1014970
<!-- YAML
@@ -1148,7 +1104,6 @@ This field defines [subpath imports][] for the current package.
11481104

11491105
[CommonJS]: modules.md
11501106
[Conditional exports]: #conditional-exports
1151-
[Corepack]: corepack.md
11521107
[ES module]: esm.md
11531108
[ES modules]: esm.md
11541109
[Node.js documentation for this section]: https://github.com/nodejs/node/blob/HEAD/doc/api/packages.md#conditions-definitions
@@ -1159,7 +1114,6 @@ This field defines [subpath imports][] for the current package.
11591114
[`"imports"`]: #imports
11601115
[`"main"`]: #main
11611116
[`"name"`]: #name
1162-
[`"packageManager"`]: #packagemanager
11631117
[`"type"`]: #type
11641118
[`--conditions` / `-C` flag]: #resolving-user-conditions
11651119
[`--experimental-default-type`]: cli.md#--experimental-default-typetype
@@ -1175,7 +1129,6 @@ This field defines [subpath imports][] for the current package.
11751129
[self-reference]: #self-referencing-a-package-using-its-name
11761130
[subpath exports]: #subpath-exports
11771131
[subpath imports]: #subpath-imports
1178-
[supported package managers]: corepack.md#supported-package-managers
11791132
[the dual CommonJS/ES module packages section]: #dual-commonjses-module-packages
11801133
[the full specifier path]: esm.md#mandatory-file-extensions
11811134
[the package examples repository]: https://github.com/nodejs/package-examples

test/doctool/test-make-doc.mjs

Lines changed: 1 addition & 1 deletion

0 commit comments

Comments
 (0)