|
2 | 2 | "name": "react-currency-input-field",
|
3 | 3 | "version": "3.8.0",
|
4 | 4 | "description": "React <input/> component for formatting currency and numbers.",
|
| 5 | + "sideEffects": false, |
5 | 6 | "files": [
|
6 | 7 | "dist/**/*",
|
7 | 8 | "src/**/*"
|
8 | 9 | ],
|
9 |
| - "main": "dist/index.js", |
| 10 | + "exports": { |
| 11 | + ".": { |
| 12 | + "types": "./dist/index.d.ts", |
| 13 | + "import": "./dist/esm/index.js", |
| 14 | + "require": "./dist/cjs/index.js" |
| 15 | + } |
| 16 | + }, |
| 17 | + "main": "dist/index.cjs.js", |
10 | 18 | "module": "dist/index.esm.js",
|
11 | 19 | "types": "dist/index.d.ts",
|
12 | 20 | "homepage": "https://github.com/cchanxzy/react-currency-input-field",
|
13 | 21 | "scripts": {
|
14 |
| - "build": "rm -rf dist && tsc && rollup -c", |
| 22 | + "build:types": "tsc", |
| 23 | + "build:js": "node esbuild.mjs", |
| 24 | + "build": "rm -rf dist && pnpm build:js && pnpm build:types", |
15 | 25 | "start": "parcel src/examples/index.html --open",
|
16 | 26 | "test": "LANG=en_GB jest",
|
17 | 27 | "test-ci": "LANG=en_GB.UTF-8 cross-env NODE_ICU_DATA=node_modules/full-icu jest",
|
|
48 | 58 | "@commitlint/cli": "^18.4.3",
|
49 | 59 | "@commitlint/config-conventional": "^18.4.3",
|
50 | 60 | "@playwright/test": "^1.40.1",
|
51 |
| - "@rollup/plugin-commonjs": "^19.0.0", |
52 |
| - "@rollup/plugin-node-resolve": "^13.0.0", |
53 |
| - "@rollup/plugin-typescript": "^8.2.1", |
54 | 61 | "@semantic-release/changelog": "^6.0.3",
|
55 | 62 | "@semantic-release/git": "^10.0.1",
|
56 | 63 | "@testing-library/dom": "^9.3.3",
|
|
65 | 72 | "@typescript-eslint/parser": "^6.16.0",
|
66 | 73 | "codecov": "^3.8.3",
|
67 | 74 | "cross-env": "^7.0.3",
|
| 75 | + "esbuild": "^0.24.0", |
68 | 76 | "eslint": "^8.56.0",
|
69 | 77 | "eslint-config-prettier": "^9.1.0",
|
70 | 78 | "eslint-plugin-prettier": "^5.1.2",
|
71 | 79 | "eslint-plugin-react": "^7.33.2",
|
72 | 80 | "eslint-plugin-react-hooks": "^4.6.0",
|
73 | 81 | "full-icu": "^1.3.4",
|
74 | 82 | "gh-pages": "^5.0.0",
|
| 83 | + "glob": "^11.0.0", |
75 | 84 | "husky": "^8.0.3",
|
76 | 85 | "jest": "^29.7.0",
|
77 | 86 | "jest-environment-jsdom": "^29.7.0",
|
|
81 | 90 | "process": "^0.11.10",
|
82 | 91 | "react": "^18.2.0",
|
83 | 92 | "react-dom": "18.2.0",
|
84 |
| - "rollup": "^2.52.7", |
85 | 93 | "semantic-release": "^24.2.0",
|
86 | 94 | "ts-jest": "^29.1.1",
|
87 | 95 | "ts-node": "^10.9.2",
|
|
0 commit comments