Skip to content

Commit 1224360

Browse files
committed
fix: update-list script
1 parent 4b8213f commit 1224360

File tree

3 files changed

+4
-7
lines changed

3 files changed

+4
-7
lines changed

.github/scripts/update-list.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { execFileSync } from 'node:child_process';
22
import { writeFile } from 'node:fs/promises';
33
import { createInterface } from 'node:readline';
4-
import * as Wreck from '@hapi/wreck';
4+
import Wreck from '@hapi/wreck';
55

66
const ianaUri = 'https://data.iana.org/TLD/tlds-alpha-by-domain.txt';
77

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@
5757
"test": "lab -t 100 -L --typescript",
5858
"test-cov-html": "lab -t 100 -L -r html -o coverage.html",
5959
"format": "prettier --write '**/*.{cjs,ts,md}'",
60-
"update-list": "ts-node .github/scripts/update-list.ts"
60+
"update-list": "node --loader ts-node/esm .github/scripts/update-list.ts"
6161
},
6262
"license": "BSD-3-Clause"
6363
}

tsconfig.json

+2-5
Original file line numberDiff line numberDiff line change
@@ -17,16 +17,13 @@
1717
"noFallthroughCasesInSwitch": true,
1818
"noUncheckedIndexedAccess": true,
1919
"noUnusedLocals": true,
20-
"noUnusedParameters": true,
21-
"experimentalDecorators": true
20+
"noUnusedParameters": true
2221
},
2322
"include": [
2423
"src/**/*.ts",
2524
"test/**/*.ts"
2625
],
2726
"ts-node": {
28-
"compilerOptions": {
29-
"module": "CommonJS"
30-
}
27+
"esm": true
3128
}
3229
}

0 commit comments

Comments
 (0)