Various changes to Endo are necessary to fix integration with Agoric SDK such that Endo packages can be upgraded there.
The largest necessary change is that we must generate the types for each package based on the generated types of all dependencies. To do this, we replace prepack and postpack scripts with build:types and clean:types, then drive them from the top level before publishing.
Then, certain ambient types must be explicitly imported and the .js extension is required throughout.
We also needed to relax some types in Exo and Patterns.
Tagged @michaelfig for the review so at least you know about the fix for publish. We should do the same in SDK to ensure dapps get correct types from npm.
refs: https://github.com/Agoric/agoric-sdk/pull/8514
Description
Various changes to Endo are necessary to fix integration with Agoric SDK such that Endo packages can be upgraded there.
The largest necessary change is that we must generate the types for each package based on the generated types of all dependencies. To do this, we replace prepack and postpack scripts with build:types and clean:types, then drive them from the top level before publishing.
Then, certain ambient types must be explicitly imported and the
.js
extension is required throughout.We also needed to relax some types in Exo and Patterns.
Security Considerations
Scaling Considerations
Documentation Considerations
Testing Considerations
Upgrade Considerations