I have this sample typescript package with prepare script running tsc: https://github.com/richard-ejem/tspackage
When I install it with npm using npm add git+https://github.com/richard-ejem/tspackage.git#master to a project, node_modules/tspackage/dist contains 4 files as expected:
- index.js
- index.d.ts
- utils.js
- utils.d.ts
However, when installed with yarn using yarn add git+https://github.com/richard-ejem/tspackage.git#master, the dist folder contains only index.js.
Am I missing something, or is this a bug in yarn? Is there some possible workaround/other way to build typescript git dependencies on yarn install?