When importing a component written in Typescript, compiling the importing project compiles .ts files of the component, instead of using dist/.js and dist/.d.ts files
Steps to Reproduce
Hello,
I am just starting with bit.dev. I have been using Typescript for years.
I have made 2 private small components : @bit/olivr70.permnat.session@0.0.4 and @bit/olivr70.permnat.textcleaning@1.0.0 (I cannot make them public, but it is ok for support to look at them)
They are structured in the same way :
'index.ts' exports some symbols from other .ts files, .js and .map files in a ./dist folder.
"bit test" runs ok with a few jest tests.
When I import both in a new empty Typescript project them using "npm i @bit/..." they both install OK. Imports from a very basic "index.ts" which compiles and then executes properly.
But I discovered by mistake that every time I compile the main project, source .ts files in the "session" components are compiled by Typescript, not those in the "textcleaning".
Running "tsc --listFiles | grep @bit" confirms this
Describe the bug
When importing a component written in Typescript, compiling the importing project compiles .ts files of the component, instead of using dist/.js and dist/.d.ts files
Steps to Reproduce
Hello,
I am just starting with bit.dev. I have been using Typescript for years.
I have made 2 private small components : @bit/olivr70.permnat.session@0.0.4 and @bit/olivr70.permnat.textcleaning@1.0.0 (I cannot make them public, but it is ok for support to look at them)
They are structured in the same way : 'index.ts' exports some symbols from other .ts files, .js and .map files in a ./dist folder. "bit test" runs ok with a few jest tests.
When I import both in a new empty Typescript project them using "npm i @bit/..." they both install OK. Imports from a very basic "index.ts" which compiles and then executes properly.
But I discovered by mistake that every time I compile the main project, source .ts files in the "session" components are compiled by Typescript, not those in the "textcleaning".
Running "tsc --listFiles | grep @bit" confirms this
The importing project is very simple and only includes my "index.ts" file (listing at the end) tsconfig.json
Expected Behavior
Running "tsc --listFiles | grep @bit" should display
Specifications
Additional context
From my test project, tsconfig.json is very simple