Skip to content

Commit ba82210

Browse files
committed
conf: update to esm
1 parent 0b70a3a commit ba82210

File tree

111 files changed

+749
-577
lines changed

Some content is hidden

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

111 files changed

+749
-577
lines changed

jest.config.js

-6
This file was deleted.

jest.config.ts

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
import type { JestConfigWithTsJest } from "ts-jest";
2+
3+
const jestConfig: JestConfigWithTsJest = {
4+
preset: "ts-jest",
5+
testEnvironment: "node",
6+
verbose: true,
7+
clearMocks: true,
8+
extensionsToTreatAsEsm: [".ts"],
9+
moduleNameMapper: {
10+
"^(\\.{1,2}/.*)\\.js$": "$1",
11+
},
12+
transform: {
13+
"^.+\\.tsx?$": [
14+
"ts-jest",
15+
{
16+
useESM: true,
17+
},
18+
],
19+
},
20+
};
21+
22+
export default jestConfig;

package-lock.json

+156-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+4-1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
"engines": {
77
"node": ">=18"
88
},
9+
"type": "module",
910
"scripts": {
1011
"test:e2e": "jest --testMatch \"**/e2e/**/*.test.ts\" --runInBand",
1112
"test:integration": "jest --testMatch \"**/integration/**/*.test.ts\" --runInBand",
@@ -49,6 +50,7 @@
4950
"@types/pkginfo": "^0.4.1",
5051
"@types/promptly": "^3.0.3",
5152
"@types/request": "^2.48.12",
53+
"@types/semver": "^7.5.8",
5254
"@types/update-notifier": "^5.1.0",
5355
"@typescript-eslint/eslint-plugin": "^6.8.0",
5456
"@typescript-eslint/parser": "^6.8.0",
@@ -63,6 +65,7 @@
6365
"rimraf": "^5.0.5",
6466
"semantic-release": "^22.0.12",
6567
"ts-jest": "^29.1.2",
68+
"ts-node": "^10.9.2",
6669
"typescript": "^5.5.4"
6770
},
6871
"dependencies": {
@@ -80,7 +83,7 @@
8083
"npmlog": "^6.0.2",
8184
"pkginfo": "^0.4.1",
8285
"promptly": "^3.2.0",
83-
"semver": "^7.5.4",
86+
"semver": "^7.6.3",
8487
"ts-custom-error": "^3.3.1",
8588
"ts-results-es": "^4.1.0",
8689
"update-notifier": "^5.1.0",

0 commit comments

Comments
 (0)