From 12243601cda5292a833d8c90a661bbdde51bd324 Mon Sep 17 00:00:00 2001 From: Nicolas Morel Date: Thu, 24 Oct 2024 08:30:42 +0200 Subject: [PATCH] fix: update-list script --- .github/scripts/update-list.ts | 2 +- package.json | 2 +- tsconfig.json | 7 ++----- 3 files changed, 4 insertions(+), 7 deletions(-) diff --git a/.github/scripts/update-list.ts b/.github/scripts/update-list.ts index 85735ce..938241a 100644 --- a/.github/scripts/update-list.ts +++ b/.github/scripts/update-list.ts @@ -1,7 +1,7 @@ import { execFileSync } from 'node:child_process'; import { writeFile } from 'node:fs/promises'; import { createInterface } from 'node:readline'; -import * as Wreck from '@hapi/wreck'; +import Wreck from '@hapi/wreck'; const ianaUri = 'https://data.iana.org/TLD/tlds-alpha-by-domain.txt'; diff --git a/package.json b/package.json index f1bc71b..7d4b7c4 100755 --- a/package.json +++ b/package.json @@ -57,7 +57,7 @@ "test": "lab -t 100 -L --typescript", "test-cov-html": "lab -t 100 -L -r html -o coverage.html", "format": "prettier --write '**/*.{cjs,ts,md}'", - "update-list": "ts-node .github/scripts/update-list.ts" + "update-list": "node --loader ts-node/esm .github/scripts/update-list.ts" }, "license": "BSD-3-Clause" } diff --git a/tsconfig.json b/tsconfig.json index f9ad544..815a721 100755 --- a/tsconfig.json +++ b/tsconfig.json @@ -17,16 +17,13 @@ "noFallthroughCasesInSwitch": true, "noUncheckedIndexedAccess": true, "noUnusedLocals": true, - "noUnusedParameters": true, - "experimentalDecorators": true + "noUnusedParameters": true }, "include": [ "src/**/*.ts", "test/**/*.ts" ], "ts-node": { - "compilerOptions": { - "module": "CommonJS" - } + "esm": true } }