소스 검색

Add ability to just require package in nodejs

Norbert Fuksz 9 년 전
부모
커밋
4aae128bed
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  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.",
     "repository" : {
-        "type": "git", 
+        "type": "git",
         "url": "https://github.com/kartik-v/bootstrap-fileinput.git"
     },
     "bugs": {
@@ -26,6 +26,7 @@
         "progress",
         "gallery"
     ],
+    "main": "./js/fileinput.js",
     "peerDependencies": {
         "jquery": ">= 1.9.0",
         "bootstrap": "~3"