diff --git a/lib/index.js b/lib/index.js index 26b5a4f..42d2de3 100644 --- a/lib/index.js +++ b/lib/index.js @@ -97,7 +97,7 @@ function CdnJsImporter (options, callback) { * @param {Object|String} lib The git url as string or an object containing: * - `git` (String): The `git` url. * - `dir` (String): The directory containing the files which should be imported (default: `"/dist"` or `"/build"` or `"/src"` or `"/"`). - * - `map` (Array): The file map used by cdnjs in autoupdate process (default: `[{ basePath: lib.dir , files: ["*"] }]`). + * - `map` (Array): The file map used by cdnjs in autoupdate process (default: `[{ basePath: lib.dir , files: ["**/*"] }]`). * @param {Function} callback The callback function called with `error` and `data`. * @return {CdnJsImporter} The `CdnJsImporter` instance. */ @@ -185,7 +185,7 @@ CdnJsImporter.prototype.add = function (lib, callback) { package.npmFileMap = lib.map || [ { basePath: lib.dir - , files: ["*"] + , files: ["**/*"] } ]; diff --git a/package.json b/package.json index 6cd36a2..95c9bed 100644 --- a/package.json +++ b/package.json @@ -18,6 +18,13 @@ "library" ], "author": "Ionică Bizău ", + "contributors": [ + { + "name": "Peter Dave Hello", + "email": "hsu peterdavehello org", + "website": "https://www.peterdavehello.org" + } + ], "license": "MIT", "bugs": { "url": "https://github.com/IonicaBizau/cdnjs-importer/issues"