File tree 2 files changed +3
-3
lines changed
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -74,7 +74,7 @@ class Pack extends BaseCommand {
74
74
for ( const { arg, filename, manifest } of manifests ) {
75
75
const tarballData = await libpack ( arg , this . npm . flatOptions )
76
76
const pkgContents = await getContents ( manifest , tarballData )
77
- const tarballFilename = path . join ( this . npm . config . get ( 'pack-destination' ) , filename )
77
+ const tarballFilename = path . resolve ( this . npm . config . get ( 'pack-destination' ) , filename )
78
78
79
79
if ( ! dryRun )
80
80
await writeFile ( tarballFilename , tarballData )
Original file line number Diff line number Diff line change @@ -53,7 +53,7 @@ t.test('should pack current directory with no arguments', (t) => {
53
53
54
54
const filename = `npm-${ require ( '../../package.json' ) . version } .tgz`
55
55
t . strictSame ( OUTPUT , [ [ filename ] ] )
56
- t . strictSame ( tarballFileName , filename )
56
+ t . strictSame ( tarballFileName , path . resolve ( filename ) )
57
57
t . end ( )
58
58
} )
59
59
} )
@@ -87,7 +87,7 @@ t.test('follows pack-destination config', (t) => {
87
87
88
88
const filename = `npm-${ require ( '../../package.json' ) . version } .tgz`
89
89
t . strictSame ( OUTPUT , [ [ filename ] ] )
90
- t . strictSame ( tarballFileName , path . join ( '/tmp/test' , filename ) )
90
+ t . strictSame ( tarballFileName , path . resolve ( '/tmp/test' , filename ) )
91
91
t . end ( )
92
92
} )
93
93
} )
You can’t perform that action at this time.
0 commit comments