|
5 | 5 | "author": "cloudinary", |
6 | 6 | "license": "MIT", |
7 | 7 | "repository": "https://github.com/cloudinary/frontend-frameworks", |
8 | | - "main": "dist/index.js", |
9 | | - "umd:main": "./dist/index.umd.js", |
10 | | - "module": "dist/index.esm.js", |
| 8 | + "main": "index.umd.js", |
| 9 | + "module": "index.js", |
| 10 | + "types": "index.d.ts", |
11 | 11 | "sideEffects": false, |
12 | | - "source": "src/index.tsx", |
13 | 12 | "engines": { |
14 | 13 | "node": ">=10" |
15 | 14 | }, |
16 | 15 | "scripts": { |
17 | | - "build": "npm run build --prefix ../html && microbundle --format esm,umd,cjs --jsx React.createElement --compress false && cp package.json ./dist", |
18 | | - "start": "microbundle watch --no-compress --format modern,cjs", |
| 16 | + "build": "npm run build --prefix ../html && tsc && rollup -c && cp package.json ./dist", |
19 | 17 | "test": "jest", |
20 | 18 | "test-coverage": "jest --coverage" |
21 | 19 | }, |
|
53 | 51 | "eslint-plugin-react": "^7.17.0", |
54 | 52 | "eslint-plugin-standard": "^4.0.1", |
55 | 53 | "gh-pages": "^2.2.0", |
56 | | - "microbundle": "^0.13.0", |
57 | 54 | "npm-run-all": "^4.1.5", |
58 | 55 | "prettier": "^2.0.4", |
59 | 56 | "react": "^16.13.1", |
60 | 57 | "react-dom": "^16.13.1", |
61 | 58 | "react-scripts": "^3.4.1", |
62 | 59 | "ts-jest": "^26.4.4", |
63 | | - "typescript": "^3.7.5" |
| 60 | + "typescript": "^3.7.5", |
| 61 | + "@cloudinary/html": "^1.0.1", |
| 62 | + "@rollup/plugin-commonjs": "^21.0.1", |
| 63 | + "@rollup/plugin-json": "^4.1.0", |
| 64 | + "@rollup/plugin-node-resolve": "^13.1.3", |
| 65 | + "@rollup/plugin-replace": "^3.0.1", |
| 66 | + "@rollup/plugin-typescript": "^8.3.0", |
| 67 | + "rollup": "^2.66.1" |
64 | 68 | }, |
65 | 69 | "jest": { |
66 | 70 | "transformIgnorePatterns": [ |
|
0 commit comments