|
1 | 1 | { |
2 | 2 | "name": "@dx-kit/react-conditional-match", |
3 | | - "version": "1.1.0", |
| 3 | + "version": "2.0.0", |
4 | 4 | "description": "A flexible and reusable React component for conditionally rendering child elements. The component supports options for handling multiple matching children and custom fallbacks, and is lightweight and easy to use. This component can help simplify complex rendering logic in your React application and remove the need for ternary statements and if else blocks.", |
5 | | - "main": "./dist/cjs/index.js", |
6 | | - "module": "./dist/esm/index.js", |
7 | | - "types": "./dist/esm/index.d.ts", |
| 5 | + "main": "./dist/index.esm.js", |
| 6 | + "module": "./dist/index.cjs.js", |
| 7 | + "types": "./dist/index.d.ts", |
8 | 8 | "publishConfig": { |
9 | 9 | "access": "public" |
10 | 10 | }, |
11 | 11 | "scripts": { |
12 | | - "build": "pnpm build:esm && pnpm build:cjs", |
13 | | - "build:esm": "tsc", |
14 | | - "build:cjs": "tsc --module commonjs --outDir dist/cjs", |
| 12 | + "build": "pnpm clean && node build.js && tsc --emitDeclarationOnly --outDir dist", |
| 13 | + "clean": "rm -rf dist", |
15 | 14 | "lint": "eslint \"{**/*,*}.{js,ts,jsx,tsx}\"", |
16 | 15 | "lint-fix": "eslint --fix \"{**/*,*}.{js,ts,jsx,tsx}\"", |
17 | 16 | "test": "vitest", |
|
51 | 50 | "@testing-library/react": "^14.0.0", |
52 | 51 | "@testing-library/user-event": "^14.4.3", |
53 | 52 | "@types/jest": "^29.4.0", |
| 53 | + "@types/node": "^18.14.2", |
54 | 54 | "@types/react": "^18.0.28", |
55 | 55 | "@types/react-dom": "^18.0.11", |
56 | 56 | "@types/testing-library__jest-dom": "^5.14.5", |
57 | 57 | "@typescript-eslint/eslint-plugin": "^5.53.0", |
58 | 58 | "@typescript-eslint/parser": "^5.53.0", |
59 | 59 | "@vitejs/plugin-react": "^3.1.0", |
| 60 | + "esbuild": "^0.17.10", |
60 | 61 | "eslint": "^8.34.0", |
61 | 62 | "eslint-config-prettier": "^8.6.0", |
62 | 63 | "eslint-plugin-prettier": "^4.2.1", |
|
0 commit comments