From 9839d94df1816b1cd4c7e81bee16a0e99181d646 Mon Sep 17 00:00:00 2001 From: CrazyMax <1951866+crazy-max@users.noreply.github.com> Date: Mon, 2 Mar 2026 22:22:15 +0100 Subject: [PATCH] switch to ESM and update config/test wiring --- .prettierrc.json | 3 +- eslint.config.js | 58 --------- eslint.config.mjs | 52 ++++++++ package.json | 18 ++- src/context.ts | 2 +- src/main.ts | 5 +- tests/context.test.ts | 32 ++--- tests/installer.test.ts | 6 +- tsconfig.json | 12 +- yarn.lock | 263 +++++++++++++--------------------------- 10 files changed, 163 insertions(+), 288 deletions(-) delete mode 100644 eslint.config.js create mode 100644 eslint.config.mjs diff --git a/.prettierrc.json b/.prettierrc.json index 1339e9b..f3a86ce 100644 --- a/.prettierrc.json +++ b/.prettierrc.json @@ -6,6 +6,5 @@ "singleQuote": true, "trailingComma": "none", "bracketSpacing": false, - "arrowParens": "avoid", - "parser": "typescript" + "arrowParens": "avoid" } diff --git a/eslint.config.js b/eslint.config.js deleted file mode 100644 index f1690e7..0000000 --- a/eslint.config.js +++ /dev/null @@ -1,58 +0,0 @@ -/* eslint-disable @typescript-eslint/no-require-imports */ -const {defineConfig, globalIgnores} = require('eslint/config'); -const {fixupConfigRules, fixupPluginRules} = require('@eslint/compat'); -const typescriptEslint = require('@typescript-eslint/eslint-plugin'); -const vitestPlugin = require('@vitest/eslint-plugin'); -const prettier = require('eslint-plugin-prettier'); -const globals = require('globals'); -const tsParser = require('@typescript-eslint/parser'); -const js = require('@eslint/js'); -const {FlatCompat} = require('@eslint/eslintrc'); - -// __dirname and __filename exist natively in CommonJS -const compat = new FlatCompat({ - baseDirectory: __dirname, - recommendedConfig: js.configs.recommended, - allConfig: js.configs.all -}); - -module.exports = defineConfig([ - globalIgnores(['dist/**/*', 'coverage/**/*', 'node_modules/**/*']), - { - // prettier-ignore - extends: fixupConfigRules( - compat.extends( - 'eslint:recommended', - 'plugin:@typescript-eslint/eslint-recommended', - 'plugin:@typescript-eslint/recommended', - 'plugin:@vitest/legacy-recommended', - 'plugin:prettier/recommended' - ) - ), - - plugins: { - '@typescript-eslint': fixupPluginRules(typescriptEslint), - '@vitest': fixupPluginRules(vitestPlugin), - prettier: fixupPluginRules(prettier) - }, - - languageOptions: { - globals: { - ...globals.node, - ...vitestPlugin.environments.env.globals - }, - parser: tsParser, - ecmaVersion: 'latest', - sourceType: 'module' - }, - - rules: { - '@typescript-eslint/no-require-imports': [ - 'error', - { - allowAsImport: true - } - ] - } - } -]); diff --git a/eslint.config.mjs b/eslint.config.mjs new file mode 100644 index 0000000..0df15e2 --- /dev/null +++ b/eslint.config.mjs @@ -0,0 +1,52 @@ +import {defineConfig} from 'eslint/config'; +import js from '@eslint/js'; +import tseslint from '@typescript-eslint/eslint-plugin'; +import vitest from '@vitest/eslint-plugin'; +import globals from 'globals'; +import eslintConfigPrettier from 'eslint-config-prettier/flat'; +import eslintPluginPrettier from 'eslint-plugin-prettier'; + +export default defineConfig([ + { + ignores: ['.yarn/**/*', 'coverage/**/*', 'dist/**/*'] + }, + js.configs.recommended, + ...tseslint.configs['flat/recommended'], + eslintConfigPrettier, + { + languageOptions: { + globals: { + ...globals.node + } + } + }, + { + files: ['tests/**'], + ...vitest.configs.recommended, + languageOptions: { + globals: { + ...globals.node, + ...vitest.environments.env.globals + } + }, + rules: { + ...vitest.configs.recommended.rules, + 'vitest/no-conditional-expect': 'error', + 'vitest/no-disabled-tests': 0 + } + }, + { + plugins: { + prettier: eslintPluginPrettier + }, + rules: { + 'prettier/prettier': 'error', + '@typescript-eslint/no-require-imports': [ + 'error', + { + allowAsImport: true + } + ] + } + } +]); diff --git a/package.json b/package.json index 3a5615f..64586ae 100644 --- a/package.json +++ b/package.json @@ -1,15 +1,12 @@ { "name": "upx-github-action", "description": "GitHub Action for UPX, the Ultimate Packer for eXecutables", - "main": "lib/main.js", + "type": "module", + "main": "src/main.ts", "scripts": { "build": "ncc build src/main.ts --source-map --minify --license licenses.txt", - "lint": "yarn run prettier && yarn run eslint", - "format": "yarn run prettier:fix && yarn run eslint:fix", - "eslint": "eslint --max-warnings=0 .", - "eslint:fix": "eslint --fix .", - "prettier": "prettier --check \"./**/*.ts\"", - "prettier:fix": "prettier --write \"./**/*.ts\"", + "lint": "eslint --max-warnings=0 .", + "format": "eslint --fix .", "test": "vitest run", "all": "yarn run build && yarn run format && yarn test" }, @@ -28,11 +25,10 @@ "@actions/core": "^1.11.1", "@actions/exec": "^1.1.1", "@actions/http-client": "^2.2.3", - "@actions/tool-cache": "^2.0.2" + "@actions/tool-cache": "^2.0.2", + "glob": "^11.1.0" }, "devDependencies": { - "@eslint/compat": "^2.0.0", - "@eslint/eslintrc": "^3.3.3", "@eslint/js": "^9.39.2", "@types/node": "^20.19.27", "@typescript-eslint/eslint-plugin": "^8.50.0", @@ -43,8 +39,8 @@ "eslint": "^9.39.2", "eslint-config-prettier": "^10.1.8", "eslint-plugin-prettier": "^5.5.4", + "globals": "^17.3.0", "prettier": "^3.7.4", - "ts-node": "^10.9.2", "typescript": "^5.9.3", "vitest": "^4.0.18" } diff --git a/src/context.ts b/src/context.ts index 07f8295..ed6be31 100644 --- a/src/context.ts +++ b/src/context.ts @@ -1,5 +1,5 @@ -import * as glob from 'glob'; import {lstatSync} from 'fs'; +import * as glob from 'glob'; import * as core from '@actions/core'; export interface Inputs { diff --git a/src/main.ts b/src/main.ts index 69051f8..f0462a7 100644 --- a/src/main.ts +++ b/src/main.ts @@ -1,10 +1,11 @@ import * as os from 'os'; import * as path from 'path'; -import * as context from './context'; -import * as installer from './installer'; import * as core from '@actions/core'; import * as exec from '@actions/exec'; +import * as context from './context.js'; +import * as installer from './installer.js'; + async function run(): Promise { try { if (os.platform() == 'darwin') { diff --git a/tests/context.test.ts b/tests/context.test.ts index 7335ee3..6ff6a6c 100644 --- a/tests/context.test.ts +++ b/tests/context.test.ts @@ -2,60 +2,52 @@ import {describe, expect, it} from 'vitest'; import * as path from 'path'; import * as core from '@actions/core'; -import * as context from '../src/context'; +import * as context from '../src/context.js'; describe('getInputList', () => { it('handles single line correctly', async () => { - await setInput('foo', 'bar'); - const res = await context.getInputList(core.getInput('foo')); + setInput('foo', 'bar'); + const res = context.getInputList(core.getInput('foo')); expect(res).toEqual(['bar']); }); - it('handles multiple lines correctly', async () => { setInput('foo', 'bar\nbaz'); - const res = await context.getInputList(core.getInput('foo')); + const res = context.getInputList(core.getInput('foo')); expect(res).toEqual(['bar', 'baz']); }); - it('remove empty lines correctly', async () => { setInput('foo', 'bar\n\nbaz'); - const res = await context.getInputList(core.getInput('foo')); + const res = context.getInputList(core.getInput('foo')); expect(res).toEqual(['bar', 'baz']); }); - it('handles comma correctly', async () => { setInput('foo', 'bar,baz'); - const res = await context.getInputList(core.getInput('foo')); + const res = context.getInputList(core.getInput('foo')); expect(res).toEqual(['bar', 'baz']); }); - it('remove empty result correctly', async () => { setInput('foo', 'bar,baz,'); - const res = await context.getInputList(core.getInput('foo')); + const res = context.getInputList(core.getInput('foo')); expect(res).toEqual(['bar', 'baz']); }); - it('handles different new lines correctly', async () => { setInput('foo', 'bar\r\nbaz'); - const res = await context.getInputList(core.getInput('foo')); + const res = context.getInputList(core.getInput('foo')); expect(res).toEqual(['bar', 'baz']); }); - it('handles different new lines and comma correctly', async () => { setInput('foo', 'bar\r\nbaz,bat'); - const res = await context.getInputList(core.getInput('foo')); + const res = context.getInputList(core.getInput('foo')); expect(res).toEqual(['bar', 'baz', 'bat']); }); - it('handles multiple lines and ignoring comma correctly', async () => { setInput('files', './bin/binary.exe\n./bin/binary2.exe'); - const res = await context.getInputList(core.getInput('files'), true); + const res = context.getInputList(core.getInput('files'), true); expect(res).toEqual(['./bin/binary.exe', './bin/binary2.exe']); }); - it('handles different new lines and ignoring comma correctly', async () => { setInput('driver-opts', './bin/binary.exe\r\n./bin/binary2.exe'); - const res = await context.getInputList(core.getInput('files'), true); + const res = context.getInputList(core.getInput('files'), true); expect(res).toEqual(['./bin/binary.exe', './bin/binary2.exe']); }); }); @@ -64,11 +56,9 @@ describe('asyncForEach', () => { it('executes async tasks sequentially', async () => { const testValues = [1, 2, 3, 4, 5]; const results: number[] = []; - await context.asyncForEach(testValues, async value => { results.push(value); }); - expect(results).toEqual(testValues); }); }); diff --git a/tests/installer.test.ts b/tests/installer.test.ts index d6e5038..e3cc910 100644 --- a/tests/installer.test.ts +++ b/tests/installer.test.ts @@ -1,7 +1,7 @@ import {describe, expect, it} from 'vitest'; import * as fs from 'fs'; -import * as installer from '../src/installer'; +import * as installer from '../src/installer.js'; describe('getRelease', () => { it('returns latest UPX GitHub release', async () => { @@ -18,8 +18,8 @@ describe('getRelease', () => { expect(release?.html_url).toEqual('https://github.com/upx/upx/releases/tag/v3.95'); }); - it('unknown release', async () => { - await expect(installer.getRelease('foo')).rejects.toThrow( + it('unknown release', () => { + return expect(installer.getRelease('foo')).rejects.toThrow( new Error( 'Cannot find UPX release foo in https://raw.githubusercontent.com/crazy-max/ghaction-upx/master/.github/upx-releases.json' ) diff --git a/tsconfig.json b/tsconfig.json index c6f30f2..f5baadc 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,19 +1,15 @@ { "compilerOptions": { + "module": "nodenext", + "moduleResolution": "nodenext", "esModuleInterop": true, - "target": "es6", - "module": "commonjs", "newLine": "lf", "outDir": "./lib", "rootDir": "./src", "forceConsistentCasingInFileNames": true, "noImplicitAny": false, "resolveJsonModule": true, - "useUnknownInCatchVariables": false, + "useUnknownInCatchVariables": false }, - "exclude": [ - "node_modules", - "**/*.test.ts", - "vitest.config.ts" - ] + "include": ["src/**/*.ts"] } diff --git a/yarn.lock b/yarn.lock index aea6abf..f1aecd3 100644 --- a/yarn.lock +++ b/yarn.lock @@ -112,15 +112,6 @@ __metadata: languageName: node linkType: hard -"@cspotcode/source-map-support@npm:^0.8.0": - version: 0.8.1 - resolution: "@cspotcode/source-map-support@npm:0.8.1" - dependencies: - "@jridgewell/trace-mapping": "npm:0.3.9" - checksum: 10/b6e38a1712fab242c86a241c229cf562195aad985d0564bd352ac404be583029e89e93028ffd2c251d2c407ecac5fb0cbdca94a2d5c10f29ac806ede0508b3ff - languageName: node - linkType: hard - "@esbuild/aix-ppc64@npm:0.27.3": version: 0.27.3 resolution: "@esbuild/aix-ppc64@npm:0.27.3" @@ -321,20 +312,6 @@ __metadata: languageName: node linkType: hard -"@eslint/compat@npm:^2.0.0": - version: 2.0.2 - resolution: "@eslint/compat@npm:2.0.2" - dependencies: - "@eslint/core": "npm:^1.1.0" - peerDependencies: - eslint: ^8.40 || 9 || 10 - peerDependenciesMeta: - eslint: - optional: true - checksum: 10/027525ddafc0363a82df3ebc82b44214bb32a3e7bec8f4ad9ddb2fc43fa64f1c031f8f39a9164d14ed4a5f431c0abbf4c0b38021e88a5dd36cb19cfd92376acd - languageName: node - linkType: hard - "@eslint/config-array@npm:^0.21.1": version: 0.21.1 resolution: "@eslint/config-array@npm:0.21.1" @@ -364,16 +341,7 @@ __metadata: languageName: node linkType: hard -"@eslint/core@npm:^1.1.0": - version: 1.1.0 - resolution: "@eslint/core@npm:1.1.0" - dependencies: - "@types/json-schema": "npm:^7.0.15" - checksum: 10/f62724beacbb5fdd3560816a4edbbf832485cbec9516b76037fdf2cc2d75011e546e305a22feaa6bed4c1a26d069dc953979aa3c8c28eccf0a746a5ac53483b0 - languageName: node - linkType: hard - -"@eslint/eslintrc@npm:^3.3.1, @eslint/eslintrc@npm:^3.3.3": +"@eslint/eslintrc@npm:^3.3.1": version: 3.3.4 resolution: "@eslint/eslintrc@npm:3.3.4" dependencies: @@ -466,10 +434,10 @@ __metadata: languageName: node linkType: hard -"@jridgewell/resolve-uri@npm:^3.0.3": - version: 3.0.6 - resolution: "@jridgewell/resolve-uri@npm:3.0.6" - checksum: 10/dd3b09fc0fea87e03b879325922f90f289ad4f1e2742f6c3f2018bc074f3c8a106e67f6a60cadbc6995f5883477e423d55bfcc9e2467a01a6beab731dd78ff6f +"@isaacs/cliui@npm:^9.0.0": + version: 9.0.0 + resolution: "@isaacs/cliui@npm:9.0.0" + checksum: 10/8ea3d1009fd29071419209bb91ede20cf27e6e2a1630c5e0702d8b3f47f9e1a3f1c5a587fa2cb96d22d18219790327df49db1bcced573346bbaf4577cf46b643 languageName: node linkType: hard @@ -480,13 +448,6 @@ __metadata: languageName: node linkType: hard -"@jridgewell/sourcemap-codec@npm:^1.4.10": - version: 1.4.11 - resolution: "@jridgewell/sourcemap-codec@npm:1.4.11" - checksum: 10/591ca7f7884a51643e713b1b623c6c7d751bdc78d61b6cda1dcf7de1287e7f0530514c3f2c7d443273ddc8687637a95cd19f5d8986b32e2349d0f7310623df40 - languageName: node - linkType: hard - "@jridgewell/sourcemap-codec@npm:^1.4.14": version: 1.4.15 resolution: "@jridgewell/sourcemap-codec@npm:1.4.15" @@ -501,16 +462,6 @@ __metadata: languageName: node linkType: hard -"@jridgewell/trace-mapping@npm:0.3.9": - version: 0.3.9 - resolution: "@jridgewell/trace-mapping@npm:0.3.9" - dependencies: - "@jridgewell/resolve-uri": "npm:^3.0.3" - "@jridgewell/sourcemap-codec": "npm:^1.4.10" - checksum: 10/83deafb8e7a5ca98993c2c6eeaa93c270f6f647a4c0dc00deb38c9cf9b2d3b7bf15e8839540155247ef034a052c0ec4466f980bf0c9e2ab63b97d16c0cedd3ff - languageName: node - linkType: hard - "@jridgewell/trace-mapping@npm:^0.3.31": version: 0.3.31 resolution: "@jridgewell/trace-mapping@npm:0.3.31" @@ -733,34 +684,6 @@ __metadata: languageName: node linkType: hard -"@tsconfig/node10@npm:^1.0.7": - version: 1.0.8 - resolution: "@tsconfig/node10@npm:1.0.8" - checksum: 10/b8d5fffbc6b17ef64ef74f7fdbccee02a809a063ade785c3648dae59406bc207f70ea2c4296f92749b33019fa36a5ae716e42e49cc7f1bbf0fd147be0d6b970a - languageName: node - linkType: hard - -"@tsconfig/node12@npm:^1.0.7": - version: 1.0.9 - resolution: "@tsconfig/node12@npm:1.0.9" - checksum: 10/a01b2400ab3582b86b589c6d31dcd0c0656f333adecde85d6d7d4086adb059808b82692380bb169546d189bf771ae21d02544a75b57bd6da4a5dd95f8567bec9 - languageName: node - linkType: hard - -"@tsconfig/node14@npm:^1.0.0": - version: 1.0.1 - resolution: "@tsconfig/node14@npm:1.0.1" - checksum: 10/976345e896c0f059867f94f8d0f6ddb8b1844fb62bf36b727de8a9a68f024857e5db97ed51d3325e23e0616a5e48c034ff51a8d595b3fe7e955f3587540489be - languageName: node - linkType: hard - -"@tsconfig/node16@npm:^1.0.2": - version: 1.0.2 - resolution: "@tsconfig/node16@npm:1.0.2" - checksum: 10/ca94d3639714672bbfd55f03521d3f56bb6a25479bd425da81faf21f13e1e9d15f40f97377dedbbf477a5841c5b0c8f4cd1b391f33553d750b9202c54c2c07aa - languageName: node - linkType: hard - "@types/chai@npm:^5.2.2": version: 5.2.3 resolution: "@types/chai@npm:5.2.3" @@ -1093,13 +1016,6 @@ __metadata: languageName: node linkType: hard -"acorn-walk@npm:^8.1.1": - version: 8.2.0 - resolution: "acorn-walk@npm:8.2.0" - checksum: 10/e69f7234f2adfeb16db3671429a7c80894105bd7534cb2032acf01bb26e6a847952d11a062d071420b43f8d82e33d2e57f26fe87d9cce0853e8143d8910ff1de - languageName: node - linkType: hard - "acorn@npm:^8.15.0": version: 8.16.0 resolution: "acorn@npm:8.16.0" @@ -1109,15 +1025,6 @@ __metadata: languageName: node linkType: hard -"acorn@npm:^8.4.1": - version: 8.7.0 - resolution: "acorn@npm:8.7.0" - bin: - acorn: bin/acorn - checksum: 10/0c437f0beffd4309a8ee327cecdc555e50a3d8e30534d079b1eba81ea6bd64c15119e7974a8f077eac4bd1c0dd122196ef08d3ee60b2efd7fee00e18e9a46b7d - languageName: node - linkType: hard - "agent-base@npm:6, agent-base@npm:^6.0.2": version: 6.0.2 resolution: "agent-base@npm:6.0.2" @@ -1218,13 +1125,6 @@ __metadata: languageName: node linkType: hard -"arg@npm:^4.1.0": - version: 4.1.3 - resolution: "arg@npm:4.1.3" - checksum: 10/969b491082f20cad166649fa4d2073ea9e974a4e5ac36247ca23d2e5a8b3cb12d60e9ff70a8acfe26d76566c71fd351ee5e6a9a6595157eb36f92b1fd64e1599 - languageName: node - linkType: hard - "argparse@npm:^2.0.1": version: 2.0.1 resolution: "argparse@npm:2.0.1" @@ -1389,13 +1289,6 @@ __metadata: languageName: node linkType: hard -"create-require@npm:^1.1.0": - version: 1.1.1 - resolution: "create-require@npm:1.1.1" - checksum: 10/a9a1503d4390d8b59ad86f4607de7870b39cad43d929813599a23714831e81c520bddf61bcdd1f8e30f05fd3a2b71ae8538e946eb2786dc65c2bbc520f692eff - languageName: node - linkType: hard - "cross-spawn@npm:^7.0.0, cross-spawn@npm:^7.0.6": version: 7.0.6 resolution: "cross-spawn@npm:7.0.6" @@ -1445,13 +1338,6 @@ __metadata: languageName: node linkType: hard -"diff@npm:^4.0.1": - version: 4.0.2 - resolution: "diff@npm:4.0.2" - checksum: 10/ec09ec2101934ca5966355a229d77afcad5911c92e2a77413efda5455636c4cf2ce84057e2d7715227a2eeeda04255b849bd3ae3a4dd22eb22e86e76456df069 - languageName: node - linkType: hard - "eastasianwidth@npm:^0.2.0": version: 0.2.0 resolution: "eastasianwidth@npm:0.2.0" @@ -1862,6 +1748,16 @@ __metadata: languageName: node linkType: hard +"foreground-child@npm:^3.3.1": + version: 3.3.1 + resolution: "foreground-child@npm:3.3.1" + dependencies: + cross-spawn: "npm:^7.0.6" + signal-exit: "npm:^4.0.1" + checksum: 10/427b33f997a98073c0424e5c07169264a62cda806d8d2ded159b5b903fdfc8f0a1457e06b5fc35506497acb3f1e353f025edee796300209ac6231e80edece835 + languageName: node + linkType: hard + "fs-minipass@npm:^2.0.0": version: 2.1.0 resolution: "fs-minipass@npm:2.1.0" @@ -1946,6 +1842,22 @@ __metadata: languageName: node linkType: hard +"glob@npm:^11.1.0": + version: 11.1.0 + resolution: "glob@npm:11.1.0" + dependencies: + foreground-child: "npm:^3.3.1" + jackspeak: "npm:^4.1.1" + minimatch: "npm:^10.1.1" + minipass: "npm:^7.1.2" + package-json-from-dist: "npm:^1.0.0" + path-scurry: "npm:^2.0.0" + bin: + glob: dist/esm/bin.mjs + checksum: 10/da4501819633daff8822c007bb3f93d5c4d2cbc7b15a8e886660f4497dd251a1fb4f53a85fba1e760b31704eff7164aeb2c7a82db10f9f2c362d12c02fe52cf3 + languageName: node + linkType: hard + "glob@npm:^7.1.3, glob@npm:^7.1.4": version: 7.1.6 resolution: "glob@npm:7.1.6" @@ -1967,6 +1879,13 @@ __metadata: languageName: node linkType: hard +"globals@npm:^17.3.0": + version: 17.4.0 + resolution: "globals@npm:17.4.0" + checksum: 10/ffad244617e94efcb3da72b7beefc941167c21316148ce378f322db7af72db06468f370e23224b3c7b17b5173a7c75b134e5e7b0949f2828519054a76892508d + languageName: node + linkType: hard + "graceful-fs@npm:^4.2.6": version: 4.2.11 resolution: "graceful-fs@npm:4.2.11" @@ -2199,6 +2118,15 @@ __metadata: languageName: node linkType: hard +"jackspeak@npm:^4.1.1": + version: 4.2.3 + resolution: "jackspeak@npm:4.2.3" + dependencies: + "@isaacs/cliui": "npm:^9.0.0" + checksum: 10/b88e3fe5fa04d34f0f939a15b7cef4a8589999b7a366ef89a3e0f2c45d2a7666066b67cbf46d57c3a4796a76d27b9d869b23d96a803dd834200d222c2a70de7e + languageName: node + linkType: hard + "js-tokens@npm:^10.0.0": version: 10.0.0 resolution: "js-tokens@npm:10.0.0" @@ -2273,6 +2201,13 @@ __metadata: languageName: node linkType: hard +"lru-cache@npm:^11.0.0": + version: 11.2.6 + resolution: "lru-cache@npm:11.2.6" + checksum: 10/91222bbd59f793a0a0ad57789388f06b34ac9bb1613433c1d1810457d09db5cd3ec8943227ce2e1f5d6a0a15d6f1a9f129cb2c49ae9b6b10e82d4965fddecbef + languageName: node + linkType: hard + "lru-cache@npm:^6.0.0": version: 6.0.0 resolution: "lru-cache@npm:6.0.0" @@ -2334,13 +2269,6 @@ __metadata: languageName: node linkType: hard -"make-error@npm:^1.1.1": - version: 1.3.6 - resolution: "make-error@npm:1.3.6" - checksum: 10/b86e5e0e25f7f777b77fabd8e2cbf15737972869d852a22b7e73c17623928fccb826d8e46b9951501d3f20e51ad74ba8c59ed584f610526a48f8ccf88aaec402 - languageName: node - linkType: hard - "make-fetch-happen@npm:^11.0.3": version: 11.1.1 resolution: "make-fetch-happen@npm:11.1.1" @@ -2364,7 +2292,7 @@ __metadata: languageName: node linkType: hard -"minimatch@npm:^10.2.2": +"minimatch@npm:^10.1.1, minimatch@npm:^10.2.2": version: 10.2.4 resolution: "minimatch@npm:10.2.4" dependencies: @@ -2474,6 +2402,13 @@ __metadata: languageName: node linkType: hard +"minipass@npm:^7.1.2": + version: 7.1.3 + resolution: "minipass@npm:7.1.3" + checksum: 10/175e4d5e20980c3cd316ae82d2c031c42f6c746467d8b1905b51060a0ba4461441a0c25bb67c025fd9617f9a3873e152c7b543c6b5ac83a1846be8ade80dffd6 + languageName: node + linkType: hard + "minizlib@npm:^2.1.1, minizlib@npm:^2.1.2": version: 2.1.2 resolution: "minizlib@npm:2.1.2" @@ -2631,6 +2566,13 @@ __metadata: languageName: node linkType: hard +"package-json-from-dist@npm:^1.0.0": + version: 1.0.1 + resolution: "package-json-from-dist@npm:1.0.1" + checksum: 10/58ee9538f2f762988433da00e26acc788036914d57c71c246bf0be1b60cdbd77dd60b6a3e1a30465f0b248aeb80079e0b34cb6050b1dfa18c06953bb1cbc7602 + languageName: node + linkType: hard + "parent-module@npm:^1.0.0": version: 1.0.1 resolution: "parent-module@npm:1.0.1" @@ -2671,6 +2613,16 @@ __metadata: languageName: node linkType: hard +"path-scurry@npm:^2.0.0": + version: 2.0.2 + resolution: "path-scurry@npm:2.0.2" + dependencies: + lru-cache: "npm:^11.0.0" + minipass: "npm:^7.1.2" + checksum: 10/2b4257422bcb870a4c2d205b3acdbb213a72f5e2250f61c80f79c9d014d010f82bdf8584441612c8e1fa4eb098678f5704a66fa8377d72646bad4be38e57a2c3 + languageName: node + linkType: hard + "pathe@npm:^2.0.3": version: 2.0.3 resolution: "pathe@npm:2.0.3" @@ -3164,44 +3116,6 @@ __metadata: languageName: node linkType: hard -"ts-node@npm:^10.9.2": - version: 10.9.2 - resolution: "ts-node@npm:10.9.2" - dependencies: - "@cspotcode/source-map-support": "npm:^0.8.0" - "@tsconfig/node10": "npm:^1.0.7" - "@tsconfig/node12": "npm:^1.0.7" - "@tsconfig/node14": "npm:^1.0.0" - "@tsconfig/node16": "npm:^1.0.2" - acorn: "npm:^8.4.1" - acorn-walk: "npm:^8.1.1" - arg: "npm:^4.1.0" - create-require: "npm:^1.1.0" - diff: "npm:^4.0.1" - make-error: "npm:^1.1.1" - v8-compile-cache-lib: "npm:^3.0.1" - yn: "npm:3.1.1" - peerDependencies: - "@swc/core": ">=1.2.50" - "@swc/wasm": ">=1.2.50" - "@types/node": "*" - typescript: ">=2.7" - peerDependenciesMeta: - "@swc/core": - optional: true - "@swc/wasm": - optional: true - bin: - ts-node: dist/bin.js - ts-node-cwd: dist/bin-cwd.js - ts-node-esm: dist/bin-esm.js - ts-node-script: dist/bin-script.js - ts-node-transpile-only: dist/bin-transpile.js - ts-script: dist/bin-script-deprecated.js - checksum: 10/a91a15b3c9f76ac462f006fa88b6bfa528130dcfb849dd7ef7f9d640832ab681e235b8a2bc58ecde42f72851cc1d5d4e22c901b0c11aa51001ea1d395074b794 - languageName: node - linkType: hard - "tunnel@npm:^0.0.6": version: 0.0.6 resolution: "tunnel@npm:0.0.6" @@ -3280,8 +3194,6 @@ __metadata: "@actions/exec": "npm:^1.1.1" "@actions/http-client": "npm:^2.2.3" "@actions/tool-cache": "npm:^2.0.2" - "@eslint/compat": "npm:^2.0.0" - "@eslint/eslintrc": "npm:^3.3.3" "@eslint/js": "npm:^9.39.2" "@types/node": "npm:^20.19.27" "@typescript-eslint/eslint-plugin": "npm:^8.50.0" @@ -3292,8 +3204,9 @@ __metadata: eslint: "npm:^9.39.2" eslint-config-prettier: "npm:^10.1.8" eslint-plugin-prettier: "npm:^5.5.4" + glob: "npm:^11.1.0" + globals: "npm:^17.3.0" prettier: "npm:^3.7.4" - ts-node: "npm:^10.9.2" typescript: "npm:^5.9.3" vitest: "npm:^4.0.18" languageName: unknown @@ -3315,13 +3228,6 @@ __metadata: languageName: node linkType: hard -"v8-compile-cache-lib@npm:^3.0.1": - version: 3.0.1 - resolution: "v8-compile-cache-lib@npm:3.0.1" - checksum: 10/88d3423a52b6aaf1836be779cab12f7016d47ad8430dffba6edf766695e6d90ad4adaa3d8eeb512cc05924f3e246c4a4ca51e089dccf4402caa536b5e5be8961 - languageName: node - linkType: hard - "vite@npm:^6.0.0 || ^7.0.0": version: 7.3.1 resolution: "vite@npm:7.3.1" @@ -3504,13 +3410,6 @@ __metadata: languageName: node linkType: hard -"yn@npm:3.1.1": - version: 3.1.1 - resolution: "yn@npm:3.1.1" - checksum: 10/2c487b0e149e746ef48cda9f8bad10fc83693cd69d7f9dcd8be4214e985de33a29c9e24f3c0d6bcf2288427040a8947406ab27f7af67ee9456e6b84854f02dd6 - languageName: node - linkType: hard - "yocto-queue@npm:^0.1.0": version: 0.1.0 resolution: "yocto-queue@npm:0.1.0"