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

[test-exports-esbuild] Add missing entrypoints #1228

Merged

Conversation

jeffreylin
Copy link
Contributor

@jeffreylin jeffreylin commented May 11, 2023

Syncing entrypoints with esm modules since esbuild/esm should have the same imports. This should give us the expected CI test coverage in esbuild.

It seems like these were missed because in the time esbuild was added, esm already had two more commits that added entrypoints.

Compare to esm:
https://github.com/hwchase17/langchainjs/blob/main/test-exports-esm/src/entrypoints.js

Test plan:

  • CI tests

Syncing entrypoints with `esm` modules since esbuild/esm should have the same imports. This should give us the expected CI test coverage in `esbuild`.

Compare to `esm`:
https://github.com/hwchase17/langchainjs/blob/main/test-exports-esm/src/entrypoints.js

Test plan:
 - CI tests
@vercel
Copy link

vercel bot commented May 11, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
langchainjs-docs ✅ Ready (Inspect) Visit Preview May 12, 2023 2:33am

@jacoblee93
Copy link
Collaborator

These should be auto-generated by script - CC @nfcampos?

This upstream fix adds `test-exports-esbuild` to `create-entrypoints.js` so that when `yarn build` is run, we'll automatically get the updated entrypoints in `test-exports-esbuild`
@jeffreylin
Copy link
Contributor Author

@jacoblee93 - ah, I see - I think I found the upstream codegen script - it's langchain/scripts/create-entrypoints.js

Added a commit that adds test-exports-esbuild to that script. Now it autogenerates the same output as the previous commit when yarn build is run.
11796a0

@nfcampos nfcampos added the lgtm PRs that are ready to be merged as-is label May 13, 2023
@nfcampos
Copy link
Collaborator

Great, thanks!

@nfcampos nfcampos merged commit 8a5a092 into langchain-ai:main May 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lgtm PRs that are ready to be merged as-is
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants