payload: {"action":"opened","issue":{"url":"https://api.github.com/repos/nuxt/nuxt.js/issues/5949","repository_url":"https://api.github.com/repos/nuxt/nuxt.js","labels_url":"https://api.github.com/repos/nuxt/nuxt.js/issues/5949/labels{/name}","comments_url":"https://api.github.com/repos/nuxt/nuxt.js/issues/5949/comments","events_url":"https://api.github.com/repos/nuxt/nuxt.js/issues/5949/events","html_url":"https://github.com/nuxt/nuxt.js/issues/5949","id":456975838,"node_id":"MDU6SXNzdWU0NTY5NzU4Mzg=","number":5949,"title":"tsconfig.json does not reflect config.srcDir","user":{"login":"nandenjin","id":7803255,"node_id":"MDQ6VXNlcjc4MDMyNTU=","avatar_url":"https://avatars1.githubusercontent.com/u/7803255?v=4","gravatar_id":"","url":"https://api.github.com/users/nandenjin","html_url":"https://github.com/nandenjin","followers_url":"https://api.github.com/users/nandenjin/followers","following_url":"https://api.github.com/users/nandenjin/following{/other_user}","gists_url":"https://api.github.com/users/nandenjin/gists{/gist_id}","starred_url":"https://api.github.com/users/nandenjin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nandenjin/subscriptions","organizations_url":"https://api.github.com/users/nandenjin/orgs","repos_url":"https://api.github.com/users/nandenjin/repos","events_url":"https://api.github.com/users/nandenjin/events{/privacy}","received_events_url":"https://api.github.com/users/nandenjin/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2019-06-17T14:43:11Z","updated_at":"2019-06-17T14:43:11Z","closed_at":null,"author_association":"NONE","body":"### Version\n\n[v2.8.1](https://github.com/nuxt.js/releases/tag/v2.8.1)\n\n### Reproduction link\n\n[https://codesandbox.io/s/nuxt-tsconfig-issue-sample-zkx3o](https://codesandbox.io/s/nuxt-tsconfig-issue-sample-zkx3o)\n\n### Steps to reproduce\n\n```\nyarn dev\n```\n\nNote that this sandbox is in the state of before first run, so `tsconfig.json` is a just empty file.\n\n### What is expected ?\n\nNuxt will create content of tsconfig.json automatically, and dev build will continue successfully.\n\n### What is actually happening?\n\ntsconfig.json is created with `\"baseUrl\": \".\"` even `config.srcDir` is set to `src`, and type check for `import MyComponent from '~/components/MyComponent.vue'` in `src/pages/index.vue` fails.\n\n<!--cmty--><!--cmty_prevent_hook-->\n<div align=\"right\"><sub><em>This bug report is available on <a href=\"https://cmty.app/nuxt\">Nuxt</a> community (<a href=\"https://cmty.app/nuxt/nuxt.js/issues/c9375\">#c9375</a>)</em></sub></div>"}}
other: {"actor":{"display_login":"nandenjin"}}