Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

allow .ts for package exports #10495

Draft
wants to merge 9 commits into
base: master
Choose a base branch
from
Draft

allow .ts for package exports #10495

wants to merge 9 commits into from

Conversation

turadg
Copy link
Member

@turadg turadg commented Nov 15, 2024

refs: #5760

Description

#10480 tries .ts for contracts, which are not part of a package's export surface.

This spike explores using .ts files for modules that are exported from a package. A complication is that while Typescript 5.7 can automatically convert rewrite .ts to .js in its build output, we've so far avoided having a build stage during development. So we need a way to have .ts locally during development (without building) and for the packages in NPM to have only .js files.

Security Considerations

Scaling Considerations

Documentation Considerations

Testing Considerations

Upgrade Considerations

test/utils.test.js:156:3 - error TS2775: Assertions require every name in the call target to be declared with an explicit type annotation.

156   assertAllDefined(foo);
      ~~~~~~~~~~~~~~~~

  src/ses-utils.ts:141:14
    141 export const assertAllDefined = <T extends Record<string, unknown>>(
                     ~~~~~~~~~~~~~~~~
    'assertAllDefined' needs an explicit type annotation.
Copy link

cloudflare-workers-and-pages bot commented Nov 15, 2024

Deploying agoric-sdk with  Cloudflare Pages  Cloudflare Pages

Latest commit: 2ba3884
Status:🚫  Build failed.

View logs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant