|
2 | 2 | "name": "cloudinary-react", |
3 | 3 | "version": "1.6.8", |
4 | 4 | "description": "Present Cloudinary images and videos using React components", |
5 | | - "main": "lib/index.js", |
| 5 | + "main": "./dist/cloudinary-react.js", |
| 6 | + "umd:main": "./dist/cloudinary-react.umd.js", |
| 7 | + "module": "dist/cloudinary-react.esm.js", |
| 8 | + "source": "src/index.js", |
| 9 | + "engines": { |
| 10 | + "node": ">=10" |
| 11 | + }, |
6 | 12 | "scripts": { |
7 | 13 | "test": "run-s build test:unit test:build test:e2e", |
8 | 14 | "test:unit": "jest", |
9 | 15 | "test:build": "TEST_ENV=PRODUCTION npm run test:unit", |
10 | 16 | "test:e2e": "cd ./e2e-test && npm run test", |
11 | 17 | "test:coverage": "jest --coverage", |
12 | 18 | "pretest:e2e": "npm pack && cpy cloudinary-react-*.tgz e2e-test --rename=cloudinary-react.tgz", |
13 | | - "prebuild": "node_modules/.bin/babel src --out-dir lib --copy-files ", |
14 | | - "build": "node_modules/.bin/webpack && npm run bundlewatch", |
| 19 | + "build": "microbundle --no-compress --sourcemap false --jsx React.createElement --format esm,umd,cjs && npm run bundlewatch", |
| 20 | + "start": "microbundle watch --no-compress --sourcemap false --jsx React.createElement --format esm,umd,cjs", |
15 | 21 | "bundlewatch": "bundlewatch --config ./bundlewatch.config.js", |
16 | 22 | "storybook": "start-storybook -p 6006", |
17 | 23 | "build-storybook": "del-cli docs && build-storybook -c .storybook -o docs", |
|
53 | 59 | "jest-enzyme": "^7.1.2", |
54 | 60 | "jest-extended": "^0.11.5", |
55 | 61 | "jsdom": "^11.12.0", |
| 62 | + "microbundle": "^0.13.0", |
56 | 63 | "npm-run-all": "^4.1.5", |
57 | 64 | "react": "^16.3.3", |
58 | | - "react-dom": "^16.3.3", |
59 | | - "webpack": "4.27.1", |
60 | | - "webpack-cli": "^3.1.2" |
| 65 | + "react-dom": "^16.3.3" |
61 | 66 | }, |
62 | 67 | "dependencies": { |
63 | 68 | "cloudinary-core": "^2.11.3", |
|
67 | 72 | "react": "^16.3.3 || ^17.0.0" |
68 | 73 | }, |
69 | 74 | "files": [ |
70 | | - "src", |
71 | | - "lib", |
72 | 75 | "dist" |
73 | 76 | ] |
74 | 77 | } |
0 commit comments