Skip to content

Commit

Permalink
dapp: remappings: normalize DAPP_SRC and DAPP_LIB
Browse files Browse the repository at this point in the history
  • Loading branch information
d-xo committed Sep 8, 2021
1 parent e42da31 commit b9e5d92
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/dapp/libexec/dapp/dapp-remappings
Original file line number Diff line number Diff line change
Expand Up @@ -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}`))
}
Expand Down

0 comments on commit b9e5d92

Please sign in to comment.