make path windows friendly

This commit is contained in:
Martin McKeaveney 2021-03-14 17:57:28 +00:00
parent 6afcda7599
commit 8f6538f33a
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))
} }
} }