runem / lit-analyzer

Monorepository for tools that analyze lit-html templates
MIT License
318 stars 36 forks source link

[lit-analyzer] `npm run build:ts` fails after `lerna add` #194

Open justinfagnani opened 3 years ago

justinfagnani commented 3 years ago

lit-analyzer installs multiple versions of typescript. Depending on which install tool/script is run, a different tsc binary will be written to node_modules/.bin/tsc. lerna add in any package seems to always cause the binary from typescript@~3.6.4 to be installed. This version doesn't support optional chaining, so the build fails. An npm run bootstrap from the project root will fix this.

We should consider putting the test versions of typescript into a separate subpackage to fix this.