We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5ac7395 commit f026bc7Copy full SHA for f026bc7
.yarn/versions/c78e53dc.yml
@@ -0,0 +1,2 @@
1
+releases:
2
+ "@yarnpkg/plugin-npm-cli": patch
packages/plugin-npm-cli/sources/commands/npm/publish.ts
@@ -93,6 +93,11 @@ export default class NpmPublishCommand extends BaseCommand {
93
await scriptUtils.maybeExecuteWorkspaceLifecycleScript(workspace, `prepublish`, {report});
94
95
await packUtils.prepareForPack(workspace, {report}, async () => {
96
+ if (workspace.manifest.name === null || workspace.manifest.version === null)
97
+ throw new UsageError(`Workspaces must have valid names and versions to be published on an external registry`);
98
+
99
+ const ident = workspace.manifest.name;
100
101
const files = await packUtils.genPackList(workspace);
102
103
for (const file of files)
0 commit comments