{"action":"created","issue":{"url":"https://api.github.com/repos/isagalaev/highlight.js/issues/643","labels_url":"https://api.github.com/repos/isagalaev/highlight.js/issues/643/labels{/name}","comments_url":"https://api.github.com/repos/isagalaev/highlight.js/issues/643/comments","events_url":"https://api.github.com/repos/isagalaev/highlight.js/issues/643/events","html_url":"https://github.com/isagalaev/highlight.js/issues/643","id":49208494,"number":643,"title":"Won't work when installed from npm.","user":{"login":"pgn-vole","id":2323627,"avatar_url":"https://avatars.githubusercontent.com/u/2323627?v=3","gravatar_id":"","url":"https://api.github.com/users/pgn-vole","html_url":"https://github.com/pgn-vole","followers_url":"https://api.github.com/users/pgn-vole/followers","following_url":"https://api.github.com/users/pgn-vole/following{/other_user}","gists_url":"https://api.github.com/users/pgn-vole/gists{/gist_id}","starred_url":"https://api.github.com/users/pgn-vole/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pgn-vole/subscriptions","organizations_url":"https://api.github.com/users/pgn-vole/orgs","repos_url":"https://api.github.com/users/pgn-vole/repos","events_url":"https://api.github.com/users/pgn-vole/events{/privacy}","received_events_url":"https://api.github.com/users/pgn-vole/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":13,"created_at":"2014-11-18T11:06:10Z","updated_at":"2015-06-02T20:18:16Z","closed_at":"2014-11-18T18:27:27Z","body":"The client side version seems to not be included inside the npm package of the library.\r\n\r\nWhen trying to load  `node_modules/highlight.js/lib/highlight.js` an error is thrown :\r\n\r\n`Uncaught ReferenceError: module is not defined `.\r\n\r\nI guess the client side version of the library should be packaged with it so that the module can be installed from npm."},"comment":{"url":"https://api.github.com/repos/isagalaev/highlight.js/issues/comments/108085361","html_url":"https://github.com/isagalaev/highlight.js/issues/643#issuecomment-108085361","issue_url":"https://api.github.com/repos/isagalaev/highlight.js/issues/643","id":108085361,"user":{"login":"isagalaev","id":99931,"avatar_url":"https://avatars.githubusercontent.com/u/99931?v=3","gravatar_id":"","url":"https://api.github.com/users/isagalaev","html_url":"https://github.com/isagalaev","followers_url":"https://api.github.com/users/isagalaev/followers","following_url":"https://api.github.com/users/isagalaev/following{/other_user}","gists_url":"https://api.github.com/users/isagalaev/gists{/gist_id}","starred_url":"https://api.github.com/users/isagalaev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/isagalaev/subscriptions","organizations_url":"https://api.github.com/users/isagalaev/orgs","repos_url":"https://api.github.com/users/isagalaev/repos","events_url":"https://api.github.com/users/isagalaev/events{/privacy}","received_events_url":"https://api.github.com/users/isagalaev/received_events","type":"User","site_admin":false},"created_at":"2015-06-02T20:18:16Z","updated_at":"2015-06-02T20:18:16Z","body":"> Just adding a package.json to the custom builds will solve a lot of trouble, right ?\r\n\r\nHow? Thing is, the \"trouble\" is different for different people: some want files from GitHub master to work in the browser as is, some want this from the npm package, some want the bower package, etc. And everyone expects to find docs in different places too :-). It's hard for me to appreciate all these problems myself as I happen not to use the library in any of these ways.\r\n\r\nSo in your case, where do you expect to find a package.json and what problem it should solve?"}}