|
1 | 1 | { |
2 | 2 | "name": "minipass", |
3 | | - "version": "7.0.3", |
| 3 | + "version": "7.0.4", |
4 | 4 | "description": "minimal implementation of a PassThrough stream", |
5 | | - "main": "./dist/cjs/index.js", |
6 | | - "module": "./dist/mjs/index.js", |
7 | | - "types": "./dist/cjs/index.js", |
| 5 | + "main": "./dist/commonjs/index.js", |
| 6 | + "types": "./dist/commonjs/index.d.ts", |
| 7 | + "type": "module", |
| 8 | + "tshy": { |
| 9 | + "main": true, |
| 10 | + "exports": { |
| 11 | + "./package.json": "./package.json", |
| 12 | + ".": "./src/index.ts" |
| 13 | + } |
| 14 | + }, |
8 | 15 | "exports": { |
| 16 | + "./package.json": "./package.json", |
9 | 17 | ".": { |
10 | 18 | "import": { |
11 | | - "types": "./dist/mjs/index.d.ts", |
12 | | - "default": "./dist/mjs/index.js" |
| 19 | + "types": "./dist/esm/index.d.ts", |
| 20 | + "default": "./dist/esm/index.js" |
13 | 21 | }, |
14 | 22 | "require": { |
15 | | - "types": "./dist/cjs/index.d.ts", |
16 | | - "default": "./dist/cjs/index.js" |
| 23 | + "types": "./dist/commonjs/index.d.ts", |
| 24 | + "default": "./dist/commonjs/index.js" |
17 | 25 | } |
18 | | - }, |
19 | | - "./package.json": "./package.json" |
| 26 | + } |
20 | 27 | }, |
21 | 28 | "files": [ |
22 | 29 | "dist" |
|
25 | 32 | "preversion": "npm test", |
26 | 33 | "postversion": "npm publish", |
27 | 34 | "prepublishOnly": "git push origin --follow-tags", |
28 | | - "preprepare": "rm -rf dist", |
29 | | - "prepare": "tsc -p tsconfig.json && tsc -p tsconfig-esm.json && bash ./scripts/fixup.sh", |
| 35 | + "prepare": "tshy", |
30 | 36 | "pretest": "npm run prepare", |
31 | 37 | "presnap": "npm run prepare", |
32 | | - "test": "c8 tap", |
33 | | - "snap": "c8 tap", |
| 38 | + "test": "tap", |
| 39 | + "snap": "tap", |
34 | 40 | "format": "prettier --write . --loglevel warn", |
35 | | - "typedoc": "typedoc --tsconfig tsconfig-esm.json ./src/*.ts" |
36 | | - }, |
37 | | - "tap": { |
38 | | - "coverage": false, |
39 | | - "node-arg": [ |
40 | | - "--enable-source-maps", |
41 | | - "--no-warnings", |
42 | | - "--loader", |
43 | | - "ts-node/esm" |
44 | | - ], |
45 | | - "ts": false |
| 41 | + "typedoc": "typedoc --tsconfig .tshy/esm.json ./src/*.ts" |
46 | 42 | }, |
47 | 43 | "prettier": { |
48 | 44 | "semi": false, |
|
56 | 52 | "endOfLine": "lf" |
57 | 53 | }, |
58 | 54 | "devDependencies": { |
| 55 | + "@types/end-of-stream": "^1.4.2", |
59 | 56 | "@types/node": "^20.1.2", |
60 | | - "@types/tap": "^15.0.8", |
61 | | - "c8": "^7.13.0", |
62 | | - "prettier": "^2.6.2", |
63 | | - "tap": "^16.3.0", |
64 | | - "ts-node": "^10.9.1", |
65 | | - "typedoc": "^0.24.8", |
66 | | - "typescript": "^5.1.3", |
67 | 57 | "end-of-stream": "^1.4.0", |
68 | 58 | "node-abort-controller": "^3.1.1", |
| 59 | + "prettier": "^2.6.2", |
69 | 60 | "sync-content": "^1.0.2", |
70 | | - "through2": "^2.0.3" |
| 61 | + "tap": "^18.3.0", |
| 62 | + "through2": "^2.0.3", |
| 63 | + "tshy": "^1.2.2", |
| 64 | + "typedoc": "^0.25.1", |
| 65 | + "typescript": "^5.2.2" |
71 | 66 | }, |
72 | 67 | "repository": "https://github.com/isaacs/minipass", |
73 | 68 | "keywords": [ |
|
78 | 73 | "license": "ISC", |
79 | 74 | "engines": { |
80 | 75 | "node": ">=16 || 14 >=14.17" |
| 76 | + }, |
| 77 | + "tap": { |
| 78 | + "include": [ |
| 79 | + "test/*.ts" |
| 80 | + ] |
81 | 81 | } |
82 | 82 | } |
0 commit comments