Skip to content

Commit 3620b4d

Browse files
committed
Build: Add a main field, prepublish, and move jquery dependency
Closes jquery#99
1 parent 54ee1ae commit 3620b4d

File tree

2 files changed

+13
-3
lines changed

2 files changed

+13
-3
lines changed

.npmignore

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
.project
2+
.settings
3+
*~
4+
*.diff
5+
*.patch
6+
/*.html
7+
.DS_Store
8+
node_modules

package.json

+5-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"name": "jquery-migrate",
33
"title": "jQuery Migrate",
4+
"main": "dist/jquery-migrate.js",
45
"description": "Migrate older jQuery code to jQuery 1.9+",
56
"version": "1.2.1",
67
"homepage": "https://github.com/jquery/jquery-migrate",
@@ -21,9 +22,6 @@
2122
"url": "https://github.com/jquery/jquery-migrate/blob/1.2.1/LICENSE-MIT"
2223
}
2324
],
24-
"dependencies": {
25-
"jquery": ">=1.6.4"
26-
},
2725
"devDependencies": {
2826
"grunt-git-authors": "~1.2.0",
2927
"grunt-contrib-concat": "~0.1.2",
@@ -32,7 +30,11 @@
3230
"grunt-contrib-jshint": "~0.2.0",
3331
"grunt-contrib-uglify": "~0.1.2",
3432
"grunt": "0.4.1",
33+
"jquery": ">=1.6.4",
3534
"testswarm": "0.2.2"
3635
},
36+
"scripts": {
37+
"prepublish": "grunt"
38+
},
3739
"keywords": []
3840
}

0 commit comments

Comments
 (0)