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

fix: escape paths in injected imports #78

Merged
merged 2 commits into from
Aug 5, 2023
Merged

fix: escape paths in injected imports #78

merged 2 commits into from
Aug 5, 2023

Conversation

Conduitry
Copy link
Member

@Conduitry Conduitry commented Aug 4, 2023

Fixes #77. We can't just wrap the hotApiImport and adapterImport paths in single quotes, because any single quotes inside of them will result in invalid code being generated. I'm instead running them through JSON.stringify.

I'm unable to get the tests to run locally, so I haven't run the tests and I don't know whether this breaks anything. I haven't tried running them with older versions of Node, but it also looks like CI has been red on master for a while.

This repo is also on an old version of pnpm that does not work in Node 20.

@benmccann
Copy link
Member

benmccann commented Aug 5, 2023

I think if the MacOS tests are passing then you should be safe. I don't know what's going on with the Ubuntu tests, but it seems like a separate issue

@benmccann benmccann merged commit a441ba5 into master Aug 5, 2023
@benmccann benmccann deleted the gh-77 branch August 5, 2023 03:40
@github-actions github-actions bot mentioned this pull request Aug 5, 2023
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.

SvelteKit fails to run if the repository path contains an apostrofe
2 participants