File tree Expand file tree Collapse file tree 2 files changed +7
-0
lines changed
packages/plugin-npm-cli/sources/commands/npm Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Original file line number Diff line number Diff line change
1
+ releases :
2
+ " @yarnpkg/plugin-npm-cli " : patch
Original file line number Diff line number Diff line change @@ -93,6 +93,11 @@ export default class NpmPublishCommand extends BaseCommand {
93
93
await scriptUtils . maybeExecuteWorkspaceLifecycleScript ( workspace , `prepublish` , { report} ) ;
94
94
95
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
+
96
101
const files = await packUtils . genPackList ( workspace ) ;
97
102
98
103
for ( const file of files )
You can’t perform that action at this time.
0 commit comments