lol

elmPackages.elm-pages: update NEW patch for 3.0.x

+6 -7
+6 -7
pkgs/development/compilers/elm/packages/elm-pages-fix-init-read-only.patch
··· 1 1 diff --git a/generator/src/init.js b/generator/src/init.js 2 - index 3d8548c..90ee20d 100644 2 + index 06386ff..7127dae 100644 3 3 --- a/generator/src/init.js 4 4 +++ b/generator/src/init.js 5 - @@ -3,6 +3,21 @@ const copySync = require("fs-extra").copySync; 6 - const path = require("path"); 7 - const kleur = require("kleur"); 5 + @@ -6,6 +6,20 @@ import { fileURLToPath } from "url"; 6 + const __filename = fileURLToPath(import.meta.url); 7 + const __dirname = path.dirname(__filename); 8 8 9 9 +let walknDo = function(somePath, doStuff) { 10 10 + doStuff(somePath, true); ··· 20 20 + }); 21 21 +} 22 22 + 23 - + 24 23 /** 25 24 * @param {string} name 26 25 */ 27 - @@ -15,6 +30,13 @@ async function run(name) { 26 + @@ -18,6 +32,13 @@ export async function run(name) { 28 27 if (!fs.existsSync(name)) { 29 28 try { 30 - copySync(template, appRoot); 29 + await fsExtra.copy(template, appRoot); 31 30 + walknDo(appRoot, (file, isDir) => { 32 31 + if (isDir) { 33 32 + fs.chmodSync(file, 0o755);