ci: setup esbuild for integration tests

This commit is contained in:
Max Marze 2024-05-08 17:35:47 -04:00
parent 180978bc50
commit a416a255fb

View File

@ -362,6 +362,10 @@ class Esbuild {
return limit(async () => {
const functionName = path.extname(functionObject[handlerPropertyName]).slice(1);
const handlerPath = functionObject[handlerPropertyName].replace(`.${functionName}`, '');
console.log('ESBUILD_BINARY_PATH FOR BUILD', process.env.ESBUILD_BINARY_PATH);
if(!existsSync(process.env.ESBUILD_BINARY_PATH)) {
console.log('ESBUILD_BINARY_PATH DOES NOT EXIST', process.env.ESBUILD_BINARY_PATH);
}
await esbuild.build({
...buildProperties,
platform: 'node',