|
18 | 18 | "author": "Andrei Picus",
|
19 | 19 | "license": "MIT",
|
20 | 20 | "homepage": "https://github.com/NiGhTTraX/react-mock-component",
|
21 |
| - "main": "dist/index", |
22 |
| - "types": "dist/index", |
| 21 | + "type": "module", |
| 22 | + "main": "./dist/index.cjs", |
| 23 | + "module": "./dist/index.js", |
| 24 | + "types": "./dist/index.d.ts", |
| 25 | + "exports": { |
| 26 | + "import": { |
| 27 | + "types": "./dist/index.d.ts", |
| 28 | + "import": "./dist/index.js" |
| 29 | + }, |
| 30 | + "require": { |
| 31 | + "types": "./dist/index.d.cts", |
| 32 | + "require": "./dist/index.cjs" |
| 33 | + } |
| 34 | + }, |
23 | 35 | "files": [
|
24 | 36 | "dist"
|
25 | 37 | ],
|
26 | 38 | "scripts": {
|
27 |
| - "build": "pnpm run clean && pnpm run compile", |
28 |
| - "clean": "rm -rf ./dist", |
29 |
| - "compile": "tsc -p tsconfig.build.json", |
| 39 | + "build": "tsup src/index.tsx --format cjs,esm --dts --clean --tsconfig tsconfig.build.json", |
| 40 | + "check-types": "attw --pack .", |
30 | 41 | "prepublishOnly": "pnpm run build",
|
31 | 42 | "release": "standard-version",
|
32 | 43 | "lint": "eslint --quiet .",
|
|
42 | 53 | "react-dom": "^18.0.0 || ^19.0.0"
|
43 | 54 | },
|
44 | 55 | "devDependencies": {
|
| 56 | + "@arethetypeswrong/cli": "~0.17.1", |
45 | 57 | "@eslint/js": "~9.16.0",
|
46 | 58 | "@testing-library/dom": "~10.4.0",
|
47 | 59 | "@testing-library/react": "~16.1.0",
|
|
59 | 71 | "react": "~19.0.0",
|
60 | 72 | "react-dom": "~19.0.0",
|
61 | 73 | "standard-version": "~9.5.0",
|
| 74 | + "tsup": "~8.3.5", |
62 | 75 | "typescript": "~5.7.0",
|
63 | 76 | "typescript-eslint": "~8.17.0",
|
64 | 77 | "vitest": "~2.1.8"
|
|
0 commit comments