Skip to content

Commit f9fea18

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

File tree

111 files changed

+754
-604
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

+754
-604
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-21
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+4-3
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",
@@ -46,9 +47,9 @@
4647
"@types/node": "^18.19.31",
4748
"@types/npm-profile": "^5.0.5",
4849
"@types/npmlog": "^4.1.4",
49-
"@types/pkginfo": "^0.4.1",
5050
"@types/promptly": "^3.0.3",
5151
"@types/request": "^2.48.12",
52+
"@types/semver": "^7.5.8",
5253
"@types/update-notifier": "^5.1.0",
5354
"@typescript-eslint/eslint-plugin": "^6.8.0",
5455
"@typescript-eslint/parser": "^6.8.0",
@@ -63,6 +64,7 @@
6364
"rimraf": "^5.0.5",
6465
"semantic-release": "^22.0.12",
6566
"ts-jest": "^29.1.2",
67+
"ts-node": "^10.9.2",
6668
"typescript": "^5.5.4"
6769
},
6870
"dependencies": {
@@ -78,9 +80,8 @@
7880
"npm-profile": "^11.0.0",
7981
"npm-registry-fetch": "^13.1.1",
8082
"npmlog": "^6.0.2",
81-
"pkginfo": "^0.4.1",
8283
"promptly": "^3.2.0",
83-
"semver": "^7.5.4",
84+
"semver": "^7.6.3",
8485
"ts-custom-error": "^3.3.1",
8586
"ts-results-es": "^4.1.0",
8687
"update-notifier": "^5.1.0",

0 commit comments

Comments
 (0)