make path windows friendly

This commit is contained in:
Martin McKeaveney 2021-03-14 17:57:28 +00:00
parent 7b8c9b1686
commit 872d8641cb
1 changed files with 2 additions and 1 deletions

View File

@ -21,7 +21,8 @@ describe("/component", () => {
for (let library of libraries) { for (let library of libraries) {
let appDirectory = resolve(budibaseAppsDir(), appId, "node_modules", library, "package") let appDirectory = resolve(budibaseAppsDir(), appId, "node_modules", library, "package")
fs.mkdirSync(appDirectory, { recursive: true }) fs.mkdirSync(appDirectory, { recursive: true })
const file = require.resolve(library).split("dist/index.js")[0] + manifestFile
const file = require.resolve(library).split(join("dist", "index.js"))[0] + manifestFile
fs.copyFileSync(file, join(appDirectory, manifestFile)) fs.copyFileSync(file, join(appDirectory, manifestFile))
} }
} }