sindresorhus / globby

User-friendly glob matching
MIT License
2.53k stars 130 forks source link

expandDirectories doesn't work with `**` #147

Open arcanis opened 4 years ago

arcanis commented 4 years ago

Runkit

const fs = require(`fs`);
const globby = require(`globby`);

fs.mkdirSync(`foo`);
fs.writeFileSync(`foo/bar.ts`, ``);

// Works -> ["foo/bar.ts"]
console.log(globby.sync(`foo`));

// Doesn't work -> []
console.log(globby.sync(`**/foo`));