{"action":"created","issue":{"url":"https://api.github.com/repos/jstransformers/jstransformer-cli/issues/6","labels_url":"https://api.github.com/repos/jstransformers/jstransformer-cli/issues/6/labels{/name}","comments_url":"https://api.github.com/repos/jstransformers/jstransformer-cli/issues/6/comments","events_url":"https://api.github.com/repos/jstransformers/jstransformer-cli/issues/6/events","html_url":"https://github.com/jstransformers/jstransformer-cli/issues/6","id":69533923,"number":6,"title":"need tests case for specifing transformer version?","user":{"login":"tunnckoCore","id":5038030,"avatar_url":"https://avatars.githubusercontent.com/u/5038030?v=3","gravatar_id":"","url":"https://api.github.com/users/tunnckoCore","html_url":"https://github.com/tunnckoCore","followers_url":"https://api.github.com/users/tunnckoCore/followers","following_url":"https://api.github.com/users/tunnckoCore/following{/other_user}","gists_url":"https://api.github.com/users/tunnckoCore/gists{/gist_id}","starred_url":"https://api.github.com/users/tunnckoCore/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tunnckoCore/subscriptions","organizations_url":"https://api.github.com/users/tunnckoCore/orgs","repos_url":"https://api.github.com/users/tunnckoCore/repos","events_url":"https://api.github.com/users/tunnckoCore/events{/privacy}","received_events_url":"https://api.github.com/users/tunnckoCore/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-04-20T08:19:07Z","updated_at":"2015-04-20T14:07:38Z","closed_at":null,"body":"i think `lazy-require` support this and we should test it, plus have it in examples and docs in future."},"comment":{"url":"https://api.github.com/repos/jstransformers/jstransformer-cli/issues/comments/94461718","html_url":"https://github.com/jstransformers/jstransformer-cli/issues/6#issuecomment-94461718","issue_url":"https://api.github.com/repos/jstransformers/jstransformer-cli/issues/6","id":94461718,"user":{"login":"ForbesLindesay","id":1260646,"avatar_url":"https://avatars.githubusercontent.com/u/1260646?v=3","gravatar_id":"","url":"https://api.github.com/users/ForbesLindesay","html_url":"https://github.com/ForbesLindesay","followers_url":"https://api.github.com/users/ForbesLindesay/followers","following_url":"https://api.github.com/users/ForbesLindesay/following{/other_user}","gists_url":"https://api.github.com/users/ForbesLindesay/gists{/gist_id}","starred_url":"https://api.github.com/users/ForbesLindesay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ForbesLindesay/subscriptions","organizations_url":"https://api.github.com/users/ForbesLindesay/orgs","repos_url":"https://api.github.com/users/ForbesLindesay/repos","events_url":"https://api.github.com/users/ForbesLindesay/events{/privacy}","received_events_url":"https://api.github.com/users/ForbesLindesay/received_events","type":"User","site_admin":false},"created_at":"2015-04-20T14:07:38Z","updated_at":"2015-04-20T14:07:38Z","body":"Personally I'm not convinced using `lazy-require` is the best approach here.  I think it would be better to `require` the jstransformer relative to the file that is being transformed.  i.e. `jstransformer-cli` should be installed globally (or locally for use within npm scripts) but each individual `jstransformer-<whatever>` should be installed locally, and appropriately specified in package.json.\r\n\r\nIt is then of course up to us to make sure we provide excellent error messages that tell people to just do `jstransformer install <whatever>`."}}