{"action":"created","issue":{"url":"https://api.github.com/repos/dleitee/valid.js/issues/42","repository_url":"https://api.github.com/repos/dleitee/valid.js","labels_url":"https://api.github.com/repos/dleitee/valid.js/issues/42/labels{/name}","comments_url":"https://api.github.com/repos/dleitee/valid.js/issues/42/comments","events_url":"https://api.github.com/repos/dleitee/valid.js/issues/42/events","html_url":"https://github.com/dleitee/valid.js/issues/42","id":148164645,"number":42,"title":"NPM install fails when use ES6 import","user":{"login":"lucasferreira","id":234495,"avatar_url":"https://avatars.githubusercontent.com/u/234495?v=3","gravatar_id":"","url":"https://api.github.com/users/lucasferreira","html_url":"https://github.com/lucasferreira","followers_url":"https://api.github.com/users/lucasferreira/followers","following_url":"https://api.github.com/users/lucasferreira/following{/other_user}","gists_url":"https://api.github.com/users/lucasferreira/gists{/gist_id}","starred_url":"https://api.github.com/users/lucasferreira/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lucasferreira/subscriptions","organizations_url":"https://api.github.com/users/lucasferreira/orgs","repos_url":"https://api.github.com/users/lucasferreira/repos","events_url":"https://api.github.com/users/lucasferreira/events{/privacy}","received_events_url":"https://api.github.com/users/lucasferreira/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-04-13T19:45:38Z","updated_at":"2016-04-14T00:10:15Z","closed_at":null,"body":"Hi @dleitee \r\n\r\nI'm trying to use the ES6 import without sucess:\r\n\r\n```javascript\r\nimport {validate, string, util, isValid} from 'valid.js'\r\n```\r\n\r\nThe problem (I guess) is the version that are publish at npm registry doesn't contain *dist* folder inside of them. In fact, *dist/validate.js* file is important because they are set as *main* script inside package.json file.\r\n\r\n```json\r\n.....\r\n\"repository\": {\r\n    \"type\": \"git\",\r\n    \"url\": \"git+https://github.com/dleitee/valid.js.git\"\r\n  },\r\n  \"main\": \"dist/validate.js\", // <--- this line...\r\n......\r\n```\r\n\r\nCan you please help? I think that you need is just update npm registry with a new version of package.\r\n\r\nThanks!"},"comment":{"url":"https://api.github.com/repos/dleitee/valid.js/issues/comments/209697304","html_url":"https://github.com/dleitee/valid.js/issues/42#issuecomment-209697304","issue_url":"https://api.github.com/repos/dleitee/valid.js/issues/42","id":209697304,"user":{"login":"dleitee","id":2229108,"avatar_url":"https://avatars.githubusercontent.com/u/2229108?v=3","gravatar_id":"","url":"https://api.github.com/users/dleitee","html_url":"https://github.com/dleitee","followers_url":"https://api.github.com/users/dleitee/followers","following_url":"https://api.github.com/users/dleitee/following{/other_user}","gists_url":"https://api.github.com/users/dleitee/gists{/gist_id}","starred_url":"https://api.github.com/users/dleitee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dleitee/subscriptions","organizations_url":"https://api.github.com/users/dleitee/orgs","repos_url":"https://api.github.com/users/dleitee/repos","events_url":"https://api.github.com/users/dleitee/events{/privacy}","received_events_url":"https://api.github.com/users/dleitee/received_events","type":"User","site_admin":false},"created_at":"2016-04-14T00:10:15Z","updated_at":"2016-04-14T00:10:15Z","body":"Hi @lucasferreira \r\n\r\nI removed the dist folder to .gitignore file and published a new version of package.\r\n\r\nCan you run npm update and test?\r\n\r\nThanks!"}}