|
43 | 43 | "boot": "yarn previews", |
44 | 44 | "previews": "node scripts/create-previews.js", |
45 | 45 | "storybook": "yarn previews && start-storybook -p 6006", |
46 | | - "test": "jest --config ./jest.config.ts --no-cache", |
| 46 | + "test": "jest --config ./jest.config.js --no-cache", |
47 | 47 | "lint": "eslint --color --ext .js,.jsx,.ts,.tsx .", |
48 | 48 | "lint:fix": "eslint --color --ext .js,.jsx,.ts,.tsx . --fix", |
49 | 49 | "format": "prettier --check \"./**/*.{html,css,js,jsx,ts,tsx,md,json}\"", |
50 | 50 | "format:fix": "prettier --write --list-different --cache \"./**/*.{html,css,js,jsx,ts,tsx,md,json}\"", |
51 | 51 | "format:package": "sort-package-json package.json", |
52 | 52 | "build": "yarn swc", |
53 | | - "prebabel": "rimraf dist", |
54 | | - "babel": "yarn babel:cjs && yarn babel:esm", |
55 | | - "postbabel": "yarn babel:types", |
56 | | - "babel:cjs": "cross-env BABEL_ENV=cjs babel src --extensions .ts,.tsx -d dist/cjs --source-maps", |
57 | | - "babel:esm": "cross-env BABEL_ENV=esm babel src --extensions .ts,.tsx -d dist/esm --source-maps", |
58 | | - "babel:types": "tsc --emitDeclarationOnly --project tsconfig.prod.json --declarationDir dist/types", |
59 | 53 | "preswc": "rimraf out", |
60 | 54 | "swc": "yarn swc:cjs && yarn swc:esm", |
61 | 55 | "postswc": "yarn swc:types", |
62 | | - "swc:cjs": "swc src -d out/cjs -C module.type=commonjs", |
63 | | - "swc:esm": "swc src -d out/esm -C module.type=es6", |
| 56 | + "swc:cjs": "swc src -d out/cjs -C module.type=commonjs --config-file .swcrc.build", |
| 57 | + "swc:esm": "swc src -d out/esm -C module.type=es6 --config-file .swcrc.build", |
64 | 58 | "swc:types": "tsc --emitDeclarationOnly --project tsconfig.prod.json --declarationDir out/types", |
65 | 59 | "storybook-build": "yarn previews && build-storybook", |
66 | 60 | "prepublishOnly": "pinst --disable", |
|
103 | 97 | "tailwind-merge": "^1.3.0" |
104 | 98 | }, |
105 | 99 | "devDependencies": { |
106 | | - "@babel/cli": "7.18.6", |
107 | | - "@babel/core": "7.18.6", |
108 | | - "@babel/plugin-proposal-class-properties": "7.18.6", |
109 | | - "@babel/plugin-proposal-private-methods": "7.18.6", |
110 | | - "@babel/plugin-proposal-private-property-in-object": "7.18.6", |
111 | | - "@babel/preset-env": "7.18.6", |
112 | | - "@babel/preset-react": "7.18.6", |
113 | | - "@babel/preset-typescript": "7.18.6", |
114 | 100 | "@commitlint/cli": "17.0.3", |
115 | 101 | "@commitlint/config-conventional": "17.0.3", |
116 | 102 | "@release-it/conventional-changelog": "5.0.0", |
|
119 | 105 | "@storybook/addon-actions": "6.5.9", |
120 | 106 | "@storybook/addon-essentials": "6.5.9", |
121 | 107 | "@storybook/addon-postcss": "2.0.0", |
122 | | - "@storybook/builder-webpack5": "6.5.9", |
123 | | - "@storybook/manager-webpack5": "6.5.9", |
| 108 | + "@storybook/builder-vite": "^0.1.38", |
124 | 109 | "@storybook/react": "6.5.9", |
125 | 110 | "@swc/cli": "0.1.57", |
126 | 111 | "@swc/core": "1.2.207", |
|
139 | 124 | "all-contributors-cli": "6.20.0", |
140 | 125 | "autoprefixer": "10.4.7", |
141 | 126 | "axe-core": "4.4.2", |
142 | | - "babel-jest": "28.1.1", |
143 | | - "babel-loader": "8.2.5", |
144 | | - "babel-plugin-jsx-remove-data-test-id": "3.0.0", |
| 127 | + "@swc/jest": "0.2.21", |
145 | 128 | "browserlist": "1.0.1", |
146 | 129 | "chalk": "4.1.2", |
147 | 130 | "concurrently": "7.2.2", |
148 | 131 | "cross-env": "7.0.3", |
149 | 132 | "eslint": "8.18.0", |
150 | 133 | "eslint-config-prettier": "8.5.0", |
151 | 134 | "eslint-config-react-app": "7.0.1", |
152 | | - "eslint-plugin-prettier": "4.1.0", |
| 135 | + "eslint-plugin-prettier": "4.2.1", |
153 | 136 | "eslint-plugin-simple-import-sort": "7.0.0", |
154 | 137 | "eslint-plugin-storybook": "0.5.13", |
155 | 138 | "focus-visible": "5.2.0", |
156 | 139 | "gacp": "3.0.2", |
157 | 140 | "glob-fs": "0.1.7", |
158 | 141 | "husky": "8.0.1", |
159 | | - "jest": "28.1.1", |
| 142 | + "jest": "28.1.2", |
160 | 143 | "jest-axe": "6.0.0", |
161 | | - "jest-environment-jsdom": "28.1.1", |
| 144 | + "jest-environment-jsdom": "28.1.2", |
162 | 145 | "lint-staged": "13.0.3", |
163 | 146 | "node-fetch": "2.6.7", |
164 | 147 | "outdent": "0.8.0", |
|
180 | 163 | "sort-package-json": "1.57.0", |
181 | 164 | "storybook-addon-preview": "2.2.0", |
182 | 165 | "tailwindcss": "3.1.4", |
183 | | - "ts-node": "10.8.1", |
184 | | - "tslib": "2.4.0", |
185 | 166 | "typescript": "4.7.4", |
186 | | - "webpack": "5.73.0" |
| 167 | + "vite": "^2.9.13" |
187 | 168 | }, |
188 | 169 | "peerDependencies": { |
189 | 170 | "react": "16.x || 17.x || 18.x", |
|
0 commit comments