From b9e5d9272295e155b05164d465d36474362ea162 Mon Sep 17 00:00:00 2001 From: David Terry Date: Wed, 8 Sep 2021 18:07:09 +0200 Subject: [PATCH] dapp: remappings: normalize DAPP_SRC and DAPP_LIB --- src/dapp/libexec/dapp/dapp-remappings | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/dapp/libexec/dapp/dapp-remappings b/src/dapp/libexec/dapp/dapp-remappings index f1b16d390..f1ccab510 100755 --- a/src/dapp/libexec/dapp/dapp-remappings +++ b/src/dapp/libexec/dapp/dapp-remappings @@ -14,10 +14,10 @@ console.log(buildRemappings(deduplicate(buildDependencyTree("."))).join("\n")) // deps: [] // } function buildDependencyTree(prefix) { - const lib = `${prefix}/${process.env.DAPP_LIB}` + const lib = `${prefix}/${normalize(process.env.DAPP_LIB)}` return { name: prefix.split("/").pop(), - path: normalize(`${prefix}/${process.env.DAPP_SRC}`), + path: normalize(`${prefix}/${normalize(process.env.DAPP_SRC)}`), hash: hash(prefix), deps: ls(lib).map(p => buildDependencyTree(`${lib}/${p}`)) }