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

Use writeFile instead of copyFile #382

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

bcardiff
Copy link
Contributor

Fixes #305 for v3.0

This PR should prevent copy file from a potential read only node_modules folder to the working copy. Effectively by reading files from __dirname and creating new ones in the working copy.

I haven't fully tested since we still use 2.x in our frozen node_modules setup, but from a code review I think these are the only change needed.

@netlify
Copy link

netlify bot commented Jun 20, 2023

👷 Deploy request for elm-pages-todos pending review.

Visit the deploys page to approve it

Name Link
🔨 Latest commit ce2a1c4

@kradalby
Copy link

kradalby commented Jul 3, 2023

@dillonkearns Would be great to get something like this in to unblock Nix users!

@kradalby
Copy link

For other Nix users, this is patched in unstable and should work if you install elm-pages from there: https://github.com/NixOS/nixpkgs/pull/259186/files#diff-1f62c3e9682f06b9262172752136ec5c45f6c115253caf1350460b6e71f8b79cR1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants