From 8f5be403620cdf83754ac15e4fac613ce7c39064 Mon Sep 17 00:00:00 2001 From: Sindre Sorhus Date: Fri, 6 Aug 2021 02:09:17 +0200 Subject: [PATCH] Fix CI --- .github/workflows/main.yml | 2 +- tsconfig.json | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index a273d28cf..0a541c956 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -29,7 +29,7 @@ jobs: typescript-version: - 'latest' - '^4.3.0' - - '4.2.0' + - '~4.2.4' steps: - uses: actions/checkout@v2 - uses: actions/setup-node@v2 diff --git a/tsconfig.json b/tsconfig.json index f9e878021..d16e1d114 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,7 +1,12 @@ { "extends": "@sindresorhus/tsconfig", "compilerOptions": { - "noEmit": true + "noEmit": true, + "target": "ES2019", // Node.js 12 + "lib": [ + "ES2020", + "DOM" + ] }, "exclude": [ "test-d/**/*"