{"action":"opened","issue":{"url":"https://api.github.com/repos/teambit/bit/issues/852","repository_url":"https://api.github.com/repos/teambit/bit","labels_url":"https://api.github.com/repos/teambit/bit/issues/852/labels{/name}","comments_url":"https://api.github.com/repos/teambit/bit/issues/852/comments","events_url":"https://api.github.com/repos/teambit/bit/issues/852/events","html_url":"https://github.com/teambit/bit/issues/852","id":306180292,"number":852,"title":"Support for angular-cli tsconfig paths (@alias)","user":{"login":"brunobertechini","id":5166528,"avatar_url":"https://avatars3.githubusercontent.com/u/5166528?v=4","gravatar_id":"","url":"https://api.github.com/users/brunobertechini","html_url":"https://github.com/brunobertechini","followers_url":"https://api.github.com/users/brunobertechini/followers","following_url":"https://api.github.com/users/brunobertechini/following{/other_user}","gists_url":"https://api.github.com/users/brunobertechini/gists{/gist_id}","starred_url":"https://api.github.com/users/brunobertechini/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brunobertechini/subscriptions","organizations_url":"https://api.github.com/users/brunobertechini/orgs","repos_url":"https://api.github.com/users/brunobertechini/repos","events_url":"https://api.github.com/users/brunobertechini/events{/privacy}","received_events_url":"https://api.github.com/users/brunobertechini/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-03-17T18:44:25Z","updated_at":"2018-03-17T18:44:25Z","closed_at":null,"author_association":"NONE","body":"## Expected Behavior\r\nbit should be able to resolve dependencies (imports) with angular-cli @alias\r\n\r\n## Actual Behavior\r\nbit does not understand angular-cli alias (paths) imports\r\n\r\n## Steps to Reproduce the Problem\r\n\r\n  1.ng new fuse-angular-cli\r\n  2.cd fuse-angular-cli\r\n  3.bit init\r\n  4.ng generate component hero\r\n  5.bit add src\\app\\hero\\* --id app/hero --main src\\app\\hero\\hero.component.ts\r\n  6.bit status (OK)\r\n  7.ng generate component shared \r\n  8.edit tsconfig.json and add these to compilerOptions:\r\n```\r\n\"baseUrl\": \"src\",\r\n\"paths\": {\r\n            \"@shared/*\": [ \"app/shared/*\" ]\r\n        },\r\n```\r\n  9.edit hero\\hero.component.ts and add\r\n`import { SharedComponent } from '@shared/shared.component';`\r\n  10.ng build (OK)\r\n  11.bit add src\\app\\shared\\* --id app/shared --main src\\app\\shared\\shared.component.ts\r\n  12.bit status:\r\n```\r\nnew components\r\n     > app/shared ... ok\r\n     > app/hero ...  missing dependencies\r\n       missing packages dependencies:\r\n          src\\app\\hero\\hero.component.ts -> @shared/shared.component\r\n```\r\n\r\n\r\n\r\n\r\n## Specifications\r\n\r\n  - Bit version: 0.12.9\r\n  - Node version: 8.5.0\r\n  - npm / yarn version: npm-5.6.0 / yarn-1.3.2\r\n  - Platform: windows 10 x64 \r\n  - Bit compiler (include version): \r\n  - Bit tester (include version):\r\n\r\nAngular info (ng --version):\r\n\r\nAngular CLI: 1.6.8\r\nNode: 8.5.0\r\nOS: win32 x64\r\nAngular: 5.2.9\r\n... animations, common, compiler, compiler-cli, core, forms\r\n... http, language-service, platform-browser\r\n... platform-browser-dynamic, router\r\n\r\n@angular/cli: 1.6.8\r\n@angular-devkit/build-optimizer: 0.0.42\r\n@angular-devkit/core: 0.0.29\r\n@angular-devkit/schematics: 0.0.52\r\n@ngtools/json-schema: 1.1.0\r\n@ngtools/webpack: 1.9.8\r\n@schematics/angular: 0.1.17\r\ntypescript: 2.5.3\r\nwebpack: 3.10.0\r\n"}}
{"actor":{"display_login":"brunobertechini"}}