|
1 | 1 | { |
2 | 2 | "name": "react-chartjs-2", |
| 3 | + "type": "module", |
3 | 4 | "version": "4.3.1", |
4 | 5 | "description": "React components for Chart.js", |
5 | 6 | "author": "Jeremy Ayerst", |
|
22 | 23 | ], |
23 | 24 | "sideEffects": false, |
24 | 25 | "types": "./dist/index.d.ts", |
25 | | - "main": "./src/index.tsx", |
| 26 | + "exports": "./src/index.ts", |
26 | 27 | "publishConfig": { |
27 | | - "main": "./dist/index.cjs", |
28 | | - "module": "./dist/index.js", |
| 28 | + "exports": { |
| 29 | + "import": "./dist/index.js", |
| 30 | + "types": "./dist/index.d.ts" |
| 31 | + }, |
29 | 32 | "directory": "package" |
30 | 33 | }, |
31 | 34 | "files": [ |
|
35 | 38 | "prepublishOnly": "pnpm test && pnpm build && del ./package && clean-publish", |
36 | 39 | "postpublish": "del ./package", |
37 | 40 | "emitDeclarations": "tsc --emitDeclarationOnly", |
38 | | - "build": "rollup -c & pnpm emitDeclarations", |
| 41 | + "build": "rollup -c && pnpm emitDeclarations", |
39 | 42 | "start:storybook": "start-storybook -p 6006 --ci", |
40 | 43 | "build:storybook": "del ./storybook-static; NODE_ENV=production build-storybook", |
41 | 44 | "test:lint": "eslint \"src/**/*.{ts,tsx}\" \"stories/**/*.{ts,tsx}\" \"sandboxes/**/*.{ts,tsx}\" \"test/**/*.{ts,tsx}\"", |
|
56 | 59 | "react": "^16.8.0 || ^17.0.0 || ^18.0.0" |
57 | 60 | }, |
58 | 61 | "devDependencies": { |
59 | | - "@babel/core": "^7.15.8", |
60 | 62 | "@commitlint/cli": "^17.0.0", |
61 | 63 | "@commitlint/config-conventional": "^17.0.0", |
62 | 64 | "@commitlint/cz-commitlint": "^17.0.0", |
63 | | - "@rollup/plugin-node-resolve": "^13.0.5", |
| 65 | + "@rollup/plugin-node-resolve": "^15.0.1", |
64 | 66 | "@size-limit/preset-big-lib": "^8.0.0", |
65 | 67 | "@storybook/addon-actions": "^6.3.12", |
66 | 68 | "@storybook/addon-controls": "^6.3.12", |
67 | 69 | "@storybook/addon-docs": "^6.3.12", |
68 | 70 | "@storybook/addons": "^6.3.12", |
| 71 | + "@storybook/builder-vite": "^0.2.5", |
| 72 | + "@storybook/client-api": "^6.5.13", |
| 73 | + "@storybook/client-logger": "^6.5.13", |
69 | 74 | "@storybook/react": "^6.3.12", |
70 | | - "@swc/core": "^1.2.95", |
| 75 | + "@swc/core": "^1.3.17", |
71 | 76 | "@swc/helpers": "^0.4.0", |
72 | 77 | "@testing-library/jest-dom": "^5.5.0", |
73 | 78 | "@testing-library/react": "^13.0.0", |
|
105 | 110 | "react": "^18.0.0", |
106 | 111 | "react-dom": "^18.0.0", |
107 | 112 | "react-test-renderer": "^18.0.0", |
108 | | - "rollup": "^2.58.0", |
109 | | - "rollup-plugin-swc": "^0.2.0", |
| 113 | + "rollup": "^3.3.0", |
| 114 | + "rollup-plugin-swc3": "^0.7.0", |
110 | 115 | "simple-git-hooks": "^2.6.1", |
111 | 116 | "simple-github-release": "^1.0.0", |
112 | 117 | "size-limit": "^8.0.0", |
113 | 118 | "standard-version": "^9.3.1", |
114 | 119 | "tsd": "^0.24.0", |
115 | | - "typescript": "^4.4.3", |
| 120 | + "typescript": "^4.9.3", |
116 | 121 | "vite": "^3.2.4", |
117 | 122 | "vitest": "^0.25.2", |
118 | | - "vitest-canvas-mock": "^0.2.1", |
119 | | - "webpack": "^5.58.2" |
| 123 | + "vitest-canvas-mock": "^0.2.1" |
120 | 124 | }, |
121 | 125 | "tsd": { |
122 | 126 | "directory": "./test", |
|
0 commit comments