|
4 | 4 | "description": "Security Scorecard Design System",
|
5 | 5 | "author": "Radek Podrazky <[email protected]>",
|
6 | 6 | "license": "Apache-2.0",
|
7 |
| - "main": "build/index.js", |
8 |
| - "module": "build/index.es.js", |
| 7 | + "main": "build/index.cjs", |
| 8 | + "module": "build/index.mjs", |
9 | 9 | "types": "build/index.d.ts",
|
| 10 | + "exports": { |
| 11 | + ".": { |
| 12 | + "types": "./build/index.d.ts", |
| 13 | + "import": "./build/index.mjs", |
| 14 | + "require": "./build/index.cjs", |
| 15 | + "default": "./src/index.ts" |
| 16 | + } |
| 17 | + }, |
10 | 18 | "files": [
|
11 | 19 | "CHANGELOG.md",
|
12 | 20 | "LICENSE",
|
|
15 | 23 | "build"
|
16 | 24 | ],
|
17 | 25 | "scripts": {
|
18 |
| - "build": "rollup -c", |
19 |
| - "storybook": "start-storybook -p 8008", |
20 |
| - "storybook:build": "build-storybook --quiet", |
| 26 | + "build": "vite build", |
| 27 | + "storybook": "cross-env TS_NODE_PROJECT=.storybook/tsconfig.json start-storybook -p 8008", |
| 28 | + "storybook:build": "cross-env TS_NODE_PROJECT=.storybook/tsconfig.json build-storybook --quiet", |
21 | 29 | "test:storybook:visual": "./visual-regressions/bin/take-and-check-in-docker.sh",
|
22 | 30 | "test:storybook:visual:update": "./visual-regressions/bin/take-and-update-in-docker.sh",
|
23 | 31 | "test:storybook:visual:ci": "./visual-regressions/bin/take-and-check-in-docker-ci.sh",
|
24 |
| - "test": "jest -w 1", |
| 32 | + "test": "jest -w 4", |
25 | 33 | "test:watch": "jest --watch",
|
26 |
| - "types": "tsc --noEmit", |
| 34 | + "types": "tsc", |
27 | 35 | "lint": "eslint 'src/**/*.{js,ts,tsx}'",
|
28 | 36 | "lint:fix": "eslint 'src/**/*.{js,ts,tsx}' --fix",
|
29 | 37 | "lint:css": "stylelint 'src/**/*.{js,ts,tsx}'",
|
|
88 | 96 | "@fontsource/inter": "^4.5.15",
|
89 | 97 | "@geometricpanda/storybook-addon-badges": "^0.2.1",
|
90 | 98 | "@mdx-js/react": "^1.6.22",
|
91 |
| - "@rollup/plugin-commonjs": "^21.0.3", |
92 |
| - "@rollup/plugin-node-resolve": "^13.2.0", |
93 |
| - "@rollup/plugin-url": "^6.1.0", |
| 99 | + "@prisma-capacity/babel-plugin-react-display-name": "^1.0.6", |
94 | 100 | "@semantic-release/changelog": "^6.0.1",
|
95 | 101 | "@semantic-release/commit-analyzer": "^9.0.2",
|
96 | 102 | "@semantic-release/git": "^10.0.1",
|
|
115 | 121 | "@testing-library/react-hooks": "^7.0.2",
|
116 | 122 | "@testing-library/user-event": "^13.5.0",
|
117 | 123 | "@types/jest": "^27.4.1",
|
118 |
| - "@types/node": "^16.11.27", |
| 124 | + "@types/node": "*", |
119 | 125 | "@types/react": "^18.2.0",
|
| 126 | + "@types/react-dom": "^18.2.0", |
| 127 | + "@types/react-router-dom": "^5.3.3", |
120 | 128 | "@types/react-select": "^4.0.18",
|
121 |
| - "@types/react-table": "^7.7.10", |
| 129 | + "@types/react-table": "7.7.14", |
| 130 | + "@types/rollup-plugin-auto-external": "^2.0.5", |
122 | 131 | "@types/styled-components": "^5.1.24",
|
123 | 132 | "@types/testing-library__jest-dom": "^5.14.3",
|
124 | 133 | "@typescript-eslint/eslint-plugin": "^5.16.0",
|
125 | 134 | "@typescript-eslint/parser": "^5.16.0",
|
| 135 | + "@vitejs/plugin-react": "^4.2.1", |
| 136 | + "babel-plugin-styled-components": "^2.0.7", |
| 137 | + "cross-env": "^7.0.3", |
126 | 138 | "eslint": "^8.11.0",
|
127 | 139 | "eslint-config-airbnb": "^19.0.4",
|
128 | 140 | "eslint-config-prettier": "^8.5.0",
|
|
154 | 166 | "react-select": "^4.3.1",
|
155 | 167 | "react-select-event": "^5.3.0",
|
156 | 168 | "react-test-renderer": "^16.13.1",
|
157 |
| - "require-from-string": "^2.0.2", |
158 |
| - "rollup": "^2.70.1", |
159 | 169 | "rollup-plugin-auto-external": "^2.0.0",
|
160 |
| - "rollup-plugin-peer-deps-external": "^2.2.2", |
161 |
| - "rollup-plugin-terser": "^7.0.2", |
162 |
| - "rollup-plugin-typescript2": "^0.31.2", |
163 |
| - "rollup-plugin-visualizer": "^5.6.0", |
| 170 | + "rollup-plugin-visualizer": "^5.12.0", |
164 | 171 | "semantic-release": "^19.0.2",
|
165 | 172 | "semantic-release-export-data": "^1.0.1",
|
166 | 173 | "storybook-addon-designs": "^6.2.1",
|
|
172 | 179 | "stylelint-config-styled-components": "^0.1.1",
|
173 | 180 | "stylelint-processor-styled-components": "^1.10.0",
|
174 | 181 | "ts-jest": "^27.1.4",
|
| 182 | + "ts-node": "^10.9.0", |
175 | 183 | "ts-react-display-name": "^1.2.2",
|
176 | 184 | "tslib": "^2.3.1",
|
177 | 185 | "typescript": "4.7.4",
|
178 |
| - "typescript-plugin-styled-components": "^2.0.0" |
| 186 | + "typescript-plugin-styled-components": "^2.0.0", |
| 187 | + "vite": "^5.2.8", |
| 188 | + "vite-plugin-dts": "^3.8.1", |
| 189 | + "vite-require": "^0.2.3" |
179 | 190 | },
|
180 | 191 | "resolutions": {
|
181 | 192 | "trim": "1.0.1",
|
|
0 commit comments