Open cmdcolin opened 4 days ago
note that we used to publish src dirs but it was removed after overture (https://www.overture.bio/) team said it caused them trouble
i think turning on skipLibCheck:true fixes this, so maybe low priority. similar skipLibCheck issue hre https://github.com/GMOD/bam-js/issues/97
see https://www.npmjs.com/package/@jbrowse/react-linear-genome-view/v/2.17.0?activeTab=code
downloading the zip is better cause viewing the code on page is slow but @jbrowse/react-linear-genome-view/dist/createViewState.d.ts
this causes confusion in the typescript compilation of embedded components
i don't know exactly why it's behaving this way
strategies to fix
possibly multiple could be investigated
strategy 1: publish src dir
one strategy to fix this is to include src dir in our published releases
pros: could fix this, can enable source maps cons: sometimes leads people to import from the src dir which is not intended usage
stategy 2: investigate why it's doing this
e.g. git bisect to see how long this has been happening?
pros: systematically uncover issue cons: hard to do
strategy 3: investigate alternative monorepo setups
our codebase alternately refers to src at dev time and dist at prod time. my hypothesis is that there is a confusion in this case
possible systems include nx and turborepo. i'm not super into nx. don't know much about turborepo. maybe there is a better usage of lerna also
pros: more 'industry standard' maybe, reduced weirdness from our src/dist swapping cons: more complexity of build tooling