{"action":"closed","issue":{"url":"https://api.github.com/repos/wallabyjs/public/issues/1933","repository_url":"https://api.github.com/repos/wallabyjs/public","labels_url":"https://api.github.com/repos/wallabyjs/public/issues/1933/labels{/name}","comments_url":"https://api.github.com/repos/wallabyjs/public/issues/1933/comments","events_url":"https://api.github.com/repos/wallabyjs/public/issues/1933/events","html_url":"https://github.com/wallabyjs/public/issues/1933","id":387483689,"node_id":"MDU6SXNzdWUzODc0ODM2ODk=","number":1933,"title":"Typescript cli file with #!/usr/bin/env node","user":{"login":"chrisblossom","id":1595871,"node_id":"MDQ6VXNlcjE1OTU4NzE=","avatar_url":"https://avatars3.githubusercontent.com/u/1595871?v=4","gravatar_id":"","url":"https://api.github.com/users/chrisblossom","html_url":"https://github.com/chrisblossom","followers_url":"https://api.github.com/users/chrisblossom/followers","following_url":"https://api.github.com/users/chrisblossom/following{/other_user}","gists_url":"https://api.github.com/users/chrisblossom/gists{/gist_id}","starred_url":"https://api.github.com/users/chrisblossom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chrisblossom/subscriptions","organizations_url":"https://api.github.com/users/chrisblossom/orgs","repos_url":"https://api.github.com/users/chrisblossom/repos","events_url":"https://api.github.com/users/chrisblossom/events{/privacy}","received_events_url":"https://api.github.com/users/chrisblossom/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-12-04T21:18:21Z","updated_at":"2018-12-04T22:40:42Z","closed_at":"2018-12-04T22:40:42Z","author_association":"NONE","body":"### Issue description or question\r\nTypescript files cannot contain  `#!/usr/bin/env node`.\r\n\r\n```\r\nFailed to parse src/example.ts, SyntaxError: Unexpected character '#' (1:0)\r\n    at emitTwo (events.js:125:13)\r\n    at process.emit (events.js:213:7)\r\n    at emit (internal/child_process.js:774:12)\r\n    at _combinedTickCallback (internal/process/next_tick.js:141:11)\r\n    at process._tickCallback (internal/process/next_tick.js:180:9)\r\n```\r\n\r\nExample: [chrisblossom/wallaby-issue-1933\r\n](https://github.com/chrisblossom/wallaby-issue-1933)\r\n\r\n### Wallaby.js configuration file\r\n\r\n```javascript\r\n'use strict';\r\n\r\nmodule.exports = (wallaby) => {\r\n    return {\r\n        files: [\r\n            { pattern: '.babelrc+(.js|)', instrument: false },\r\n            { pattern: 'tsconfig.json', instrument: false },\r\n            'src/**/*.ts',\r\n            'jest.config.js',\r\n            '.env',\r\n            '*/**/__snapshots__/*.snap',\r\n            '!src/**/*.test.ts',\r\n        ],\r\n\r\n        tests: [\r\n            'src/**/*.test.ts',\r\n        ],\r\n\r\n        compilers: {\r\n            '**/*.ts': wallaby.compilers.babel(),\r\n        },\r\n\r\n        hints: {\r\n            ignoreCoverage: /ignore coverage/,\r\n        },\r\n\r\n        env: {\r\n            type: 'node',\r\n            runner: 'node',\r\n        },\r\n\r\n        testFramework: 'jest',\r\n\r\n        setup: (w) => {\r\n            /**\r\n             * https://github.com/wallabyjs/public/issues/1268#issuecomment-323237993\r\n             */\r\n            if (w.projectCacheDir !== process.cwd()) {\r\n                process.chdir(w.projectCacheDir);\r\n            }\r\n\r\n            process.env.NODE_ENV = 'test';\r\n            const jestConfig = require('./jest.config');\r\n\r\n            w.testFramework.configure(jestConfig);\r\n        },\r\n    };\r\n};\r\n```\r\n\r\n### Code editor or IDE name and version\r\n\r\n`WebStorm 2018.3.1 EAP`\r\n\r\n### OS name and version\r\n\r\n``macOS 10.14.1``\r\n"}}
{"actor":{"display_login":"smcenlly"}}