Skip to content

Commit

Permalink
fix: update-list script
Browse files Browse the repository at this point in the history
  • Loading branch information
Marsup committed Oct 24, 2024
1 parent 4b8213f commit 1224360
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/scripts/update-list.ts
Original file line number Diff line number Diff line change
@@ -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';

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
7 changes: 2 additions & 5 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}

0 comments on commit 1224360

Please sign in to comment.