Skip to content

Commit 00caf04

Browse files
committed
chore: update typescript to latest
1 parent 80dec9c commit 00caf04

12 files changed

Lines changed: 51 additions & 40 deletions

File tree

package-lock.json

Lines changed: 33 additions & 13 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -59,15 +59,12 @@
5959
"tape": "^5.2.2",
6060
"tiny-glob": "^0.2.9",
6161
"ts-node": "^10.9.1",
62-
"typescript": "~5.1.0"
62+
"typescript": "~5.9.3"
6363
},
6464
"engines": {
6565
"node": ">=14.17.0",
6666
"npm": ">=7.0.0"
6767
},
68-
"overrides": {
69-
"@types/node": "22.19.7"
70-
},
7168
"volta": {
7269
"node": "14.17.0"
7370
}

packages/cli/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
},
3030
"scripts": {
3131
"lint": "biome check src test",
32-
"build:mjs": "tsc --module esnext --outDir ./bin",
32+
"build:mjs": "tsc --module nodenext --outDir ./bin",
3333
"build": "npm run build:mjs",
3434
"pretest": "npm run build",
3535
"test:raw": "node test/index.ts",
@@ -39,7 +39,7 @@
3939
"prepublishOnly": "npm run build"
4040
},
4141
"devDependencies": {
42-
"@types/node": "22.7.5"
42+
"@types/node": "~24.10.9"
4343
},
4444
"dependencies": {
4545
"@json2csv/formatters": "^7.0.7",

packages/formatters/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@
3737
"main": "dist/mjs/index.js",
3838
"scripts": {
3939
"lint": "biome check src",
40-
"build:cjs": "tsc --module commonjs --verbatimModuleSyntax false --outDir ./dist/cjs && node ../../build-cjs.js",
41-
"build:mjs": "tsc --module esnext --outDir ./dist/mjs",
40+
"build:cjs": "tsc --module commonjs --moduleResolution node --verbatimModuleSyntax false --outDir ./dist/cjs && node ../../build-cjs.js",
41+
"build:mjs": "tsc --module nodenext --outDir ./dist/mjs",
4242
"build": "npm run build:cjs && npm run build:mjs",
4343
"test": "echo \"Error: no test specified\" && exit 1",
4444
"prepublishOnly": "npm run build"
Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
11
type Formatter<T> = (a: T) => string;
22

3-
// biome-ignore lint/suspicious/noTsIgnore: Required for verbatimModuleSyntax builds - see https://github.com/microsoft/TypeScript/issues/41409
4-
// @ts-ignore
5-
export default Formatter;
3+
export type { Formatter as default };

packages/node/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@
3737
"main": "dist/mjs/index.js",
3838
"scripts": {
3939
"lint": "biome check src test",
40-
"build:cjs": "tsc --module commonjs --verbatimModuleSyntax false --outDir ./dist/cjs && node ../../build-cjs.js",
41-
"build:mjs": "tsc --module esnext --outDir ./dist/mjs",
40+
"build:cjs": "tsc --module commonjs --moduleResolution node --verbatimModuleSyntax false --outDir ./dist/cjs && node ../../build-cjs.js",
41+
"build:mjs": "tsc --module nodenext --outDir ./dist/mjs",
4242
"build": "npm run build:cjs && npm run build:mjs",
4343
"pretest": "npm run build",
4444
"test": "node test/CommonJS.cjs && npm run test:raw | tap-spec",
@@ -48,7 +48,7 @@
4848
"prepublishOnly": "npm run build"
4949
},
5050
"devDependencies": {
51-
"@types/node": "22.7.5"
51+
"@types/node": "~24.10.9"
5252
},
5353
"dependencies": {
5454
"@json2csv/plainjs": "^7.0.7"

packages/plainjs/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@
3737
"main": "dist/mjs/index.js",
3838
"scripts": {
3939
"lint": "biome check src test",
40-
"build:cjs": "tsc --module commonjs --verbatimModuleSyntax false --outDir ./dist/cjs && node ../../build-cjs.js",
41-
"build:mjs": "tsc --module esnext --outDir ./dist/mjs",
40+
"build:cjs": "tsc --module commonjs --moduleResolution node --verbatimModuleSyntax false --outDir ./dist/cjs && node ../../build-cjs.js",
41+
"build:mjs": "tsc --module nodenext --outDir ./dist/mjs",
4242
"build": "npm run build:cjs && npm run build:mjs",
4343
"pretest": "npm run build",
4444
"test": "node test/CommonJS.cjs && npm run test:raw | tap-spec",
Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
11
type Transform<I, O> = (input: I) => O | Array<O>;
22

3-
// biome-ignore lint/suspicious/noTsIgnore: Required for verbatimModuleSyntax builds - see https://github.com/microsoft/TypeScript/issues/41409
4-
// @ts-ignore
5-
export default Transform;
3+
export type { Transform as default };

packages/transforms/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@
3737
"main": "dist/mjs/index.js",
3838
"scripts": {
3939
"lint": "biome check src",
40-
"build:cjs": "tsc --module commonjs --verbatimModuleSyntax false --outDir ./dist/cjs && node ../../build-cjs.js",
41-
"build:mjs": "tsc --module esnext --outDir ./dist/mjs",
40+
"build:cjs": "tsc --module commonjs --moduleResolution node --verbatimModuleSyntax false --outDir ./dist/cjs && node ../../build-cjs.js",
41+
"build:mjs": "tsc --module nodenext --outDir ./dist/mjs",
4242
"build": "npm run build:cjs && npm run build:mjs",
4343
"test": "echo \"Error: no test specified\" && exit 1",
4444
"prepublishOnly": "npm run build"
Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
11
type Transform<I, O> = (input: I) => O[];
22

3-
// biome-ignore lint/suspicious/noTsIgnore: Required for verbatimModuleSyntax builds - see https://github.com/microsoft/TypeScript/issues/41409
4-
// @ts-ignore
5-
export default Transform;
3+
export type { Transform as default };

0 commit comments

Comments
 (0)