Skip to content

Commit ef0d2ef

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]> 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 b9d767c commit ef0d2ef

File tree

5 files changed

+865
-819
lines changed

5 files changed

+865
-819
lines changed

.eslintrc.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ module.exports = {
4545
'doc/api/esm.md',
4646
'doc/api/module.md',
4747
'doc/api/modules.md',
48+
'doc/api/packages.md',
4849
'test/es-module/test-esm-type-flag.js',
4950
'test/es-module/test-esm-type-flag-alias.js',
5051
'*.mjs',

doc/api/errors.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2560,14 +2560,14 @@ closed.
25602560
[crypto digest algorithm]: crypto.html#crypto_crypto_gethashes
25612561
[domains]: domain.html
25622562
[event emitter-based]: events.html#events_class_eventemitter
2563-
[exports]: esm.html#esm_package_entry_points
2563+
[exports]: packages.html#packages_package_entry_points
25642564
[file descriptors]: https://en.wikipedia.org/wiki/File_descriptor
25652565
[policy]: policy.html
25662566
[stream-based]: stream.html
25672567
[syscall]: https://man7.org/linux/man-pages/man2/syscalls.2.html
25682568
[Subresource Integrity specification]: https://www.w3.org/TR/SRI/#the-integrity-attribute
25692569
[try-catch]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/try...catch
25702570
[vm]: vm.html
2571-
[self-reference a package using its name]: esm.html#esm_self_referencing_a_package_using_its_name
2572-
[define a custom subpath]: esm.html#esm_subpath_exports
2573-
["imports" field]: esm.html#esm_internal_package_imports
2571+
[self-reference a package using its name]: packages.html#packages_self_referencing_a_package_using_its_name
2572+
[define a custom subpath]: packages.html#packages_subpath_exports
2573+
["imports" field]: packages.html#packages_internal_package_imports

0 commit comments

Comments
 (0)