{"action":"created","issue":{"url":"https://api.github.com/repos/bencbartlett/creep-tasks/issues/4","repository_url":"https://api.github.com/repos/bencbartlett/creep-tasks","labels_url":"https://api.github.com/repos/bencbartlett/creep-tasks/issues/4/labels{/name}","comments_url":"https://api.github.com/repos/bencbartlett/creep-tasks/issues/4/comments","events_url":"https://api.github.com/repos/bencbartlett/creep-tasks/issues/4/events","html_url":"https://github.com/bencbartlett/creep-tasks/issues/4","id":341676995,"node_id":"MDU6SXNzdWUzNDE2NzY5OTU=","number":4,"title":"Getting the package using npm does not work","user":{"login":"tiniuclx","id":24615474,"node_id":"MDQ6VXNlcjI0NjE1NDc0","avatar_url":"https://avatars2.githubusercontent.com/u/24615474?v=4","gravatar_id":"","url":"https://api.github.com/users/tiniuclx","html_url":"https://github.com/tiniuclx","followers_url":"https://api.github.com/users/tiniuclx/followers","following_url":"https://api.github.com/users/tiniuclx/following{/other_user}","gists_url":"https://api.github.com/users/tiniuclx/gists{/gist_id}","starred_url":"https://api.github.com/users/tiniuclx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tiniuclx/subscriptions","organizations_url":"https://api.github.com/users/tiniuclx/orgs","repos_url":"https://api.github.com/users/tiniuclx/repos","events_url":"https://api.github.com/users/tiniuclx/events{/privacy}","received_events_url":"https://api.github.com/users/tiniuclx/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-07-16T20:58:59Z","updated_at":"2018-07-17T16:56:31Z","closed_at":"2018-07-17T01:11:38Z","author_association":"NONE","body":"### Description of issue:\r\nI installed the package as described in README.md (by navigating into the root folder of my AI and running `npm install creep-tasks`). Afterwards, I `require`'d it in my scripts but Screeps said it could not find the module named `creep-tasks`. \r\n\r\nLooking at the files installed by npm, only the type definitions were installed. The error might come from [this line](https://github.com/bencbartlett/creep-tasks/blob/7c49da6a26642602be25b2aa9a998739c9cc4a0b/package.json#L37) inside package.json , though I am not at all familiar with npm. I believe `\"files\"` within package.json should contain `\"src/**/*\"` as opposed to `\"dist/**/*\"`.\r\n\r\n\r\n### Steps to reproduce:\r\n<!--- Please put detailed instructions on how to reproduce the problem here --->\r\n`npm install creep-tasks`\r\nTry to run AI using `creep-tasks`\r\nFailure!\r\n\r\n\r\n### Error message:\r\n<!--- If the issue throws an error, please include the full error traceback here; else write \"N/A\" --->\r\n```\r\nError: Unknown module 'creep-tasks'\r\n    at Object.requireFn (<runtime>:30185:23)\r\n    at role.patroller:1:49\r\n    at role.patroller:15:3\r\n    at Object.exports.evalCode (<runtime>:15727:76)\r\n    at Object.requireFn (<runtime>:30203:28)\r\n    at main:8:21\r\n    at main:184:3\r\n    at Object.exports.evalCode (<runtime>:15727:76)\r\n    at Object.requireFn (<runtime>:30203:28)\r\n```\r\n\r\n\r\n### Other information:\r\n- `creep-tasks` version: 1.2.0 {You can find this in package.json}\r\n    - Commit hash: 7c49da6a26642602be25b2aa9a998739c9cc4a0b {Please include the specific commit hash if known}\r\n- Using `creep-tasks` with: JavaScript\r\n- Issue is with dependency: No\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/bencbartlett/creep-tasks/issues/comments/405652843","html_url":"https://github.com/bencbartlett/creep-tasks/issues/4#issuecomment-405652843","issue_url":"https://api.github.com/repos/bencbartlett/creep-tasks/issues/4","id":405652843,"node_id":"MDEyOklzc3VlQ29tbWVudDQwNTY1Mjg0Mw==","user":{"login":"tiniuclx","id":24615474,"node_id":"MDQ6VXNlcjI0NjE1NDc0","avatar_url":"https://avatars2.githubusercontent.com/u/24615474?v=4","gravatar_id":"","url":"https://api.github.com/users/tiniuclx","html_url":"https://github.com/tiniuclx","followers_url":"https://api.github.com/users/tiniuclx/followers","following_url":"https://api.github.com/users/tiniuclx/following{/other_user}","gists_url":"https://api.github.com/users/tiniuclx/gists{/gist_id}","starred_url":"https://api.github.com/users/tiniuclx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tiniuclx/subscriptions","organizations_url":"https://api.github.com/users/tiniuclx/orgs","repos_url":"https://api.github.com/users/tiniuclx/repos","events_url":"https://api.github.com/users/tiniuclx/events{/privacy}","received_events_url":"https://api.github.com/users/tiniuclx/received_events","type":"User","site_admin":false},"created_at":"2018-07-17T16:56:31Z","updated_at":"2018-07-17T16:56:31Z","author_association":"NONE","body":"Ah, that explains it. I was not managing screens using mom as you predicted. Thanks for the explanation, it will certainly be useful!"}}
{"actor":{"display_login":"tiniuclx"}}