"name"
{
"name": "package-name"
}
"name"
字段定义了你的包名。发布到 npm 注册表需要满足 特定要求 的名称。
¥The "name"
field defines your package's name. Publishing to the
npm registry requires a name that satisfies
certain requirements.
除了 "exports"
字段之外,"name"
字段还可以用于 self-reference 使用其名称的包。
¥The "name"
field can be used in addition to the "exports"
field to
self-reference a package using its name.