Skip to content

Commit

Permalink
fix: npm run docs
Browse files Browse the repository at this point in the history
- the index.ts is now named index.mts
- typedoc is now forced to use the tsconfig.esm.json
- tsconfig.jest-base no longer overrides files and includes
  • Loading branch information
mceachen committed Dec 23, 2024
1 parent 17c87fa commit ad9c4e6
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 7 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"bundle": "run-p bundle:* compile:types",
"bundle:cjs": "tsup src/index.cts --format cjs --tsconfig tsconfig.cjs.json",
"bundle:esm": "tsup src/index.mts --format esm --tsconfig tsconfig.esm.json",
"docs": "typedoc --out docs src/index.ts",
"docs": "typedoc --tsconfig tsconfig.esm.json --out docs src/index.mts",
"jest:coverage": "jest --coverage",
"jest:watch": "npm t -- --watch",
"jest:clear": "jest --clearCache",
Expand Down
1 change: 0 additions & 1 deletion tsconfig.base.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
"target": "es2022",
"typeRoots": ["./node_modules/@types", "./src/types"],
"types": ["node"]
// "moduleResolution": "bundler"
},
"include": ["src/**/*.ts"],
"exclude": ["node_modules", "**/test-utils/*", "**/*.test.ts"]
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.cjs.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@
"moduleResolution": "node",
"outDir": "./dist/cjs"
},
"files": ["src/index.cts"]
"files": ["./src/index.cts"]
}
2 changes: 1 addition & 1 deletion tsconfig.esm.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@
"moduleResolution": "node16",
"outDir": "./dist/esm"
},
"files": ["src/index.mts"]
"files": ["./src/index.mts"]
}
4 changes: 1 addition & 3 deletions tsconfig.jest-base.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
{
"compilerOptions": {
"noEmit": true,
"types": ["node", "jest"]
"types": ["node", "jest", "jest-extended"]
},
"files": ["node_modules/jest-extended/types/index.d.ts"],
"include": ["src/**/*.ts"],
"exclude": ["node_modules"]
}

0 comments on commit ad9c4e6

Please sign in to comment.