Skip to content

Commit 648e1b2

Browse files
authored
Fix Node.js 24 (#193)
Signed-off-by: Matteo Collina <hello@matteocollina.com>
1 parent 4c11153 commit 648e1b2

File tree

3 files changed

+6
-10
lines changed

3 files changed

+6
-10
lines changed

package.json

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@
3939
"standard": "^17.1.0",
4040
"tinybench": "^4.0.1",
4141
"tsd": "^0.32.0",
42+
"tslib": "^2.8.1",
4243
"typescript": "~5.8.2"
4344
},
4445
"keywords": [
@@ -57,12 +58,7 @@
5758
},
5859
"homepage": "https://github.com/fastify/busboy#readme",
5960
"tsd": {
60-
"directory": "test/types",
61-
"compilerOptions": {
62-
"esModuleInterop": false,
63-
"module": "commonjs",
64-
"target": "ES2017"
65-
}
61+
"directory": "test-types"
6662
},
6763
"standard": {
6864
"globals": [

test/types/dicer.test-d.ts renamed to test-types/dicer.test-d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Dicer } from "../../lib/main";
1+
import { Dicer } from "../lib/main";
22
import * as fs from "fs";
33
import * as stream from "stream";
44

@@ -78,4 +78,4 @@ function handleDicerPartStream(part: Dicer.PartStream) {
7878
console.log("part closed");
7979
});
8080
part.pipe(outputFileStream);
81-
}
81+
}

test/types/main.test-d.ts renamed to test-types/main.test-d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import BusboyDefault, { BusboyConstructor, BusboyConfig, BusboyHeaders, Busboy, BusboyEvents, BusboyFileStream } from '../..';
1+
import BusboyDefault, { BusboyConstructor, BusboyConfig, BusboyHeaders, Busboy, BusboyEvents, BusboyFileStream } from '..';
22
import {expectError, expectType} from "tsd";
3-
import BusboyESM from "../..";
3+
import BusboyESM from "..";
44

55
// test type exports
66
type Constructor = BusboyConstructor;

0 commit comments

Comments
 (0)