air-drop icon indicating copy to clipboard operation
air-drop copied to clipboard

Glob wildcards don't seem to work

Open ghost opened this issue 13 years ago • 1 comments

Here's my sample code: var packagedFrontend = airDrop('/frontend.js').include('frontend/*/.js');

This throws an error:

/node_modules/air-drop/lib/air-drop.js:46 if (err) throw err; ^ Path Not Found: node_modules/underscore/index

ghost avatar Aug 29 '12 15:08 ghost

Try this:

var packagedFrontend = airDrop('/frontend.js').include(__dirname + '/frontend/**/*.js');

You may have to update the path, but the important part is to use ** for wildcard directories and *.js for wildcard filenames.

chrisjpowers avatar Aug 29 '12 15:08 chrisjpowers