Closed alexghr closed 5 days ago
Metrics with a significant change:
I still get the warning with these changes, though less often. Enabling tsserver tracing shows that we're still loading the full json for the artifacts copied into protocol-contracts
and accounts
packages. I'll try copying the .d.json.ts
files into those packages as well.
I've added .d.json.ts files in protocol-contracts and accounts, and also removed the json files from the tsconfig include list and replaced them with the declaration ones. I haven't been able to reproduce the "files too big" warning after those changes.
Build is failing since the artifacts are not found in the dest
folder for accounts
and protocol-contracts
, which makes sense since they don't get copied anymore by tsc as they are not part of the project as per tsconfig. So I'm lifting them out of src and into a shared folder at the root of each package, as we do with the noir-contracts.js
package. Let's see if this works!
Potential fix for Typescript LSP being slow.
Based on https://github.com/microsoft/TypeScript/issues/42761#issuecomment-778368320 and https://github.com/microsoft/TypeScript/issues/52994