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

better resolution for third party adapters #100

Open
paperclover opened this issue Oct 26, 2022 · 0 comments
Open

better resolution for third party adapters #100

paperclover opened this issue Oct 26, 2022 · 0 comments
Labels
build relates to `purplet build` or anything from it's output pkg:purplet

Comments

@paperclover
Copy link
Member

the issue is AdapterData requires an exact path to the adapter, which for purplet's adapters, we use @rollup/plugin-url to copy these into the build directory, then do some magic. i dont want to force that on third party devs.

ideally, package-name/some/entrypoint.ts should resolve to where you'd expect it to, without having to configure package.json stuff so that require.resolve() works. or maybe even some way it can be a relative file.

not sure. it's a really complicated situation

@paperclover paperclover added pkg:purplet build relates to `purplet build` or anything from it's output labels Oct 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build relates to `purplet build` or anything from it's output pkg:purplet
Projects
None yet
Development

No branches or pull requests

1 participant