{"action":"created","issue":{"url":"https://api.github.com/repos/meteor/meteor/issues/4531","labels_url":"https://api.github.com/repos/meteor/meteor/issues/4531/labels{/name}","comments_url":"https://api.github.com/repos/meteor/meteor/issues/4531/comments","events_url":"https://api.github.com/repos/meteor/meteor/issues/4531/events","html_url":"https://github.com/meteor/meteor/issues/4531","id":86786301,"number":4531,"title":"[suggestion] <arch>.json files should also contain a \"files\" array to indicate which files were added via package.js","user":{"login":"trusktr","id":297678,"avatar_url":"https://avatars.githubusercontent.com/u/297678?v=3","gravatar_id":"","url":"https://api.github.com/users/trusktr","html_url":"https://github.com/trusktr","followers_url":"https://api.github.com/users/trusktr/followers","following_url":"https://api.github.com/users/trusktr/following{/other_user}","gists_url":"https://api.github.com/users/trusktr/gists{/gist_id}","starred_url":"https://api.github.com/users/trusktr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/trusktr/subscriptions","organizations_url":"https://api.github.com/users/trusktr/orgs","repos_url":"https://api.github.com/users/trusktr/repos","events_url":"https://api.github.com/users/trusktr/events{/privacy}","received_events_url":"https://api.github.com/users/trusktr/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/meteor/meteor/labels/Project:Isobuild","name":"Project:Isobuild","color":"f7c6c7"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":11,"created_at":"2015-06-10T00:46:34Z","updated_at":"2015-06-10T23:23:07Z","closed_at":"2015-06-10T21:45:43Z","body":"For example, `os.json` files can look like this:\r\n\r\n```js\r\n{\r\n  \"format\": \"unipackage-unibuild-pre1\",\r\n  \"packageVariables\": [],\r\n  \"uses\": [\r\n    {\r\n      \"package\": \"meteor\"\r\n    }\r\n  ],\r\n  \"node_modules\": \"npm/node_modules\",\r\n  \"resources\": [\r\n    {\r\n      \"type\": \"prelink\",\r\n      \"file\": \"os/packages/trusktr_scratchpaper.js\",\r\n      \"length\": 0,\r\n      \"offset\": 0,\r\n      \"servePath\": \"/packages/trusktr_scratchpaper.js\",\r\n      \"sourceMap\": \"os/packages/trusktr_scratchpaper.js.map\"\r\n    }\r\n  ]\r\n}\r\n```\r\n\r\nIt has a convenient `uses` array corresponding to `api.use` calls in package.js. It'd be convenient if it also had a `files` array that corresponds to `api.addFiles` calls. For example, something like:\r\n\r\n```js\r\n{\r\n  \"format\": \"unipackage-unibuild-pre1\",\r\n  \"packageVariables\": [],\r\n  \"uses\": [\r\n    {\r\n      \"package\": \"meteor\"\r\n    }\r\n  ],\r\n  \"files\": [\r\n    {\r\n      \"name\": \"client.module.js\"\r\n    },\r\n    {\r\n      \"name\": \"foo/bar.module.js\",\r\n      \"options\": {\r\n          \"bare\": true\r\n      }\r\n    }\r\n  ],\r\n  \"node_modules\": \"npm/node_modules\",\r\n  \"resources\": [\r\n    {\r\n      \"type\": \"prelink\",\r\n      \"file\": \"os/packages/trusktr_scratchpaper.js\",\r\n      \"length\": 0,\r\n      \"offset\": 0,\r\n      \"servePath\": \"/packages/trusktr_scratchpaper.js\",\r\n      \"sourceMap\": \"os/packages/trusktr_scratchpaper.js.map\"\r\n    }\r\n  ]\r\n}\r\n```\r\n\r\nThe benefit of this feature would be that we wouldn't have to parse through the built files to find this information."},"comment":{"url":"https://api.github.com/repos/meteor/meteor/issues/comments/110945042","html_url":"https://github.com/meteor/meteor/issues/4531#issuecomment-110945042","issue_url":"https://api.github.com/repos/meteor/meteor/issues/4531","id":110945042,"user":{"login":"glasser","id":16724,"avatar_url":"https://avatars.githubusercontent.com/u/16724?v=3","gravatar_id":"","url":"https://api.github.com/users/glasser","html_url":"https://github.com/glasser","followers_url":"https://api.github.com/users/glasser/followers","following_url":"https://api.github.com/users/glasser/following{/other_user}","gists_url":"https://api.github.com/users/glasser/gists{/gist_id}","starred_url":"https://api.github.com/users/glasser/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/glasser/subscriptions","organizations_url":"https://api.github.com/users/glasser/orgs","repos_url":"https://api.github.com/users/glasser/repos","events_url":"https://api.github.com/users/glasser/events{/privacy}","received_events_url":"https://api.github.com/users/glasser/received_events","type":"User","site_admin":false},"created_at":"2015-06-10T23:23:07Z","updated_at":"2015-06-10T23:23:07Z","body":"I'm not sure how your last comment relates to this issue."}}