{"action":"created","issue":{"url":"https://api.github.com/repos/npm/npm/issues/9459","labels_url":"https://api.github.com/repos/npm/npm/issues/9459/labels{/name}","comments_url":"https://api.github.com/repos/npm/npm/issues/9459/comments","events_url":"https://api.github.com/repos/npm/npm/issues/9459/events","html_url":"https://github.com/npm/npm/issues/9459","id":104328034,"number":9459,"title":"npm main for a dist solution and a build solution","user":{"login":"blainekasten","id":2916023,"avatar_url":"https://avatars.githubusercontent.com/u/2916023?v=3","gravatar_id":"","url":"https://api.github.com/users/blainekasten","html_url":"https://github.com/blainekasten","followers_url":"https://api.github.com/users/blainekasten/followers","following_url":"https://api.github.com/users/blainekasten/following{/other_user}","gists_url":"https://api.github.com/users/blainekasten/gists{/gist_id}","starred_url":"https://api.github.com/users/blainekasten/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/blainekasten/subscriptions","organizations_url":"https://api.github.com/users/blainekasten/orgs","repos_url":"https://api.github.com/users/blainekasten/repos","events_url":"https://api.github.com/users/blainekasten/events{/privacy}","received_events_url":"https://api.github.com/users/blainekasten/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/npm/npm/labels/feature-request","name":"feature-request","color":"ACE1AF"},{"url":"https://api.github.com/repos/npm/npm/labels/i-wanna-be-the-very-best","name":"i-wanna-be-the-very-best","color":"006b75"},{"url":"https://api.github.com/repos/npm/npm/labels/needs-bikeshedding","name":"needs-bikeshedding","color":"0052cc"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-09-01T18:33:46Z","updated_at":"2015-09-10T15:28:38Z","closed_at":null,"body":"So I have a question/request/unsure what this is. But, it seems more and more libraries want to take advantage of ES6 features, which requires a build tool like webpack. An issue arises however when a webpack build requires another webpack build. So as library developers wanting to use ES6 is pretty unusable. I'm wondering if there already is a way, or proposing the idea of different `main` targets for the npm package. One for a dist solution (built), and a build solution (not yet built). This way libraries can import the other libraries and build it altogether or just pull in the dist solution if they need it that way."},"comment":{"url":"https://api.github.com/repos/npm/npm/issues/comments/139281572","html_url":"https://github.com/npm/npm/issues/9459#issuecomment-139281572","issue_url":"https://api.github.com/repos/npm/npm/issues/9459","id":139281572,"user":{"login":"blainekasten","id":2916023,"avatar_url":"https://avatars.githubusercontent.com/u/2916023?v=3","gravatar_id":"","url":"https://api.github.com/users/blainekasten","html_url":"https://github.com/blainekasten","followers_url":"https://api.github.com/users/blainekasten/followers","following_url":"https://api.github.com/users/blainekasten/following{/other_user}","gists_url":"https://api.github.com/users/blainekasten/gists{/gist_id}","starred_url":"https://api.github.com/users/blainekasten/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/blainekasten/subscriptions","organizations_url":"https://api.github.com/users/blainekasten/orgs","repos_url":"https://api.github.com/users/blainekasten/repos","events_url":"https://api.github.com/users/blainekasten/events{/privacy}","received_events_url":"https://api.github.com/users/blainekasten/received_events","type":"User","site_admin":false},"created_at":"2015-09-10T15:28:38Z","updated_at":"2015-09-10T15:28:38Z","body":"@othiym23 Really great points. I appreciate all of it. I definitely see this as premature for something of NPM's scale to tackle right now. I also definitely understand that NPM would never prescribe a specific external tool.\r\n\r\nAll said, I really think you're onto something with the lifecycle extensions. I don't have much to offer into this other than it seems to be a growing issue as ES6 becomes more widely accepted and utilized. "}}