make path windows friendly
This commit is contained in:
parent
7b8c9b1686
commit
872d8641cb
|
@ -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))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue