|
1 | 1 | { |
2 | 2 | "name": "@electron/get", |
3 | 3 | "version": "0.0.0-development", |
| 4 | + "type": "module", |
| 5 | + "exports": "./dist/index.js", |
4 | 6 | "description": "Utility for downloading artifacts from different versions of Electron", |
5 | | - "main": "dist/cjs/index.js", |
6 | | - "module": "dist/esm/index.js", |
7 | 7 | "repository": "https://github.com/electron/get", |
8 | 8 | "author": "Samuel Attard", |
9 | 9 | "license": "MIT", |
10 | 10 | "publishConfig": { |
11 | 11 | "provenance": true |
12 | 12 | }, |
13 | 13 | "scripts": { |
14 | | - "build": "tsc && tsc -p tsconfig.esm.json", |
| 14 | + "build": "tsc", |
15 | 15 | "build:docs": "npx typedoc", |
16 | 16 | "eslint": "eslint --ext .ts src test", |
17 | | - "jest": "jest --coverage", |
18 | 17 | "lint": "npm run prettier && npm run eslint", |
| 18 | + "prepare": "husky", |
19 | 19 | "prettier": "prettier --check \"src/**/*.ts\" \"test/**/*.ts\"", |
20 | 20 | "prettier:write": "prettier --write \"src/**/*.ts\" \"test/**/*.ts\"", |
21 | 21 | "prepublishOnly": "npm run build", |
22 | | - "test": "npm run lint && npm run jest", |
23 | | - "test:nonetwork": "npm run lint && npm run jest -- --testPathIgnorePatterns network.spec" |
| 22 | + "test": "vitest run --coverage", |
| 23 | + "test:nonetwork": "npm run lint && vitest run --coverage --testPathIgnorePatterns network.spec" |
24 | 24 | }, |
25 | 25 | "files": [ |
26 | 26 | "dist/", |
27 | 27 | "README.md" |
28 | 28 | ], |
29 | 29 | "engines": { |
30 | | - "node": ">=14" |
| 30 | + "node": ">=22.12.0" |
31 | 31 | }, |
32 | 32 | "dependencies": { |
33 | 33 | "debug": "^4.1.1", |
34 | | - "env-paths": "^2.2.0", |
35 | | - "fs-extra": "^8.1.0", |
36 | | - "got": "^11.8.5", |
| 34 | + "env-paths": "^3.0.0", |
| 35 | + "got": "^14.4.5", |
| 36 | + "graceful-fs": "^4.2.11", |
37 | 37 | "progress": "^2.0.3", |
38 | | - "semver": "^6.2.0", |
| 38 | + "semver": "^7.6.3", |
39 | 39 | "sumchecker": "^3.0.1" |
40 | 40 | }, |
41 | 41 | "devDependencies": { |
| 42 | + "@tsconfig/node22": "^22.0.0", |
42 | 43 | "@types/debug": "^4.1.4", |
43 | | - "@types/fs-extra": "^8.0.0", |
44 | | - "@types/jest": "^29.0.0", |
45 | | - "@types/node": "^12.20.55", |
| 44 | + "@types/graceful-fs": "^4.1.9", |
| 45 | + "@types/node": "~22.10.5", |
46 | 46 | "@types/progress": "^2.0.3", |
47 | | - "@types/semver": "^6.2.0", |
48 | | - "@typescript-eslint/eslint-plugin": "^2.34.0", |
49 | | - "@typescript-eslint/parser": "^2.34.0", |
50 | | - "eslint": "^6.8.0", |
| 47 | + "@types/semver": "^7.5.8", |
| 48 | + "@typescript-eslint/eslint-plugin": "^8.19.1", |
| 49 | + "@typescript-eslint/parser": "^8.0.0", |
| 50 | + "@vitest/coverage-v8": "3.0.5", |
| 51 | + "esbuild-plugin-file-path-extensions": "^2.1.4", |
| 52 | + "eslint": "^8.57.0", |
51 | 53 | "eslint-config-prettier": "^6.15.0", |
52 | | - "eslint-plugin-import": "^2.22.1", |
53 | | - "eslint-plugin-jest": "< 24.0.0", |
54 | | - "husky": "^2.3.0", |
55 | | - "jest": "^29.3.1", |
56 | | - "lint-staged": "^13.0.4", |
| 54 | + "eslint-plugin-import": "^2.31.0", |
| 55 | + "husky": "^9.1.7", |
| 56 | + "lint-staged": "^15.4.1", |
57 | 57 | "prettier": "^3.4.2", |
58 | | - "ts-jest": "^29.0.0", |
59 | | - "typedoc": "~0.24.8", |
60 | | - "typescript": "^4.9.3" |
61 | | - }, |
62 | | - "eslintConfig": { |
63 | | - "parser": "@typescript-eslint/parser", |
64 | | - "extends": [ |
65 | | - "eslint:recommended", |
66 | | - "plugin:@typescript-eslint/eslint-recommended", |
67 | | - "plugin:@typescript-eslint/recommended", |
68 | | - "plugin:jest/recommended", |
69 | | - "plugin:import/errors", |
70 | | - "plugin:import/warnings", |
71 | | - "plugin:import/typescript", |
72 | | - "prettier", |
73 | | - "prettier/@typescript-eslint" |
74 | | - ] |
| 58 | + "typedoc": "~0.25.13", |
| 59 | + "typescript": "~5.4.5", |
| 60 | + "vitest": "^3.0.5" |
75 | 61 | }, |
76 | 62 | "husky": { |
77 | 63 | "hooks": { |
|
94 | 80 | ], |
95 | 81 | "optionalDependencies": { |
96 | 82 | "global-agent": "^3.0.0" |
97 | | - }, |
98 | | - "resolutions": { |
99 | | - "eslint/inquirer": "< 7.3.0", |
100 | | - "**/@typescript-eslint/typescript-estree/semver": "^6.3.0" |
101 | 83 | } |
102 | 84 | } |
0 commit comments