File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change
1
+ const path = require ( 'path' )
1
2
const npmPacklist = require ( 'npm-packlist' )
2
3
3
4
module . exports = { getPublishableFiles}
4
5
5
- function getPublishableFiles ( path ) {
6
- return npmPacklist ( { path } )
6
+ function getPublishableFiles ( basePath ) {
7
+ return npmPacklist ( { basePath } ) . then ( files => files . map ( file => path . normalize ( file ) ) )
7
8
}
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ const pkg = require('../package.json')
5
5
6
6
const baseFixturesDir = path . join ( __dirname , 'fixtures' , 'verify' )
7
7
const sanipack = path . resolve ( __dirname , '..' , pkg . bin . sanipack )
8
- const normalize = ( dirPath ) => dirPath . replace ( / \/ / g , path . sep )
8
+ const normalize = ( dirPath ) => path . normalize ( dirPath )
9
9
const options = { timeout : 15000 }
10
10
11
11
tap . test ( 'can verify valid plugin (in cwd)' , options , async ( t ) => {
You can’t perform that action at this time.
0 commit comments