This repository was archived by the owner on Mar 1, 2020. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +7
-4
lines changed
Expand file tree Collapse file tree 3 files changed +7
-4
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change 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" : {
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"
You can’t perform that action at this time.
0 commit comments