导出目标的路径规则和验证
【Path Rules and Validation for Export Targets】
在将路径定义为 "exports" 字段中的目标时,Node.js 会执行多项规则以确保安全性、可预测性和适当的封装。理解这些规则对于发布软件包的作者来说至关重要。
【When defining paths as targets in the "exports" field, Node.js enforces
several rules to ensure security, predictability, and proper encapsulation.
Understanding these rules is crucial for authors publishing packages.】