-
Notifications
You must be signed in to change notification settings - Fork 59
Open
Description
👋 folks!
I wonder if you would be interested in a small change to INVALID_PACKAGE_NAME.ts. The rule is triggered even if the root workspace is not named, but turning this rule off makes all workspace names non-lintable.
We could allow root package name to be empty. It's not referred to from other namespaces and not published on npm, so the name is not used anywhere in practice.
Suggestion:
manypkg/packages/cli/src/checks/INVALID_PACKAGE_NAME.ts
Lines 14 to 15 in a01efc9
validate: (workspace) => { | |
if (!workspace.packageJson.name) { |
↓
validate: (workspace) => {
- if (!workspace.packageJson.name) {
+ if (!workspace.packageJson.name && workspace.relativeDir !== ".") {
WYDT?
Metadata
Metadata
Assignees
Labels
No labels