diff --git a/js/appauth/jest.config.js b/js/appauth/jest.config.js index 44133559da..fc8ab29890 100644 --- a/js/appauth/jest.config.js +++ b/js/appauth/jest.config.js @@ -15,15 +15,9 @@ module.exports = { testEnvironment: 'node', testMatch: ['**/*.test.ts'], transform: { - '^.+\\.(ts|tsx)$': ['ts-jest', { + '^.+\\.[tj]sx?$': ['ts-jest', { tsconfig: 'tsconfig.test.json', }], - '^.+\\.(js|jsx)$': ['ts-jest', { - tsconfig: { - allowJs: true, - module: 'commonjs', - }, - }], }, verbose: true, moduleNameMapper: { diff --git a/js/appauth/package-lock.json b/js/appauth/package-lock.json index 2ba84f3de8..d40a70ef7d 100644 --- a/js/appauth/package-lock.json +++ b/js/appauth/package-lock.json @@ -31,7 +31,7 @@ "nock": "^14.0.0", "prettier": "^3.2.5", "ts-jest": "^29.0.0", - "typescript": "^5.4.2", + "typescript": "^6.0.0", "typescript-eslint": "^8.0.0" } }, @@ -40,7 +40,7 @@ "version": "0.0.0", "license": "Apache-2.0", "devDependencies": { - "typescript": "^5.4.2" + "typescript": "^6.0.0" } }, "node_modules/@aashutoshrathi/word-wrap": { @@ -6194,9 +6194,9 @@ } }, "node_modules/typescript": { - "version": "5.9.3", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.9.3.tgz", - "integrity": "sha512-jl1vZzPDinLr9eUt3J/t7V6FgNEw9QjvBPdysz9KfQDD41fQrC2Y4vKQdiaUpFT4bXlb1RHhLpp8wtm6M5TgSw==", + "version": "6.0.3", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-6.0.3.tgz", + "integrity": "sha512-y2TvuxSZPDyQakkFRPZHKFm+KKVqIisdg9/CZwm9ftvKXLP8NRWj38/ODjNbr43SsoXqNuAisEf1GdCxqWcdBw==", "dev": true, "license": "Apache-2.0", "bin": { diff --git a/js/appauth/package.json b/js/appauth/package.json index c8af4743f8..4a86fe7665 100644 --- a/js/appauth/package.json +++ b/js/appauth/package.json @@ -43,7 +43,7 @@ "nock": "^14.0.0", "prettier": "^3.2.5", "ts-jest": "^29.0.0", - "typescript": "^5.4.2", + "typescript": "^6.0.0", "typescript-eslint": "^8.0.0" }, "dependencies": { diff --git a/js/appauth/tsconfig.json b/js/appauth/tsconfig.json index bc309dd532..2e0a24186f 100644 --- a/js/appauth/tsconfig.json +++ b/js/appauth/tsconfig.json @@ -14,9 +14,10 @@ "removeComments": false, "preserveConstEnums": true, "resolveJsonModule": true, - "isolatedModules": true + "isolatedModules": true, + "types": ["node"] }, "include": ["**/*.ts"], - "exclude": ["node_modules"], + "exclude": ["node_modules", "**/__tests__/**", "**/*.test.ts"], "references": [{"path": "../utils"}] } diff --git a/js/appauth/tsconfig.test.json b/js/appauth/tsconfig.test.json index 389f74a675..a02c3d5b7f 100644 --- a/js/appauth/tsconfig.test.json +++ b/js/appauth/tsconfig.test.json @@ -1,8 +1,12 @@ { "extends": "./tsconfig.json", "compilerOptions": { + "allowJs": true, + "ignoreDeprecations": "6.0", + "isolatedModules": true, "module": "commonjs", "moduleResolution": "node", + "rootDir": ".", "types": ["node", "jest"] }, "references": [{"path": "../utils"}] diff --git a/js/dispatch/jest.config.js b/js/dispatch/jest.config.js index 0930eec0f6..697e0b37a6 100644 --- a/js/dispatch/jest.config.js +++ b/js/dispatch/jest.config.js @@ -15,15 +15,9 @@ module.exports = { testEnvironment: 'node', testMatch: ['**/*.test.ts'], transform: { - '^.+\\.(ts|tsx)$': ['ts-jest', { + '^.+\\.[tj]sx?$': ['ts-jest', { tsconfig: 'tsconfig.test.json', }], - '^.+\\.(js|jsx)$': ['ts-jest', { - tsconfig: { - allowJs: true, - module: 'commonjs', - }, - }], }, moduleNameMapper: { '^@actions/core$': '/node_modules/@actions/core/lib/core.js', diff --git a/js/dispatch/package-lock.json b/js/dispatch/package-lock.json index e934fa9221..2a083c8dcc 100644 --- a/js/dispatch/package-lock.json +++ b/js/dispatch/package-lock.json @@ -28,7 +28,7 @@ "nock": "^14.0.0", "prettier": "^3.2.5", "ts-jest": "^29.0.0", - "typescript": "^5.4.2", + "typescript": "^6.0.0", "typescript-eslint": "^8.0.0" } }, @@ -5609,9 +5609,9 @@ } }, "node_modules/typescript": { - "version": "5.9.3", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.9.3.tgz", - "integrity": "sha512-jl1vZzPDinLr9eUt3J/t7V6FgNEw9QjvBPdysz9KfQDD41fQrC2Y4vKQdiaUpFT4bXlb1RHhLpp8wtm6M5TgSw==", + "version": "6.0.3", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-6.0.3.tgz", + "integrity": "sha512-y2TvuxSZPDyQakkFRPZHKFm+KKVqIisdg9/CZwm9ftvKXLP8NRWj38/ODjNbr43SsoXqNuAisEf1GdCxqWcdBw==", "dev": true, "license": "Apache-2.0", "bin": { diff --git a/js/dispatch/package.json b/js/dispatch/package.json index b807984305..0eccbee1eb 100644 --- a/js/dispatch/package.json +++ b/js/dispatch/package.json @@ -40,7 +40,7 @@ "nock": "^14.0.0", "prettier": "^3.2.5", "ts-jest": "^29.0.0", - "typescript": "^5.4.2", + "typescript": "^6.0.0", "typescript-eslint": "^8.0.0" }, "dependencies": { diff --git a/js/dispatch/tsconfig.json b/js/dispatch/tsconfig.json index 2a78bf239c..6f716ce497 100644 --- a/js/dispatch/tsconfig.json +++ b/js/dispatch/tsconfig.json @@ -13,8 +13,9 @@ "noImplicitAny": true, "removeComments": false, "preserveConstEnums": true, - "resolveJsonModule": true + "resolveJsonModule": true, + "types": ["node"] }, "include": ["**/*.ts"], - "exclude": ["node_modules"] + "exclude": ["node_modules", "**/__tests__/**", "**/*.test.ts"] } diff --git a/js/dispatch/tsconfig.test.json b/js/dispatch/tsconfig.test.json index a34473ddaa..001932eac5 100644 --- a/js/dispatch/tsconfig.test.json +++ b/js/dispatch/tsconfig.test.json @@ -1,8 +1,12 @@ { "extends": "./tsconfig.json", "compilerOptions": { + "allowJs": true, + "ignoreDeprecations": "6.0", + "isolatedModules": true, "module": "commonjs", "moduleResolution": "node", + "rootDir": ".", "types": ["node", "jest"] } } diff --git a/js/github/checks/jest.config.js b/js/github/checks/jest.config.js index 7f95e403be..4372f6e21e 100644 --- a/js/github/checks/jest.config.js +++ b/js/github/checks/jest.config.js @@ -16,15 +16,9 @@ module.exports = { testMatch: ['**/*.test.ts'], setupFiles: ['/jest.setup.js'], transform: { - '^.+\\.(ts|tsx)$': ['ts-jest', { + '^.+\\.[tj]sx?$': ['ts-jest', { tsconfig: 'tsconfig.test.json', }], - '^.+\\.(js|jsx)$': ['ts-jest', { - tsconfig: { - allowJs: true, - module: 'commonjs', - }, - }], }, moduleNameMapper: { '^@actions/core$': '/node_modules/@actions/core/lib/core.js', diff --git a/js/github/checks/package-lock.json b/js/github/checks/package-lock.json index 6891d854db..9ef880cbc9 100644 --- a/js/github/checks/package-lock.json +++ b/js/github/checks/package-lock.json @@ -31,7 +31,7 @@ "nock": "^14.0.0", "prettier": "^3.2.5", "ts-jest": "^29.0.0", - "typescript": "^5.4.2", + "typescript": "^6.0.0", "typescript-eslint": "^8.0.0" } }, @@ -40,7 +40,7 @@ "version": "0.0.0", "license": "Apache-2.0", "devDependencies": { - "typescript": "^5.4.2" + "typescript": "^6.0.0" } }, "node_modules/@actions/core": { @@ -5708,9 +5708,9 @@ } }, "node_modules/typescript": { - "version": "5.9.3", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.9.3.tgz", - "integrity": "sha512-jl1vZzPDinLr9eUt3J/t7V6FgNEw9QjvBPdysz9KfQDD41fQrC2Y4vKQdiaUpFT4bXlb1RHhLpp8wtm6M5TgSw==", + "version": "6.0.3", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-6.0.3.tgz", + "integrity": "sha512-y2TvuxSZPDyQakkFRPZHKFm+KKVqIisdg9/CZwm9ftvKXLP8NRWj38/ODjNbr43SsoXqNuAisEf1GdCxqWcdBw==", "dev": true, "license": "Apache-2.0", "bin": { diff --git a/js/github/checks/package.json b/js/github/checks/package.json index ad9d992199..be730d3233 100644 --- a/js/github/checks/package.json +++ b/js/github/checks/package.json @@ -41,7 +41,7 @@ "nock": "^14.0.0", "prettier": "^3.2.5", "ts-jest": "^29.0.0", - "typescript": "^5.4.2", + "typescript": "^6.0.0", "typescript-eslint": "^8.0.0" }, "dependencies": { diff --git a/js/github/checks/tsconfig.json b/js/github/checks/tsconfig.json index 15a1cc0580..5add70e6b0 100644 --- a/js/github/checks/tsconfig.json +++ b/js/github/checks/tsconfig.json @@ -13,9 +13,10 @@ "noImplicitAny": true, "removeComments": false, "preserveConstEnums": true, - "resolveJsonModule": true + "resolveJsonModule": true, + "types": ["node"] }, "include": ["**/*.ts"], - "exclude": ["node_modules"], + "exclude": ["node_modules", "**/__tests__/**", "**/*.test.ts"], "references": [{"path": "../../utils"}] } diff --git a/js/github/checks/tsconfig.test.json b/js/github/checks/tsconfig.test.json index d674141a31..e773cefe3d 100644 --- a/js/github/checks/tsconfig.test.json +++ b/js/github/checks/tsconfig.test.json @@ -1,8 +1,12 @@ { "extends": "./tsconfig.json", "compilerOptions": { + "allowJs": true, + "ignoreDeprecations": "6.0", + "isolatedModules": true, "module": "commonjs", "moduleResolution": "node", + "rootDir": ".", "types": ["node", "jest"] }, "references": [{"path": "../../utils"}] diff --git a/js/github/mutex/jest.config.js b/js/github/mutex/jest.config.js index 5ee5544259..b311c3f913 100644 --- a/js/github/mutex/jest.config.js +++ b/js/github/mutex/jest.config.js @@ -5,15 +5,9 @@ module.exports = { testMatch: ['**/*.test.ts'], testRunner: 'jest-circus/runner', transform: { - '^.+\\.(ts|tsx)$': ['ts-jest', { + '^.+\\.[tj]sx?$': ['ts-jest', { tsconfig: 'tsconfig.test.json', }], - '^.+\\.(js|jsx)$': ['ts-jest', { - tsconfig: { - allowJs: true, - module: 'commonjs', - }, - }], }, moduleNameMapper: { '^@actions/core$': '/node_modules/@actions/core/lib/core.js', diff --git a/js/github/mutex/package-lock.json b/js/github/mutex/package-lock.json index f127f0b425..5fb29cc6f8 100644 --- a/js/github/mutex/package-lock.json +++ b/js/github/mutex/package-lock.json @@ -29,7 +29,7 @@ "nock": "^14.0.0", "prettier": "^3.2.5", "ts-jest": "^29.0.0", - "typescript": "^5.4.2", + "typescript": "^6.0.0", "typescript-eslint": "^8.0.0" } }, @@ -5580,9 +5580,9 @@ } }, "node_modules/typescript": { - "version": "5.9.3", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.9.3.tgz", - "integrity": "sha512-jl1vZzPDinLr9eUt3J/t7V6FgNEw9QjvBPdysz9KfQDD41fQrC2Y4vKQdiaUpFT4bXlb1RHhLpp8wtm6M5TgSw==", + "version": "6.0.3", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-6.0.3.tgz", + "integrity": "sha512-y2TvuxSZPDyQakkFRPZHKFm+KKVqIisdg9/CZwm9ftvKXLP8NRWj38/ODjNbr43SsoXqNuAisEf1GdCxqWcdBw==", "dev": true, "license": "Apache-2.0", "bin": { diff --git a/js/github/mutex/package.json b/js/github/mutex/package.json index a46400ac8c..436ff48853 100644 --- a/js/github/mutex/package.json +++ b/js/github/mutex/package.json @@ -39,7 +39,7 @@ "nock": "^14.0.0", "prettier": "^3.2.5", "ts-jest": "^29.0.0", - "typescript": "^5.4.2", + "typescript": "^6.0.0", "typescript-eslint": "^8.0.0" } } diff --git a/js/github/mutex/tsconfig.json b/js/github/mutex/tsconfig.json index 3720b3652c..aaabdb316a 100644 --- a/js/github/mutex/tsconfig.json +++ b/js/github/mutex/tsconfig.json @@ -14,7 +14,8 @@ "noImplicitAny": true, "removeComments": false, "preserveConstEnums": true, - "resolveJsonModule": true + "resolveJsonModule": true, + "types": ["node"] }, "include": ["**/*.ts"], "exclude": ["node_modules", "**/*.test.ts"] diff --git a/js/github/mutex/tsconfig.test.json b/js/github/mutex/tsconfig.test.json index a34473ddaa..001932eac5 100644 --- a/js/github/mutex/tsconfig.test.json +++ b/js/github/mutex/tsconfig.test.json @@ -1,8 +1,12 @@ { "extends": "./tsconfig.json", "compilerOptions": { + "allowJs": true, + "ignoreDeprecations": "6.0", + "isolatedModules": true, "module": "commonjs", "moduleResolution": "node", + "rootDir": ".", "types": ["node", "jest"] } } diff --git a/js/github/script/run/jest.config.js b/js/github/script/run/jest.config.js index da27039033..78779e3bca 100644 --- a/js/github/script/run/jest.config.js +++ b/js/github/script/run/jest.config.js @@ -15,15 +15,9 @@ module.exports = { testEnvironment: 'node', testMatch: ['**/*.test.ts'], transform: { - '^.+\\.(ts|tsx)$': ['ts-jest', { + '^.+\\.[tj]sx?$': ['ts-jest', { tsconfig: 'tsconfig.test.json', }], - '^.+\\.(js|jsx)$': ['ts-jest', { - tsconfig: { - allowJs: true, - module: 'commonjs', - }, - }], }, moduleNameMapper: { '^@actions/core$': '/node_modules/@actions/core/lib/core.js', diff --git a/js/github/script/run/package-lock.json b/js/github/script/run/package-lock.json index 5cd8aaf6ce..93b6810965 100644 --- a/js/github/script/run/package-lock.json +++ b/js/github/script/run/package-lock.json @@ -27,7 +27,7 @@ "nock": "^14.0.0", "prettier": "^3.2.5", "ts-jest": "^29.0.0", - "typescript": "^5.4.2", + "typescript": "^6.0.0", "typescript-eslint": "^8.0.0" } }, @@ -5585,9 +5585,9 @@ } }, "node_modules/typescript": { - "version": "5.9.3", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.9.3.tgz", - "integrity": "sha512-jl1vZzPDinLr9eUt3J/t7V6FgNEw9QjvBPdysz9KfQDD41fQrC2Y4vKQdiaUpFT4bXlb1RHhLpp8wtm6M5TgSw==", + "version": "6.0.3", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-6.0.3.tgz", + "integrity": "sha512-y2TvuxSZPDyQakkFRPZHKFm+KKVqIisdg9/CZwm9ftvKXLP8NRWj38/ODjNbr43SsoXqNuAisEf1GdCxqWcdBw==", "dev": true, "license": "Apache-2.0", "bin": { diff --git a/js/github/script/run/package.json b/js/github/script/run/package.json index 7c1d8a2953..f8a1d6f250 100644 --- a/js/github/script/run/package.json +++ b/js/github/script/run/package.json @@ -19,8 +19,8 @@ }, "homepage": "https://github.com/envoyproxy/toolshed", "scripts": { - "build": "tsc --noEmit && ncc build main.ts -o dist -m", - "test": "tsc --noEmit && jest", + "build": "tsc --noEmit --skipLibCheck && ncc build main.ts -o dist -m", + "test": "tsc --noEmit --skipLibCheck --project tsconfig.test.json && jest", "lint": "eslint .", "lint-fix": "eslint . --fix" }, @@ -40,7 +40,7 @@ "nock": "^14.0.0", "prettier": "^3.2.5", "ts-jest": "^29.0.0", - "typescript": "^5.4.2", + "typescript": "^6.0.0", "typescript-eslint": "^8.0.0" }, "dependencies": { diff --git a/js/github/script/run/tsconfig.json b/js/github/script/run/tsconfig.json index 2a78bf239c..6f716ce497 100644 --- a/js/github/script/run/tsconfig.json +++ b/js/github/script/run/tsconfig.json @@ -13,8 +13,9 @@ "noImplicitAny": true, "removeComments": false, "preserveConstEnums": true, - "resolveJsonModule": true + "resolveJsonModule": true, + "types": ["node"] }, "include": ["**/*.ts"], - "exclude": ["node_modules"] + "exclude": ["node_modules", "**/__tests__/**", "**/*.test.ts"] } diff --git a/js/github/script/run/tsconfig.test.json b/js/github/script/run/tsconfig.test.json index a34473ddaa..001932eac5 100644 --- a/js/github/script/run/tsconfig.test.json +++ b/js/github/script/run/tsconfig.test.json @@ -1,8 +1,12 @@ { "extends": "./tsconfig.json", "compilerOptions": { + "allowJs": true, + "ignoreDeprecations": "6.0", + "isolatedModules": true, "module": "commonjs", "moduleResolution": "node", + "rootDir": ".", "types": ["node", "jest"] } } diff --git a/js/hashfiles/jest.config.js b/js/hashfiles/jest.config.js index 61f2be7716..943549be3d 100644 --- a/js/hashfiles/jest.config.js +++ b/js/hashfiles/jest.config.js @@ -15,15 +15,9 @@ module.exports = { testEnvironment: 'node', testMatch: ['**/*.test.ts'], transform: { - '^.+\\.(ts|tsx)$': ['ts-jest', { + '^.+\\.[tj]sx?$': ['ts-jest', { tsconfig: 'tsconfig.test.json', }], - '^.+\\.(js|jsx)$': ['ts-jest', { - tsconfig: { - allowJs: true, - module: 'commonjs', - }, - }], }, moduleNameMapper: { '^@actions/core$': '/node_modules/@actions/core/lib/core.js', diff --git a/js/hashfiles/package-lock.json b/js/hashfiles/package-lock.json index 32c75afdbd..1c8f92ed73 100644 --- a/js/hashfiles/package-lock.json +++ b/js/hashfiles/package-lock.json @@ -29,7 +29,7 @@ "nock": "^14.0.0", "prettier": "^3.2.5", "ts-jest": "^29.0.0", - "typescript": "^5.4.2", + "typescript": "^6.0.0", "typescript-eslint": "^8.0.0" } }, @@ -5644,9 +5644,9 @@ } }, "node_modules/typescript": { - "version": "5.9.3", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.9.3.tgz", - "integrity": "sha512-jl1vZzPDinLr9eUt3J/t7V6FgNEw9QjvBPdysz9KfQDD41fQrC2Y4vKQdiaUpFT4bXlb1RHhLpp8wtm6M5TgSw==", + "version": "6.0.3", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-6.0.3.tgz", + "integrity": "sha512-y2TvuxSZPDyQakkFRPZHKFm+KKVqIisdg9/CZwm9ftvKXLP8NRWj38/ODjNbr43SsoXqNuAisEf1GdCxqWcdBw==", "dev": true, "license": "Apache-2.0", "bin": { diff --git a/js/hashfiles/package.json b/js/hashfiles/package.json index 034bfde185..bfb3fd9d0c 100644 --- a/js/hashfiles/package.json +++ b/js/hashfiles/package.json @@ -40,7 +40,7 @@ "nock": "^14.0.0", "prettier": "^3.2.5", "ts-jest": "^29.0.0", - "typescript": "^5.4.2", + "typescript": "^6.0.0", "typescript-eslint": "^8.0.0" }, "dependencies": { diff --git a/js/hashfiles/tsconfig.json b/js/hashfiles/tsconfig.json index 2a78bf239c..6f716ce497 100644 --- a/js/hashfiles/tsconfig.json +++ b/js/hashfiles/tsconfig.json @@ -13,8 +13,9 @@ "noImplicitAny": true, "removeComments": false, "preserveConstEnums": true, - "resolveJsonModule": true + "resolveJsonModule": true, + "types": ["node"] }, "include": ["**/*.ts"], - "exclude": ["node_modules"] + "exclude": ["node_modules", "**/__tests__/**", "**/*.test.ts"] } diff --git a/js/hashfiles/tsconfig.test.json b/js/hashfiles/tsconfig.test.json index a34473ddaa..001932eac5 100644 --- a/js/hashfiles/tsconfig.test.json +++ b/js/hashfiles/tsconfig.test.json @@ -1,8 +1,12 @@ { "extends": "./tsconfig.json", "compilerOptions": { + "allowJs": true, + "ignoreDeprecations": "6.0", + "isolatedModules": true, "module": "commonjs", "moduleResolution": "node", + "rootDir": ".", "types": ["node", "jest"] } } diff --git a/js/jq/jest.config.js b/js/jq/jest.config.js index da27039033..78779e3bca 100644 --- a/js/jq/jest.config.js +++ b/js/jq/jest.config.js @@ -15,15 +15,9 @@ module.exports = { testEnvironment: 'node', testMatch: ['**/*.test.ts'], transform: { - '^.+\\.(ts|tsx)$': ['ts-jest', { + '^.+\\.[tj]sx?$': ['ts-jest', { tsconfig: 'tsconfig.test.json', }], - '^.+\\.(js|jsx)$': ['ts-jest', { - tsconfig: { - allowJs: true, - module: 'commonjs', - }, - }], }, moduleNameMapper: { '^@actions/core$': '/node_modules/@actions/core/lib/core.js', diff --git a/js/jq/package-lock.json b/js/jq/package-lock.json index 20306b012b..f09d86a4af 100644 --- a/js/jq/package-lock.json +++ b/js/jq/package-lock.json @@ -30,7 +30,7 @@ "nock": "^14.0.0", "prettier": "^3.2.5", "ts-jest": "^29.0.0", - "typescript": "^5.4.2", + "typescript": "^6.0.0", "typescript-eslint": "^8.0.0" } }, @@ -5459,9 +5459,9 @@ } }, "node_modules/typescript": { - "version": "5.9.3", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.9.3.tgz", - "integrity": "sha512-jl1vZzPDinLr9eUt3J/t7V6FgNEw9QjvBPdysz9KfQDD41fQrC2Y4vKQdiaUpFT4bXlb1RHhLpp8wtm6M5TgSw==", + "version": "6.0.3", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-6.0.3.tgz", + "integrity": "sha512-y2TvuxSZPDyQakkFRPZHKFm+KKVqIisdg9/CZwm9ftvKXLP8NRWj38/ODjNbr43SsoXqNuAisEf1GdCxqWcdBw==", "dev": true, "license": "Apache-2.0", "bin": { diff --git a/js/jq/package.json b/js/jq/package.json index 25c8fb85fe..b4513c45e8 100644 --- a/js/jq/package.json +++ b/js/jq/package.json @@ -41,7 +41,7 @@ "nock": "^14.0.0", "prettier": "^3.2.5", "ts-jest": "^29.0.0", - "typescript": "^5.4.2", + "typescript": "^6.0.0", "typescript-eslint": "^8.0.0" }, "dependencies": { diff --git a/js/jq/tsconfig.json b/js/jq/tsconfig.json index 97ad8fba50..9c54aead51 100644 --- a/js/jq/tsconfig.json +++ b/js/jq/tsconfig.json @@ -13,11 +13,12 @@ "noImplicitAny": true, "removeComments": false, "preserveConstEnums": true, - "resolveJsonModule": true + "resolveJsonModule": true, + "types": ["node"] }, "include": [ "**/*.ts", "**/modules/*.jq" ], - "exclude": ["node_modules"] + "exclude": ["node_modules", "**/__tests__/**", "**/*.test.ts"] } diff --git a/js/jq/tsconfig.test.json b/js/jq/tsconfig.test.json index a34473ddaa..001932eac5 100644 --- a/js/jq/tsconfig.test.json +++ b/js/jq/tsconfig.test.json @@ -1,8 +1,12 @@ { "extends": "./tsconfig.json", "compilerOptions": { + "allowJs": true, + "ignoreDeprecations": "6.0", + "isolatedModules": true, "module": "commonjs", "moduleResolution": "node", + "rootDir": ".", "types": ["node", "jest"] } } diff --git a/js/retest/jest.config.js b/js/retest/jest.config.js index da27039033..78779e3bca 100644 --- a/js/retest/jest.config.js +++ b/js/retest/jest.config.js @@ -15,15 +15,9 @@ module.exports = { testEnvironment: 'node', testMatch: ['**/*.test.ts'], transform: { - '^.+\\.(ts|tsx)$': ['ts-jest', { + '^.+\\.[tj]sx?$': ['ts-jest', { tsconfig: 'tsconfig.test.json', }], - '^.+\\.(js|jsx)$': ['ts-jest', { - tsconfig: { - allowJs: true, - module: 'commonjs', - }, - }], }, moduleNameMapper: { '^@actions/core$': '/node_modules/@actions/core/lib/core.js', diff --git a/js/retest/package-lock.json b/js/retest/package-lock.json index 4763acb444..ff5a097ab8 100644 --- a/js/retest/package-lock.json +++ b/js/retest/package-lock.json @@ -31,7 +31,7 @@ "nock": "^14.0.0", "prettier": "^3.2.5", "ts-jest": "^29.0.0", - "typescript": "^5.4.2", + "typescript": "^6.0.0", "typescript-eslint": "^8.0.0" } }, @@ -6023,9 +6023,9 @@ } }, "node_modules/typescript": { - "version": "5.9.3", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.9.3.tgz", - "integrity": "sha512-jl1vZzPDinLr9eUt3J/t7V6FgNEw9QjvBPdysz9KfQDD41fQrC2Y4vKQdiaUpFT4bXlb1RHhLpp8wtm6M5TgSw==", + "version": "6.0.3", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-6.0.3.tgz", + "integrity": "sha512-y2TvuxSZPDyQakkFRPZHKFm+KKVqIisdg9/CZwm9ftvKXLP8NRWj38/ODjNbr43SsoXqNuAisEf1GdCxqWcdBw==", "dev": true, "license": "Apache-2.0", "bin": { diff --git a/js/retest/package.json b/js/retest/package.json index 420f8e3101..7c13077cd4 100644 --- a/js/retest/package.json +++ b/js/retest/package.json @@ -40,7 +40,7 @@ "nock": "^14.0.0", "prettier": "^3.2.5", "ts-jest": "^29.0.0", - "typescript": "^5.4.2", + "typescript": "^6.0.0", "typescript-eslint": "^8.0.0" }, "dependencies": { diff --git a/js/retest/tsconfig.json b/js/retest/tsconfig.json index 6d215bc15a..ab6c7d9e07 100644 --- a/js/retest/tsconfig.json +++ b/js/retest/tsconfig.json @@ -14,8 +14,9 @@ "noImplicitAny": true, "removeComments": false, "preserveConstEnums": true, - "resolveJsonModule": true + "resolveJsonModule": true, + "types": ["node"] }, "include": ["**/*.ts"], - "exclude": ["node_modules"] + "exclude": ["node_modules", "**/__tests__/**", "**/*.test.ts"] } diff --git a/js/retest/tsconfig.test.json b/js/retest/tsconfig.test.json index a34473ddaa..001932eac5 100644 --- a/js/retest/tsconfig.test.json +++ b/js/retest/tsconfig.test.json @@ -1,8 +1,12 @@ { "extends": "./tsconfig.json", "compilerOptions": { + "allowJs": true, + "ignoreDeprecations": "6.0", + "isolatedModules": true, "module": "commonjs", "moduleResolution": "node", + "rootDir": ".", "types": ["node", "jest"] } } diff --git a/js/torun/jest.config.js b/js/torun/jest.config.js index 0930eec0f6..697e0b37a6 100644 --- a/js/torun/jest.config.js +++ b/js/torun/jest.config.js @@ -15,15 +15,9 @@ module.exports = { testEnvironment: 'node', testMatch: ['**/*.test.ts'], transform: { - '^.+\\.(ts|tsx)$': ['ts-jest', { + '^.+\\.[tj]sx?$': ['ts-jest', { tsconfig: 'tsconfig.test.json', }], - '^.+\\.(js|jsx)$': ['ts-jest', { - tsconfig: { - allowJs: true, - module: 'commonjs', - }, - }], }, moduleNameMapper: { '^@actions/core$': '/node_modules/@actions/core/lib/core.js', diff --git a/js/torun/package-lock.json b/js/torun/package-lock.json index 808969eefe..453a8e8a4c 100644 --- a/js/torun/package-lock.json +++ b/js/torun/package-lock.json @@ -28,7 +28,7 @@ "nock": "^14.0.0", "prettier": "^3.2.5", "ts-jest": "^29.0.0", - "typescript": "^5.4.2", + "typescript": "^6.0.0", "typescript-eslint": "^8.0.0" } }, @@ -5345,9 +5345,9 @@ } }, "node_modules/typescript": { - "version": "5.9.3", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.9.3.tgz", - "integrity": "sha512-jl1vZzPDinLr9eUt3J/t7V6FgNEw9QjvBPdysz9KfQDD41fQrC2Y4vKQdiaUpFT4bXlb1RHhLpp8wtm6M5TgSw==", + "version": "6.0.3", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-6.0.3.tgz", + "integrity": "sha512-y2TvuxSZPDyQakkFRPZHKFm+KKVqIisdg9/CZwm9ftvKXLP8NRWj38/ODjNbr43SsoXqNuAisEf1GdCxqWcdBw==", "dev": true, "license": "Apache-2.0", "bin": { diff --git a/js/torun/package.json b/js/torun/package.json index 9610109491..b5b00e6fe8 100644 --- a/js/torun/package.json +++ b/js/torun/package.json @@ -40,7 +40,7 @@ "nock": "^14.0.0", "prettier": "^3.2.5", "ts-jest": "^29.0.0", - "typescript": "^5.4.2", + "typescript": "^6.0.0", "typescript-eslint": "^8.0.0" }, "dependencies": { diff --git a/js/torun/tsconfig.json b/js/torun/tsconfig.json index 2a78bf239c..6f716ce497 100644 --- a/js/torun/tsconfig.json +++ b/js/torun/tsconfig.json @@ -13,8 +13,9 @@ "noImplicitAny": true, "removeComments": false, "preserveConstEnums": true, - "resolveJsonModule": true + "resolveJsonModule": true, + "types": ["node"] }, "include": ["**/*.ts"], - "exclude": ["node_modules"] + "exclude": ["node_modules", "**/__tests__/**", "**/*.test.ts"] } diff --git a/js/torun/tsconfig.test.json b/js/torun/tsconfig.test.json index a34473ddaa..001932eac5 100644 --- a/js/torun/tsconfig.test.json +++ b/js/torun/tsconfig.test.json @@ -1,8 +1,12 @@ { "extends": "./tsconfig.json", "compilerOptions": { + "allowJs": true, + "ignoreDeprecations": "6.0", + "isolatedModules": true, "module": "commonjs", "moduleResolution": "node", + "rootDir": ".", "types": ["node", "jest"] } } diff --git a/js/utils/package-lock.json b/js/utils/package-lock.json index 2d708245ff..ae1b2d4714 100644 --- a/js/utils/package-lock.json +++ b/js/utils/package-lock.json @@ -9,13 +9,13 @@ "version": "0.0.0", "license": "Apache-2.0", "devDependencies": { - "typescript": "^5.4.2" + "typescript": "^6.0.0" } }, "node_modules/typescript": { - "version": "5.9.3", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.9.3.tgz", - "integrity": "sha512-jl1vZzPDinLr9eUt3J/t7V6FgNEw9QjvBPdysz9KfQDD41fQrC2Y4vKQdiaUpFT4bXlb1RHhLpp8wtm6M5TgSw==", + "version": "6.0.3", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-6.0.3.tgz", + "integrity": "sha512-y2TvuxSZPDyQakkFRPZHKFm+KKVqIisdg9/CZwm9ftvKXLP8NRWj38/ODjNbr43SsoXqNuAisEf1GdCxqWcdBw==", "dev": true, "license": "Apache-2.0", "bin": { diff --git a/js/utils/package.json b/js/utils/package.json index 6f4b20205e..f248babc9a 100644 --- a/js/utils/package.json +++ b/js/utils/package.json @@ -16,6 +16,6 @@ "build": "tsc -b" }, "devDependencies": { - "typescript": "^5.4.2" + "typescript": "^6.0.0" } } diff --git a/js/utils/tsconfig.json b/js/utils/tsconfig.json index eac69f9e3a..f13f1de3da 100644 --- a/js/utils/tsconfig.json +++ b/js/utils/tsconfig.json @@ -1,5 +1,6 @@ { "compilerOptions": { + "ignoreDeprecations": "6.0", "composite": true, "declaration": true, "module": "commonjs",