|
6 | 6 | "license": "MIT",
|
7 | 7 | "repository": "scttcper/utorrent",
|
8 | 8 | "homepage": "https://utorrent.vercel.app",
|
9 |
| - "main": "dist/index.js", |
10 |
| - "typings": "dist/index.d.ts", |
| 9 | + "type": "module", |
| 10 | + "main": "./dist/src/index.js", |
| 11 | + "typings": "./dist/src/index.d.ts", |
11 | 12 | "files": [
|
12 |
| - "dist" |
| 13 | + "dist/src" |
13 | 14 | ],
|
14 | 15 | "sideEffects": false,
|
15 | 16 | "keywords": [
|
16 | 17 | "utorrent",
|
17 | 18 | "typescript"
|
18 | 19 | ],
|
19 | 20 | "scripts": {
|
20 |
| - "lint": "eslint --ext .js,.ts .", |
21 |
| - "lint:fix": "eslint --fix --ext .js,.ts .", |
| 21 | + "lint": "eslint --ext .ts .", |
| 22 | + "lint:fix": "eslint --fix --ext .ts .", |
22 | 23 | "prepare": "npm run build",
|
23 |
| - "build": "tsc -p tsconfig.build.json", |
| 24 | + "build": "tsc", |
24 | 25 | "build:docs": "typedoc",
|
25 |
| - "test": "jest", |
26 |
| - "test:watch": "npm run test -- --watch", |
27 |
| - "test:ci": "npm run test -- --ci --reporters=default --reporters=jest-junit --coverage", |
28 |
| - "semantic-release": "semantic-release" |
| 26 | + "test": "ava", |
| 27 | + "test:watch": "ava --watch", |
| 28 | + "test:ci": "c8 --reporter=text --reporter=lcov ava" |
29 | 29 | },
|
30 | 30 | "dependencies": {
|
31 |
| - "@ctrl/shared-torrent": "^3.0.5", |
32 |
| - "@ctrl/torrent-file": "^1.3.3", |
33 |
| - "form-data": "^4.0.0", |
34 |
| - "got": "^11.8.2", |
35 |
| - "tough-cookie": "^4.0.0", |
36 |
| - "@ctrl/url-join": "^1.0.4" |
| 31 | + "@ctrl/magnet-link": "^3.1.0", |
| 32 | + "@ctrl/shared-torrent": "^4.1.0", |
| 33 | + "@ctrl/torrent-file": "^2.0.1", |
| 34 | + "@ctrl/url-join": "^2.0.0", |
| 35 | + "formdata-node": "^4.3.2", |
| 36 | + "got": "^12.0.1", |
| 37 | + "tough-cookie": "^4.0.0" |
37 | 38 | },
|
38 | 39 | "devDependencies": {
|
39 |
| - "@babel/plugin-transform-modules-commonjs": "7.16.0", |
40 |
| - "@babel/preset-typescript": "7.16.0", |
41 |
| - "@ctrl/eslint-config": "3.1.1", |
42 |
| - "@jest/globals": "27.3.1", |
43 |
| - "@types/node": "16.11.6", |
| 40 | + "@ctrl/eslint-config": "3.3.1", |
| 41 | + "@types/node": "17.0.21", |
44 | 42 | "@types/tough-cookie": "4.0.1",
|
45 |
| - "jest": "27.3.1", |
46 |
| - "jest-junit": "13.0.0", |
47 |
| - "typedoc": "0.22.8", |
48 |
| - "typescript": "4.4.4" |
| 43 | + "@sindresorhus/tsconfig": "2.0.0", |
| 44 | + "ava": "4.0.1", |
| 45 | + "c8": "7.11.0", |
| 46 | + "ts-node": "10.5.0", |
| 47 | + "typedoc": "0.22.12", |
| 48 | + "typescript": "4.5.5" |
49 | 49 | },
|
50 |
| - "jest": { |
51 |
| - "testEnvironment": "node", |
52 |
| - "coverageProvider": "v8" |
53 |
| - }, |
54 |
| - "babel": { |
55 |
| - "presets": [ |
56 |
| - "@babel/preset-typescript" |
| 50 | + "ava": { |
| 51 | + "files": [ |
| 52 | + "test/**/*.spec.ts" |
57 | 53 | ],
|
58 |
| - "plugins": [ |
59 |
| - "@babel/plugin-transform-modules-commonjs" |
| 54 | + "extensions": { |
| 55 | + "ts": "module" |
| 56 | + }, |
| 57 | + "nodeArguments": [ |
| 58 | + "--loader=ts-node/esm" |
60 | 59 | ]
|
61 | 60 | },
|
62 | 61 | "publishConfig": {
|
|
66 | 65 | "branch": "master"
|
67 | 66 | },
|
68 | 67 | "engines": {
|
69 |
| - "node": ">=10.19.0" |
| 68 | + "node": ">=14.16" |
70 | 69 | }
|
71 | 70 | }
|
0 commit comments