File tree Expand file tree Collapse file tree 2 files changed +9
-1
lines changed
Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -195,7 +195,11 @@ class Publish extends BaseCommand {
195195 if ( spec . type === 'directory' ) {
196196 return readJson ( `${ spec . fetchSpec } /package.json` )
197197 }
198- return pacote . manifest ( spec , { ...opts , fullMetadata : true } )
198+ return pacote . manifest ( spec , {
199+ ...opts ,
200+ fullMetadata : true ,
201+ fullReadJson : true ,
202+ } )
199203 }
200204}
201205module . exports = Publish
Original file line number Diff line number Diff line change @@ -290,6 +290,7 @@ t.test('can publish a tarball', async t => {
290290 name : 'my-cool-tarball' ,
291291 version : '1.2.3' ,
292292 } ) ,
293+ 'README.md' : 'This is my readme' ,
293294 } ,
294295 } )
295296 const tar = require ( 'tar' )
@@ -311,6 +312,9 @@ t.test('can publish a tarball', async t => {
311312 {
312313 name : 'my-cool-tarball' ,
313314 version : '1.2.3' ,
315+ readme : 'This is my readme' ,
316+ description : 'This is my readme' ,
317+ readmeFilename : 'README.md' ,
314318 } ,
315319 'sent manifest to lib pub'
316320 )
You can’t perform that action at this time.
0 commit comments