ecadlabs / taquito

A library for building dApps on the Tezos Blockchain - JavaScript / TypeScript
https://taquito.io
Apache License 2.0
298 stars 118 forks source link

SPIKE: Lerna/Nx can hide important build problems of individual packages. #2997

Open ac10n opened 2 months ago

ac10n commented 2 months ago

Consider the following command: npm run build which translates (in package.json) to: nx run-many --target=build --exclude=@taquito/website,taquito-test-dapp-vite outputs the following: image

But then if we build an individual package separately: npm run build -w packages/taquito-michelson-encoder we can see: image

Please note that the build problems are masked in the nx run.

There are two problems with this:

dsawali commented 1 month ago

Seeing that the michelson-encoder package is naturally a recursive package, it might be a bit more difficult to fix the circular dependencies. I would suggest starting from other packages first since they are much easier to solve with taquito-core