From 8dc53e24c28417c9129414913be649fa4bf2131a Mon Sep 17 00:00:00 2001 From: legendecas Date: Wed, 29 Sep 2021 11:35:43 +0800 Subject: [PATCH] test: add esModuleInterop compatibility test --- backwards-compatability/node10/package.json | 2 +- backwards-compatability/node12/package.json | 2 +- backwards-compatability/node8/package.json | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/backwards-compatability/node10/package.json b/backwards-compatability/node10/package.json index 44969816b7a..140fedf95f9 100644 --- a/backwards-compatability/node10/package.json +++ b/backwards-compatability/node10/package.json @@ -5,7 +5,7 @@ "description": "Backwards compatability app for node8 types and the OpenTelemetry Node.js SDK", "main": "index.js", "scripts": { - "test:backcompat": "tsc --noEmit index.ts" + "test:backcompat": "tsc --noEmit index.ts && tsc --noEmit --esModuleInterop index.ts" }, "dependencies": { "@opentelemetry/sdk-node": "0.25.0", diff --git a/backwards-compatability/node12/package.json b/backwards-compatability/node12/package.json index afbf0d8b4a2..714edd0b402 100644 --- a/backwards-compatability/node12/package.json +++ b/backwards-compatability/node12/package.json @@ -5,7 +5,7 @@ "description": "Backwards compatability app for node8 types and the OpenTelemetry Node.js SDK", "main": "index.js", "scripts": { - "test:backcompat": "tsc --noEmit index.ts" + "test:backcompat": "tsc --noEmit index.ts && tsc --noEmit --esModuleInterop index.ts" }, "dependencies": { "@opentelemetry/sdk-node": "0.25.0", diff --git a/backwards-compatability/node8/package.json b/backwards-compatability/node8/package.json index 37a66f6652a..9e4512f884f 100644 --- a/backwards-compatability/node8/package.json +++ b/backwards-compatability/node8/package.json @@ -5,7 +5,7 @@ "description": "Backwards compatability app for node8 types and the OpenTelemetry Node.js SDK", "main": "index.js", "scripts": { - "test:backcompat": "tsc --noEmit index.ts" + "test:backcompat": "tsc --noEmit index.ts && tsc --noEmit --esModuleInterop index.ts" }, "dependencies": { "@opentelemetry/sdk-node": "0.25.0",