From ff799a17b011f04a08bac5efec0b1ba96f4261d5 Mon Sep 17 00:00:00 2001 From: Markus Tacker Date: Thu, 14 Nov 2024 23:58:53 +0100 Subject: [PATCH] test: pass tsconfig --- cdk/packTestLambdas.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cdk/packTestLambdas.ts b/cdk/packTestLambdas.ts index 6451aa4..ac8ce40 100644 --- a/cdk/packTestLambdas.ts +++ b/cdk/packTestLambdas.ts @@ -1,6 +1,9 @@ +import path from 'node:path' import type { PackedLambda } from '../src/packLambda.js' import { packLambdaFromPath } from '../src/packLambdaFromPath.js' +const __dirname = path.dirname(new URL(import.meta.url).pathname) + export type TestLambdas = { test: PackedLambda testAliasImports: PackedLambda @@ -14,5 +17,6 @@ export const packTestLambdas = async (): Promise => ({ testAliasImports: await packLambdaFromPath({ id: 'testAliasImports', sourceFilePath: 'cdk/lambda-with-subpath.ts', + tsConfigFilePath: path.join(__dirname, '..', 'tsconfig.json'), }), })