From 013cc6f55f21daafab087e367fe15e41413cef4c Mon Sep 17 00:00:00 2001 From: Daniel Nalborczyk Date: Tue, 30 Aug 2022 20:27:20 -0400 Subject: [PATCH] test: refactor serverless-plugin-typescript to use es6 modules --- .../serverless-plugin-typescript/app/package.json | 1 + .../serverless-plugin-typescript/app/tsconfig.json | 2 +- .../serverless-plugins/serverless-webpack/app/tsconfig.json | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/scenario/serverless-plugins/serverless-plugin-typescript/app/package.json b/tests/scenario/serverless-plugins/serverless-plugin-typescript/app/package.json index f40b50a5b..8d40c0c5c 100644 --- a/tests/scenario/serverless-plugins/serverless-plugin-typescript/app/package.json +++ b/tests/scenario/serverless-plugins/serverless-plugin-typescript/app/package.json @@ -1,5 +1,6 @@ { "name": "serverless-plugin-typescript-test", + "type": "module", "devDependencies": { "@types/aws-lambda": "8.10.102", "serverless-plugin-typescript": "2.1.2", diff --git a/tests/scenario/serverless-plugins/serverless-plugin-typescript/app/tsconfig.json b/tests/scenario/serverless-plugins/serverless-plugin-typescript/app/tsconfig.json index 2250a43d1..ccedf393d 100644 --- a/tests/scenario/serverless-plugins/serverless-plugin-typescript/app/tsconfig.json +++ b/tests/scenario/serverless-plugins/serverless-plugin-typescript/app/tsconfig.json @@ -1,7 +1,7 @@ { "compilerOptions": { "esModuleInterop": true, - "module": "CommonJS", + "module": "ES2020", "moduleResolution": "Node", "sourceMap": true, "strict": true, diff --git a/tests/scenario/serverless-plugins/serverless-webpack/app/tsconfig.json b/tests/scenario/serverless-plugins/serverless-webpack/app/tsconfig.json index b3500095d..ccedf393d 100644 --- a/tests/scenario/serverless-plugins/serverless-webpack/app/tsconfig.json +++ b/tests/scenario/serverless-plugins/serverless-webpack/app/tsconfig.json @@ -3,6 +3,7 @@ "esModuleInterop": true, "module": "ES2020", "moduleResolution": "Node", + "sourceMap": true, "strict": true, "target": "ES2020" }