+6
-1
@@ -84,3 +84,8 @@ // src/index.ts | ||
| const files = Array.from(this.pathContentMap.entries()).filter(([_, content]) => content !== null); | ||
| await Promise.all(files.map(([path, content]) => writeFile(path, content))); | ||
| await Promise.all(files.map(async ([path, content]) => { | ||
| try { | ||
| await writeFile(path, content, { flag: "w" }); | ||
| } catch { | ||
| } | ||
| })); | ||
| return files.reduce((acc, [path]) => { | ||
@@ -87,0 +92,0 @@ const name = path.split("/").pop(); |
+1
-1
| { | ||
| "name": "forji", | ||
| "version": "1.0.3", | ||
| "version": "1.0.4", | ||
| "description": "Library for building project structures with dynamic folder/file names", | ||
@@ -5,0 +5,0 @@ "type": "module", |
19376
0.41%240
2.13%