소스 검색

Move almost and jquery-mousewheel to devDependencies (#5489)

These two are required at build time to generate the full builds
of Select2 (for jQuery Mousewheel) and to inject the AMD loader
(for Almond.js). They are not required for anyone who depends on
Select2, since jQuery Mousewheel is an optional dependency.

This may result in some people needing to add jQuery Mousewheel to
their projects as a required dependency, if they were expecting
it to be added by Select2 before.
Kevin Brown 6 년 전
부모
커밋
2a5f46bcc4
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      package.json

+ 2 - 2
package.json

@@ -47,6 +47,7 @@
     }
   },
   "devDependencies": {
+    "almond": "~0.3.1",
     "grunt": "^0.4.5",
     "grunt-cli": "^0.1.13",
     "grunt-contrib-concat": "^0.4.0",
@@ -57,10 +58,9 @@
     "grunt-contrib-uglify": "~0.4.0",
     "grunt-contrib-watch": "~0.6.0",
     "grunt-sass": "^1.0.0",
+    "jquery-mousewheel": "~3.1.13",
     "node-sass": "^4.5.3"
   },
   "dependencies": {
-    "almond": "~0.3.1",
-    "jquery-mousewheel": "~3.1.13"
   }
 }