Skip to content
This repository has been archived by the owner on Mar 1, 2020. It is now read-only.

Use **/* as default basePath instead of * #3

Merged
merged 2 commits into from
Apr 26, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*/
Expand Down Expand Up @@ -185,7 +185,7 @@ CdnJsImporter.prototype.add = function (lib, callback) {
package.npmFileMap = lib.map || [
{
basePath: lib.dir
, files: ["*"]
, files: ["**/*"]
}
];

Expand Down
7 changes: 7 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,13 @@
"library"
],
"author": "Ionică Bizău <bizauionica@gmail.com>",
"contributors": [
{
"name": "Peter Dave Hello",
"email": "hsu <at> peterdavehello <dot> org",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This will be normalized on the next npm init.

"website": "https://www.peterdavehello.org"
}
],
"license": "MIT",
"bugs": {
"url": "https://github.com/IonicaBizau/cdnjs-importer/issues"
Expand Down