make path windows friendly
This commit is contained in:
parent
6afcda7599
commit
8f6538f33a
|
@ -21,7 +21,8 @@ describe("/component", () => {
|
|||
for (let library of libraries) {
|
||||
let appDirectory = resolve(budibaseAppsDir(), appId, "node_modules", library, "package")
|
||||
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))
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue