diff --git a/LICENSE b/LICENSE index 243a3cbf..18ed0788 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ The MIT License (MIT) -Copyright (c) 2024 Dmitry Shirokov +Copyright (c) 2026 Dmitry Shirokov Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in diff --git a/jest.config.js b/jest.config.js index c9bbccc2..722ea2db 100644 --- a/jest.config.js +++ b/jest.config.js @@ -1,7 +1,7 @@ module.exports = { testEnvironment: 'node', testRegex: '.*test.ts$', - transform: { '^.+\\.ts?$': 'ts-jest' }, + transform: { '^.+\\.ts?$': '@swc/jest' }, moduleFileExtensions: ['ts', 'js', 'json'], rootDir: 'src', collectCoverage: true, diff --git a/package.json b/package.json index 626399db..74a653b3 100644 --- a/package.json +++ b/package.json @@ -31,6 +31,8 @@ "tiny-lru": "13.0.0" }, "devDependencies": { + "@swc/core": "1.15.3", + "@swc/jest": "0.2.39", "@types/ip6addr": "0.2.6", "@types/jest": "30.0.0", "@types/netmask": "2.0.6", @@ -42,8 +44,7 @@ "prettier": "3.8.1", "semantic-release": "25.0.3", "sinon": "21.0.3", - "ts-jest": "29.4.6", - "typescript": "5.9.3" + "typescript": "6.0.2" }, "repository": "https://github.com/runk/node-maxmind", "bugs": { @@ -63,7 +64,6 @@ "scripts": { "build": "rm -rf lib/* && tsc", "format": "prettier --write .", - "prepublish": "npm run build", "semantic-release": "semantic-release", "test": "jest" }, diff --git a/tsconfig.json b/tsconfig.json index 8eb5bf54..200b63e5 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -14,6 +14,7 @@ "removeComments": true, "sourceMap": true, "strict": true, + "types": ["node"], "lib": ["ES2020"], "target": "ES2020" },