@vital-ai/haley-js-scripts
Advanced tools
Comparing version 1.0.3 to 1.0.4
{ | ||
"name": "@vital-ai/haley-js-scripts", | ||
"version": "1.0.3", | ||
"version": "1.0.4", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -37,4 +37,6 @@ // This script is for copying files from some places (node_modules...) to a destination folder. | ||
copyFromFiles.forEach(function(file) { | ||
const sourcePath = path.join(__dirname, relativePathFromScriptToRoot, file); | ||
const fileName = sourcePath.split('/').pop(); | ||
const fileParts = file.split('->'); | ||
const filePath = fileParts[0]; | ||
const sourcePath = path.join(__dirname, relativePathFromScriptToRoot, filePath); | ||
const fileName = fileParts.length > 1 ? fileParts[1] : sourcePath.split('/').pop(); | ||
const destinationPath = path.join(__dirname, relativePathFromScriptToRoot, COPY_TO_FOLDER, fileName); | ||
@@ -41,0 +43,0 @@ |
11143
232