Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 32 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,6 @@
"jsdoc": "^4.0.5",
"rollup": "^4.46.2",
"tap": "^21.1.0",
"typescript": "^5.9.3"
"typescript": "^6.0.2"
}
}
6 changes: 3 additions & 3 deletions test/fixtures/types/tsconfig-cjs.test.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
"compilerOptions": {
"noEmit": true,
"skipLibCheck": true,
"module": "commonjs",
"module": "preserve",
"esModuleInterop": true,
"target": "ES2022",
"moduleResolution": "node",
"baseUrl": ".",
"moduleResolution": "bundler",
"types": ["node"],
"paths": {
"node-osc": ["../../../types/index.d.mts"]
}
Expand Down
5 changes: 3 additions & 2 deletions test/fixtures/types/tsconfig-esm.test.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,9 @@
"esModuleInterop": true,
"module": "ES2022",
"target": "ES2022",
"moduleResolution": "node",
"baseUrl": ".",
"moduleResolution": "bundler",
"types": ["node"],
"rootDir": ".",
"paths": {
"node-osc": ["../../../types/index.d.mts"]
}
Expand Down
11 changes: 8 additions & 3 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

// Module settings for ESM (will generate .d.mts files)
"module": "ES2022",
"moduleResolution": "node",
"moduleResolution": "bundler",
"target": "ES2022",

// Allow default imports from modules with no default export
Expand All @@ -24,12 +24,17 @@
// Strict options for better type inference
"strict": false,
"skipLibCheck": true,

// Include Node.js types so EventEmitter inheritance is resolved in generated declarations
"types": ["node"],

// Resolve JSON modules
"resolveJsonModule": true,

// Base URL for paths
"baseUrl": ".",
// Explicit rootDir since TypeScript 6.0 no longer infers it
"rootDir": "./lib",

// Use explicit paths relative to root (no baseUrl needed in TS 6.0)
"paths": {
"#decode": ["./lib/internal/decode.mjs"]
}
Expand Down
Loading