Selaa lähdekoodia

Add ability to just require package in nodejs

Norbert Fuksz 9 vuotta sitten
vanhempi
commit
4aae128bed
1 muutettua tiedostoa jossa 2 lisäystä ja 1 poistoa
  1. 2 1
      package.json

+ 2 - 1
package.json

@@ -7,7 +7,7 @@
     ],
     ],
     "description": "An enhanced HTML 5 file input for Bootstrap 3.x with file preview, multiple selection, ajax uploads, and more features.",
     "description": "An enhanced HTML 5 file input for Bootstrap 3.x with file preview, multiple selection, ajax uploads, and more features.",
     "repository" : {
     "repository" : {
-        "type": "git", 
+        "type": "git",
         "url": "https://github.com/kartik-v/bootstrap-fileinput.git"
         "url": "https://github.com/kartik-v/bootstrap-fileinput.git"
     },
     },
     "bugs": {
     "bugs": {
@@ -26,6 +26,7 @@
         "progress",
         "progress",
         "gallery"
         "gallery"
     ],
     ],
+    "main": "./js/fileinput.js",
     "peerDependencies": {
     "peerDependencies": {
         "jquery": ">= 1.9.0",
         "jquery": ">= 1.9.0",
         "bootstrap": "~3"
         "bootstrap": "~3"