|
19 | 19 | "url": "https://github.com/hatsyjs/hatsy/issues" |
20 | 20 | }, |
21 | 21 | "type": "module", |
22 | | - "main": "./dist/hatsy.js", |
23 | | - "types": "./index.d.ts", |
| 22 | + "types": "./dist/hatsy.d.ts", |
| 23 | + "typesVersions": { |
| 24 | + "*": { |
| 25 | + "core": [ |
| 26 | + "./dist/hatsy.core.d.ts" |
| 27 | + ], |
| 28 | + "testing": [ |
| 29 | + "./dist/hatsy.testing.d.ts" |
| 30 | + ] |
| 31 | + } |
| 32 | + }, |
24 | 33 | "exports": { |
25 | 34 | ".": { |
26 | | - "types": "./index.d.ts", |
| 35 | + "types": "./dist/hatsy.d.ts", |
27 | 36 | "default": "./dist/hatsy.js" |
28 | 37 | }, |
29 | 38 | "./core": { |
30 | | - "types": "./core/index.d.ts", |
| 39 | + "types": "./dist/hatsy.core.d.ts", |
31 | 40 | "default": "./dist/hatsy.core.js" |
32 | 41 | }, |
33 | 42 | "./package.json": "./package.json", |
34 | 43 | "./testing": { |
35 | | - "types": "./testing/index.d.ts", |
| 44 | + "types": "./dist/hatsy.testing.d.ts", |
36 | 45 | "default": "./dist/hatsy.testing.js" |
37 | 46 | } |
38 | 47 | }, |
39 | 48 | "dependencies": { |
40 | | - "@frontmeans/httongue": "^2.3.0", |
| 49 | + "@frontmeans/httongue": "^2.4.0", |
41 | 50 | "@hatsy/http-header-value": "^3.7.0", |
42 | 51 | "@proc7ts/logger": "^1.3.2", |
43 | 52 | "@proc7ts/primitives": "^3.0.2" |
|
48 | 57 | "devDependencies": { |
49 | 58 | "@jest/globals": "^29.4.1", |
50 | 59 | "@run-z/eslint-config": "^3.3.1", |
51 | | - "@run-z/rollup-helpers": "^2.1.0", |
| 60 | + "@run-z/prettier-config": "^2.0.0", |
| 61 | + "@run-z/project-config": "^0.15.0", |
| 62 | + "@swc/core": "^1.3.29", |
| 63 | + "@swc/jest": "^0.2.24", |
52 | 64 | "@types/node": "^18.11.18", |
53 | 65 | "@typescript-eslint/eslint-plugin": "^5.49.0", |
54 | 66 | "@typescript-eslint/parser": "^5.49.0", |
|
61 | 73 | "prettier": "^2.8.3", |
62 | 74 | "prettier-eslint-cli": "^7.1.0", |
63 | 75 | "rollup": "^3.11.0", |
64 | | - "rollup-plugin-flat-dts": "^2.0.2", |
65 | | - "rollup-plugin-typescript2": "^0.34.1", |
66 | 76 | "run-z": "^1.11.0", |
67 | | - "shx": "^0.3.4", |
68 | 77 | "ts-jest": "^29.0.5", |
69 | 78 | "tslib": "^2.5.0", |
70 | 79 | "typedoc": "^0.23.24", |
71 | 80 | "typescript": "~4.9.4" |
72 | 81 | }, |
73 | 82 | "scripts": { |
74 | 83 | "all": "run-z build,lint,test", |
75 | | - "build": "run-z +z --then rollup -c", |
| 84 | + "build": "run-z +z --then build-z", |
76 | 85 | "ci:all": "run-z all +test/--ci/--runInBand", |
77 | | - "clean": "run-z +z --then shx rm -rf \"index.d.ts?(.map)\" \"*/index.d.ts?(.map)\" dist target", |
| 86 | + "clean": "run-z +z --then clean-z", |
78 | 87 | "doc": "run-z +z --then typedoc", |
79 | 88 | "doc:publish": "run-z doc --then gh-pages --dist target/typedoc --dotfiles", |
80 | 89 | "format": "run-z +z --then prettier-eslint --write --include-dot-files \"src/**/*.*\" \"*.{js,cjs,json,md}\"", |
81 | 90 | "lint": "run-z +z --then eslint .", |
82 | | - "test": "run-z +z env:NODE_OPTIONS=\"--experimental-vm-modules --no-warnings\" --then jest", |
83 | | - "z": "run-z +cmd:rollup,+cmd:typedoc,+cmd:eslint,+cmd:jest" |
| 91 | + "test": "run-z +z env:NODE_OPTIONS=\"--experimental-vm-modules --no-warnings\" --then test-z", |
| 92 | + "z": "run-z +cmd:build-z,+cmd:typedoc,+cmd:eslint,+cmd:test-z" |
84 | 93 | } |
85 | 94 | } |
0 commit comments