Skip to content

Commit

Permalink
specify main explicitly
Browse files Browse the repository at this point in the history
  • Loading branch information
koenpunt committed Apr 22, 2017
1 parent e4bab39 commit 4475df8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,10 @@
"download": "https://github.com/harvesthq/chosen/releases",
"docs": "https://harvesthq.github.io/chosen/"
},
"main": [
"chosen.jquery.js",
"chosen.css"
],
"files": [
"chosen.jquery.js",
"chosen.jquery.min.js",
Expand Down
4 changes: 2 additions & 2 deletions tasks/package.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ module.exports = (grunt) ->
contributors: pkg.contributors
dependencies: pkg.dependencies
files: extra.files
main: extra.files[0]
main: extra.main[0]
repository: pkg.repository

grunt.file.write('public/package.json', JSON.stringify(json, null, 2) + "\n")
Expand All @@ -54,7 +54,7 @@ module.exports = (grunt) ->
license: extra.license.url
authors: pkg.contributors
dependencies: pkg.dependencies
main: extra.files
main: extra.main
ignore: []
repository: pkg.repository

Expand Down

0 comments on commit 4475df8

Please sign in to comment.