If both the script config and the processor are Typescript, the "esbuild" bundling fails with
Error: Build failed with 1 error:
error: Must use "outdir" when there are multiple input files
Version info:
Artillery: 2.0.32
Node.js: v24.15.0
OS: linux
Running this command:
artillery run-fargate [...] config.ts
I expected to see this happen:
The scripts to be bundled and run in Fargate without error.
Local runs work fine.
Instead, this happened:
Bundling fails with the above error.
The dist folder contains 2 transpiled files: processor.js and config.ts.js.
If only one script is Typescript, there is no issue (e.g. Yaml config or JS processor).
Files being used:
config.ts
export const config = {
target: 'https://',
processor: 'processor.ts',
};
export const scenarios = [
{
flow: [
{
function: 'dummy'
}
]
}
];
processor.ts
export async function dummy(context, events) {
console.log('processor function');
}
If both the script config and the processor are Typescript, the "esbuild" bundling fails with
Version info:
Running this command:
I expected to see this happen:
The scripts to be bundled and run in Fargate without error.
Local runs work fine.
Instead, this happened:
Bundling fails with the above error.
The
distfolder contains 2 transpiled files:processor.jsandconfig.ts.js.If only one script is Typescript, there is no issue (e.g. Yaml config or JS processor).
Files being used:
config.ts
processor.ts