-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
chore(core): externalize @cfworker/json-schema dependency #7298
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
1 Skipped Deployment
|
Thank you and thank you for your awesome work! |
Ah seems it's still failing our export tests:
|
hmm- my bad- I'll look into it and post back with an update soon. We had just added a |
If helpful - after a lot of trial and error we ended up on this: https://github.com/langchain-ai/langchainjs/blob/main/langchain-core/package.json#L298 I do not know we need all of it since we're using it internally (our users won't need the CF worker types, for example) |
I ended up switching my build to https://www.npmjs.com/package/tshy, which simplified things, and seems to produce a solid dual ESM/CommonJS distributable. The package no longer has any dependencies, other than devDependencies, hopefully that eliminates the cloudflare worker types related issues. |
Giving it another shot now thanks! |
Good enough for our CI! Thank you so much. |
Back in #1878, the dependency was inlined to avoid portability issues, which have since been resolved.