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

Ignore test assets by default #164

Open
axelfontaine opened this issue Jul 1, 2024 · 2 comments
Open

Ignore test assets by default #164

axelfontaine opened this issue Jul 1, 2024 · 2 comments

Comments

@axelfontaine
Copy link

org.webjars.npm:htmx-ext-response-targets:2.0.0 contains two response-targets.js files. One in the root and one in the test directory.

Either the Webjar locator or the webjar building process should ignore that test directory.

@jamesward
Copy link
Member

There isn't a good general way to exclude these from being located. The only alternative is to use a non-partial patching method under the routing, ie:

locator.getFullPathExact("htmx-ext-response-targets", "response-targets.js");

That should resolve to the root file. Is changing the routing logic to use that instead of locator.getFullPath an option?

@axelfontaine
Copy link
Author

Not in my case, as I rely on Ktor's integration of Webjars and don't consume the locator dependency directly.

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

No branches or pull requests

2 participants