diff --git a/scripts/deployment/deploy-files-to-sharepoint/deploy-files-to-sharepoint.js b/scripts/deployment/deploy-files-to-sharepoint/deploy-files-to-sharepoint.js index be38d22..183346b 100644 --- a/scripts/deployment/deploy-files-to-sharepoint/deploy-files-to-sharepoint.js +++ b/scripts/deployment/deploy-files-to-sharepoint/deploy-files-to-sharepoint.js @@ -18,9 +18,10 @@ async function main() { async function pushFile(filePath, fileName, fileContent) { console.log(filePath, fileName, fileContent); + console.log(basePath); const fileOptions = { - filePath: filePath.replace(new RegExp(`^\\.\\/?${ basePath }\\/`), ''), + filePath: filePath.replace(basePath, ''), fileName, fileContent };