Skip to content

Commit 9eb3b2b

Browse files
renovate[bot]runk
andauthored
chore(deps): update dependency typescript to v6 (#955)
* chore(deps): update dependency typescript to v6 * Remove ts-jest * Add node types to tsconfig --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Dmitry Shirokov <deadrunk@gmail.com>
1 parent 3b872c3 commit 9eb3b2b

4 files changed

Lines changed: 6 additions & 5 deletions

File tree

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
The MIT License (MIT)
22

3-
Copyright (c) 2024 Dmitry Shirokov
3+
Copyright (c) 2026 Dmitry Shirokov
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy of
66
this software and associated documentation files (the "Software"), to deal in

jest.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
module.exports = {
22
testEnvironment: 'node',
33
testRegex: '.*test.ts$',
4-
transform: { '^.+\\.ts?$': 'ts-jest' },
4+
transform: { '^.+\\.ts?$': '@swc/jest' },
55
moduleFileExtensions: ['ts', 'js', 'json'],
66
rootDir: 'src',
77
collectCoverage: true,

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@
3131
"tiny-lru": "13.0.0"
3232
},
3333
"devDependencies": {
34+
"@swc/core": "1.15.3",
35+
"@swc/jest": "0.2.39",
3436
"@types/ip6addr": "0.2.6",
3537
"@types/jest": "30.0.0",
3638
"@types/netmask": "2.0.6",
@@ -42,8 +44,7 @@
4244
"prettier": "3.8.1",
4345
"semantic-release": "25.0.3",
4446
"sinon": "21.0.3",
45-
"ts-jest": "29.4.6",
46-
"typescript": "5.9.3"
47+
"typescript": "6.0.2"
4748
},
4849
"repository": "https://github.com/runk/node-maxmind",
4950
"bugs": {
@@ -63,7 +64,6 @@
6364
"scripts": {
6465
"build": "rm -rf lib/* && tsc",
6566
"format": "prettier --write .",
66-
"prepublish": "npm run build",
6767
"semantic-release": "semantic-release",
6868
"test": "jest"
6969
},

tsconfig.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
"removeComments": true,
1515
"sourceMap": true,
1616
"strict": true,
17+
"types": ["node"],
1718
"lib": ["ES2020"],
1819
"target": "ES2020"
1920
},

0 commit comments

Comments
 (0)