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