Skip to content

Commit 3da3d3e

Browse files
committed
Add .js extensions to internal imports
Switch to `module: nodenext` / `moduleResolution: nodenext` in tsconfig.json and add explicit `.js` extensions to all relative import paths. This is required by Node.js ESM resolution and is also valid for CJS, making this a non-breaking preparatory change. Also switches test/profile scripts from ts-node to tsx, which has better support for nodenext module resolution.
1 parent 048110c commit 3da3d3e

91 files changed

Lines changed: 572 additions & 296 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,12 @@
1111
"llm-docs"
1212
],
1313
"scripts": {
14-
"test": "ts-node src/tests/test.ts",
14+
"test": "tsx src/tests/test.ts",
1515
"test-example-projects": "node src/tests/testExampleProjects.mjs",
1616
"build": "rm -rf dist/ && tsc --build",
1717
"format": "prettier . --write",
1818
"lint": "eslint . && prettier . --check",
19-
"profile": "ts-node scripts/profile.ts"
19+
"profile": "tsx scripts/profile.ts"
2020
},
2121
"dependencies": {
2222
"commander": "^14.0.1",
@@ -38,7 +38,7 @@
3838
"path-browserify": "^1.0.1",
3939
"prettier": "^3.6.2",
4040
"process": "^0.11.10",
41-
"ts-node": "^10.9.2"
41+
"tsx": "^4.19.0"
4242
},
4343
"prettier": {
4444
"trailingComma": "all"

0 commit comments

Comments
 (0)