|
2 | 2 | "name": "upup-react-file-uploader", |
3 | 3 | "author": "Devino Solutions", |
4 | 4 | "license": "MIT", |
5 | | - "version": "1.2.1", |
| 5 | + "version": "1.3.2", |
6 | 6 | "publishConfig": { |
7 | 7 | "access": "public" |
8 | 8 | }, |
|
14 | 14 | "exports": { |
15 | 15 | ".": { |
16 | 16 | "types": "./dist/index.browser.d.ts", |
17 | | - "browser": "./dist/browser.esm.js", |
18 | | - "import": "./dist/browser.esm.js", |
19 | | - "require": "./dist/browser.cjs.development.js" |
| 17 | + "import": "./dist/index.browser.mjs", |
| 18 | + "require": "./dist/index.browser.js" |
20 | 19 | }, |
21 | 20 | "./server": { |
22 | | - "types": "./dist/index.node.d.ts", |
23 | | - "default": "./dist/node.node.js" |
| 21 | + "types": "./dist-node/index.node.d.ts", |
| 22 | + "default": "./dist-node/index.node.js" |
24 | 23 | }, |
25 | 24 | "./shared": { |
26 | 25 | "types": "./dist/shared/types/StorageSDK.d.ts" |
27 | 26 | }, |
28 | | - "./styles": "./dist/upup.css" |
| 27 | + "./styles": "./dist/tailwind-prefixed.css" |
29 | 28 | }, |
30 | 29 | "typesVersions": { |
31 | 30 | "*": { |
|
56 | 55 | "decompress" |
57 | 56 | ], |
58 | 57 | "scripts": { |
59 | | - "start": "pnpm run prebuild && tsdx watch", |
60 | | - "build:node": "tsdx build --no-minify --entry ./src/index.node.ts --tsconfig ./tsconfig.node.json --format cjs --name node", |
61 | | - "build:browser": "tsdx build --no-minify --entry ./src/index.browser.ts --tsconfig ./tsconfig.browser.json --format esm,cjs --name browser", |
62 | | - "build": "node scripts/build.js", |
| 58 | + "dev": "tsup --config tsup.config.ts --watch", |
| 59 | + "build:css": "npx tailwindcss -c tailwind.config.js -i ./src/frontend/tailwind.css -o ./dist/tailwind-prefixed.css", |
| 60 | + "build": "pnpm run prebuild && tsup --config tsup.config.ts && pnpm run build:css", |
| 61 | + "prebuild": "rimraf dist dist-node && pnpm run lint", |
63 | 62 | "test": "jest", |
64 | 63 | "test:watch": "jest --watch", |
65 | 64 | "test:coverage": "jest --coverage", |
|
85 | 84 | "limit": "10 KB" |
86 | 85 | } |
87 | 86 | ], |
| 87 | + "peerDependencies": { |
| 88 | + "react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0", |
| 89 | + "react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0" |
| 90 | + }, |
88 | 91 | "devDependencies": { |
89 | 92 | "@babel/core": "^7.23.3", |
90 | 93 | "@babel/plugin-proposal-optional-chaining": "^7.21.0", |
|
123 | 126 | "@types/uuid": "^9.0.7", |
124 | 127 | "@typescript-eslint/eslint-plugin": "^8.22.0", |
125 | 128 | "@typescript-eslint/parser": "^8.22.0", |
126 | | - "autoprefixer": "^10.4.16", |
| 129 | + "autoprefixer": "^10.4.20", |
127 | 130 | "babel-loader": "^9.1.3", |
128 | 131 | "css-loader": "^7.1.2", |
129 | 132 | "eslint": "^9.19.0", |
|
139 | 142 | "jest-canvas-mock": "^2.5.2", |
140 | 143 | "jest-environment-jsdom": "29.7.0", |
141 | 144 | "lowlight": "1.20.0", |
142 | | - "postcss": "^8.4.31", |
| 145 | + "postcss": "^8.5.2", |
143 | 146 | "postcss-loader": "^8.1.1", |
144 | 147 | "prettier": "3.0.3", |
145 | 148 | "prettier-plugin-organize-imports": "^3.2.4", |
|
153 | 156 | "size-limit": "^10.0.3", |
154 | 157 | "storybook": "^8.5.2", |
155 | 158 | "style-loader": "^4.0.0", |
156 | | - "tailwindcss": "^3.3.5", |
| 159 | + "tailwindcss": "^3.4.17", |
157 | 160 | "ts-jest": "29.1.1", |
158 | | - "tsdx": "^0.14.1", |
159 | 161 | "tslib": "^2.6.2", |
| 162 | + "tsup": "^8.4.0", |
160 | 163 | "typescript": "^5.3.2", |
161 | 164 | "typescript-eslint": "^8.21.0", |
162 | 165 | "webpack": "5.89.0", |
|
193 | 196 | "jsdom": "22.1.0", |
194 | 197 | "node-notifier": "10.0.1", |
195 | 198 | "node-fetch": "2.6.7", |
196 | | - "rollup": "^3.29.4", |
197 | | - "terser": "^5.39.0", |
198 | | - "rollup-plugin-terser": "7.0.2" |
| 199 | + "rollup": "^3.29.4" |
199 | 200 | } |
200 | 201 | } |
201 | 202 | } |
0 commit comments