{"action":"created","issue":{"url":"https://api.github.com/repos/NativeScript/nativescript-cli/issues/1143","labels_url":"https://api.github.com/repos/NativeScript/nativescript-cli/issues/1143/labels{/name}","comments_url":"https://api.github.com/repos/NativeScript/nativescript-cli/issues/1143/comments","events_url":"https://api.github.com/repos/NativeScript/nativescript-cli/issues/1143/events","html_url":"https://github.com/NativeScript/nativescript-cli/issues/1143","id":115116334,"number":1143,"title":"Is it necessary to copy all modules from node_modules directory, including devDependencies?","user":{"login":"unlight","id":301732,"avatar_url":"https://avatars.githubusercontent.com/u/301732?v=3","gravatar_id":"","url":"https://api.github.com/users/unlight","html_url":"https://github.com/unlight","followers_url":"https://api.github.com/users/unlight/followers","following_url":"https://api.github.com/users/unlight/following{/other_user}","gists_url":"https://api.github.com/users/unlight/gists{/gist_id}","starred_url":"https://api.github.com/users/unlight/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/unlight/subscriptions","organizations_url":"https://api.github.com/users/unlight/orgs","repos_url":"https://api.github.com/users/unlight/repos","events_url":"https://api.github.com/users/unlight/events{/privacy}","received_events_url":"https://api.github.com/users/unlight/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-11-04T18:22:51Z","updated_at":"2015-11-10T06:27:31Z","closed_at":null,"body":"I have this `package.json`\r\n```js\r\n{\r\n\t\"nativescript\": {\r\n\t\t\"id\": \"org.nativescript.test1\",\r\n\t\t\"tns-android\": {\r\n\t\t\t\"version\": \"1.4.0\"\r\n\t\t}\r\n\t},\r\n\t\"dependencies\": {\r\n\t\t\"tns-core-modules\": \"1.4.0\"\r\n\t},\r\n  \"devDependencies\": {\r\n    \"babel\": \"^5.8.29\",\r\n    \"gulp-debug\": \"^2.1.2\"\r\n  }\r\n}\r\n```\r\nI have some `devDependencies` modules, and of course, after install, they are placed `to node_modules`. After build, all of them are copied to `platforms\\android\\src\\main\\assets\\app\\tns_modules\\`. (app-debug.apk contains it too)\r\nI'm using `devDependencies` modules for building and testing only.\r\n\r\nIs it really necessary to copy them all?\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/NativeScript/nativescript-cli/issues/comments/155316073","html_url":"https://github.com/NativeScript/nativescript-cli/issues/1143#issuecomment-155316073","issue_url":"https://api.github.com/repos/NativeScript/nativescript-cli/issues/1143","id":155316073,"user":{"login":"unlight","id":301732,"avatar_url":"https://avatars.githubusercontent.com/u/301732?v=3","gravatar_id":"","url":"https://api.github.com/users/unlight","html_url":"https://github.com/unlight","followers_url":"https://api.github.com/users/unlight/followers","following_url":"https://api.github.com/users/unlight/following{/other_user}","gists_url":"https://api.github.com/users/unlight/gists{/gist_id}","starred_url":"https://api.github.com/users/unlight/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/unlight/subscriptions","organizations_url":"https://api.github.com/users/unlight/orgs","repos_url":"https://api.github.com/users/unlight/repos","events_url":"https://api.github.com/users/unlight/events{/privacy}","received_events_url":"https://api.github.com/users/unlight/received_events","type":"User","site_admin":false},"created_at":"2015-11-10T06:27:31Z","updated_at":"2015-11-10T06:27:31Z","body":"Seems that it is weird if it happens for me. I'll try to dig this."}}