From 038e91e45d6fc1c8edfc868a200d1170d053501e Mon Sep 17 00:00:00 2001 From: Oscar Dominguez <dominguez.celada@gmail.com> Date: Mon, 31 Aug 2020 00:45:20 +0200 Subject: [PATCH 1/2] fix(typescript): aggregator-error imported properly --- src/types.ts | 2 +- tsconfig.json | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/types.ts b/src/types.ts index da6145d7..4ebcd58f 100644 --- a/src/types.ts +++ b/src/types.ts @@ -1,4 +1,4 @@ -import type AggregateError from "aggregate-error"; +import AggregateError = require("aggregate-error"); import type { RequestError } from "@octokit/request-error"; import type { EventNames } from "./generated/event-names"; diff --git a/tsconfig.json b/tsconfig.json index 7eb80c2b..b07a9add 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,11 +1,11 @@ { "compilerOptions": { "esModuleInterop": true, - "module": "esnext", + "module": "commonjs", "moduleResolution": "node", "strict": true, "target": "es2020", "resolveJsonModule": true }, "include": ["src/**/*"] -} +} \ No newline at end of file From a31278e8c6b45bd620a521e8693b52e95fdc12b7 Mon Sep 17 00:00:00 2001 From: Oscar Dominguez <dominguez.celada@gmail.com> Date: Fri, 4 Sep 2020 16:42:05 +0200 Subject: [PATCH 2/2] chore(tsconfig): restore newline in tsconfig.json --- tsconfig.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tsconfig.json b/tsconfig.json index b07a9add..ae28cffd 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -8,4 +8,4 @@ "resolveJsonModule": true }, "include": ["src/**/*"] -} \ No newline at end of file +}