Skip to content

Commit 7c1700e

Browse files
aduh95MylesBorins
authored andcommitted
doc: move package config docs to separate page
This part of the docs aims to contain documentation regarding package configuration that covers both ESM and CJS realms. * Move Enabling section * Update Enabling section * Remove -u flag * Package scopes do not carry through `node_modules` folders Refs: nodejs/modules#539 Co-authored-by: Geoffrey Booth <[email protected]>> Co-authored-by: Guy Bedford <[email protected]> Backport-PR-URL: #35757 PR-URL: #34748 Reviewed-By: Derek Lewis <[email protected]> Reviewed-By: Geoffrey Booth <[email protected]> Reviewed-By: Guy Bedford <[email protected]> Reviewed-By: Trivikram Kamat <[email protected]> Reviewed-By: Ruy Adorno <[email protected]>
1 parent 7510667 commit 7c1700e

File tree

5 files changed

+865
-819
lines changed

5 files changed

+865
-819
lines changed

.eslintrc.js

+1
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ module.exports = {
4444
files: [
4545
'doc/api/esm.md',
4646
'doc/api/modules.md',
47+
'doc/api/packages.md',
4748
'test/es-module/test-esm-type-flag.js',
4849
'test/es-module/test-esm-type-flag-alias.js',
4950
'*.mjs',

doc/api/errors.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -2529,14 +2529,14 @@ closed.
25292529
[crypto digest algorithm]: crypto.html#crypto_crypto_gethashes
25302530
[domains]: domain.html
25312531
[event emitter-based]: events.html#events_class_eventemitter
2532-
[exports]: esm.html#esm_package_entry_points
2532+
[exports]: packages.html#packages_package_entry_points
25332533
[file descriptors]: https://en.wikipedia.org/wiki/File_descriptor
25342534
[policy]: policy.html
25352535
[stream-based]: stream.html
25362536
[syscall]: https://man7.org/linux/man-pages/man2/syscalls.2.html
25372537
[Subresource Integrity specification]: https://www.w3.org/TR/SRI/#the-integrity-attribute
25382538
[try-catch]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/try...catch
25392539
[vm]: vm.html
2540-
[self-reference a package using its name]: esm.html#esm_self_referencing_a_package_using_its_name
2541-
[define a custom subpath]: esm.html#esm_subpath_exports
2542-
["imports" field]: esm.html#esm_internal_package_imports
2540+
[self-reference a package using its name]: packages.html#packages_self_referencing_a_package_using_its_name
2541+
[define a custom subpath]: packages.html#packages_subpath_exports
2542+
["imports" field]: packages.html#packages_internal_package_imports

0 commit comments

Comments
 (0)