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

Commit cb3ec53

Browse files
committed
Merge branch 'PeterDaveHello-patch-1'
2 parents 5aa8dbf + 7eda47f commit cb3ec53

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ Adds a new library in the local cdnjs repository.
4141
- **Object|String** `lib`: The git url as string or an object containing:
4242
- `git` (String): The `git` url.
4343
- `dir` (String): The directory containing the files which should be imported (default: `"/dist"` or `"/build"` or `"/src"` or `"/"`).
44-
- `map` (Array): The file map used by cdnjs in autoupdate process (default: `[{ basePath: lib.dir , files: ["*"] }]`).
44+
- `map` (Array): The file map used by cdnjs in autoupdate process (default: `[{ basePath: lib.dir , files: ["**/*"] }]`).
4545
- **Function** `callback`: The callback function called with `error` and `data`.
4646

4747
#### Return

lib/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ function CdnJsImporter (options, callback) {
9797
* @param {Object|String} lib The git url as string or an object containing:
9898
* - `git` (String): The `git` url.
9999
* - `dir` (String): The directory containing the files which should be imported (default: `"/dist"` or `"/build"` or `"/src"` or `"/"`).
100-
* - `map` (Array): The file map used by cdnjs in autoupdate process (default: `[{ basePath: lib.dir , files: ["*"] }]`).
100+
* - `map` (Array): The file map used by cdnjs in autoupdate process (default: `[{ basePath: lib.dir , files: ["**/*"] }]`).
101101
* @param {Function} callback The callback function called with `error` and `data`.
102102
* @return {CdnJsImporter} The `CdnJsImporter` instance.
103103
*/
@@ -185,7 +185,7 @@ CdnJsImporter.prototype.add = function (lib, callback) {
185185
package.npmFileMap = lib.map || [
186186
{
187187
basePath: lib.dir
188-
, files: ["*"]
188+
, files: ["**/*"]
189189
}
190190
];
191191

package.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "cdnjs-importer",
3-
"version": "1.2.0",
3+
"version": "1.3.0",
44
"description": "Easy way to import a library into CDNJS.",
55
"main": "lib/index.js",
66
"bin": {
@@ -18,6 +18,9 @@
1818
"library"
1919
],
2020
"author": "Ionică Bizău <bizauionica@gmail.com>",
21+
"contributors": [
22+
"Peter Dave Hello <hsu@peterdavehello.org>"
23+
],
2124
"license": "MIT",
2225
"bugs": {
2326
"url": "https://github.com/IonicaBizau/cdnjs-importer/issues"

0 commit comments

Comments
 (0)