diff --git a/packages/aws-cdk-lib/aws-lambda-nodejs/lib/bundling.ts b/packages/aws-cdk-lib/aws-lambda-nodejs/lib/bundling.ts index 4385955cfa2fd..7ccfe1322b935 100644 --- a/packages/aws-cdk-lib/aws-lambda-nodejs/lib/bundling.ts +++ b/packages/aws-cdk-lib/aws-lambda-nodejs/lib/bundling.ts @@ -395,7 +395,8 @@ class OsCommand { * Chain commands */ function chain(commands: string[]): string { - return commands.filter(c => !!c).join(' && '); + const chainSign = this.osPlatform === 'win32' ? ' ; ' : ' && ' + return commands.filter(c => !!c).join(chainSign); } /**