Skip to content

Commit

Permalink
When testing yarn pack, use fs.walk instead of fs.readdir
Browse files Browse the repository at this point in the history
This ensures that files inside directories are listed too.
  • Loading branch information
josephfrazier committed Apr 17, 2017
1 parent 97bfda9 commit e78247d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion __tests__/commands/pack.js
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ export async function getFilesFromArchive(source, destination): Promise<Array<st
.on('error', reject);
});
await unzip;
const files = await fs.readdir(destination);
const files = (await fs.walk(destination)).map(({relative}) => relative);
return files;
}

Expand Down

0 comments on commit e78247d

Please sign in to comment.