Skip to content
This repository has been archived by the owner on Apr 13, 2023. It is now read-only.

Commit

Permalink
fix: update paths and include linux esbuild (#656)
Browse files Browse the repository at this point in the history
  • Loading branch information
ssvegaraju committed Jul 19, 2022
1 parent d6d3e00 commit 85e7800
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
10 changes: 5 additions & 5 deletions lib/cdk-infra-stack.ts
Original file line number Diff line number Diff line change
Expand Up @@ -389,10 +389,10 @@ export default class FhirWorksStack extends Stack {
// copy all the necessary files for the lambda into the bundle
// this allows the lambda functions for bulk export to have access to these files within the lambda instance
return [
`node scripts/build_lambda.js ${inputDir} ${outputDir} bulkExport\\glueScripts\\export-script.py`,
`node scripts/build_lambda.js ${inputDir} ${outputDir} bulkExport\\schema\\transitiveReferenceParams.json`,
`node scripts/build_lambda.js ${inputDir} ${outputDir} bulkExport\\schema\\${PATIENT_COMPARTMENT_V3}`,
`node scripts/build_lambda.js ${inputDir} ${outputDir} bulkExport\\schema\\${PATIENT_COMPARTMENT_V4}`,
`node scripts/build_lambda.js ${inputDir} ${outputDir} bulkExport/glueScripts/export-script.py`,
`node scripts/build_lambda.js ${inputDir} ${outputDir} bulkExport/schema/transitiveReferenceParams.json`,
`node scripts/build_lambda.js ${inputDir} ${outputDir} bulkExport/schema/${PATIENT_COMPARTMENT_V3}`,
`node scripts/build_lambda.js ${inputDir} ${outputDir} bulkExport/schema/${PATIENT_COMPARTMENT_V4}`,
];
},
},
Expand Down Expand Up @@ -552,7 +552,7 @@ export default class FhirWorksStack extends Stack {
// copy all the necessary files for the lambda into the bundle
// this allows the validators to be constructed with the compiled implementation guides
return [
`node scripts/build_lambda.js ${inputDir}\\compiledImplementationGuides ${outputDir}\\compiledImplementationGuides none true`,
`node scripts/build_lambda.js ${inputDir}/compiledImplementationGuides ${outputDir}/compiledImplementationGuides none true`,
];
},
},
Expand Down
4 changes: 2 additions & 2 deletions scripts/build_lambda.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,6 @@ function ensureDirectoryExistence(filePath) {
if (isDirectory) {
fse.copySync(inputDir, outputDir);
} else {
ensureDirectoryExistence(`${outputDir}\\${fileToMove}`);
fs.copyFileSync(`${inputDir}\\${fileToMove}`, `${outputDir}\\${fileToMove}`);
ensureDirectoryExistence(`${outputDir}/${fileToMove}`);
fs.copyFileSync(`${inputDir}/${fileToMove}`, `${outputDir}/${fileToMove}`);
}

0 comments on commit 85e7800

Please sign in to comment.