From 7a2dcab96de62719b20e2ecbdf3fd0799db91bb7 Mon Sep 17 00:00:00 2001 From: Sander Thomassen Date: Mon, 29 Jun 2026 06:46:43 -0400 Subject: [PATCH] Fixes glob-enabled relative path bug Fixes an issue with how relative paths are resolved to create the nwProjectDir upon building when using globs. Specifically when traveling up the folder structure. --- src/bld.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bld.js b/src/bld.js index ab0d5405..af3d3af1 100644 --- a/src/bld.js +++ b/src/bld.js @@ -151,7 +151,7 @@ async function bld({ file, path.resolve( nwProjectDir, - file, + (file.substring(0, 3) == '..' + path.sep ? '.' + path.sep + file.substring(file.indexOf(path.sep,3)) : file), ), { recursive: true, force: true }, );