|
2 | 2 | "name": "@lifechurch/react-draftable", |
3 | 3 | "version": "0.0.0-development", |
4 | 4 | "description": "A simple, customizable rich text editor built on Draft.js", |
5 | | - "main": "dist/index.js", |
| 5 | + "main": "dist/react-draftable.cjs.js", |
| 6 | + "module": "dist/react-draftable.esm.js", |
| 7 | + "browser": "dist/react-draftable.umd.js", |
6 | 8 | "files": [ |
7 | 9 | "dist", |
8 | | - "LICENSE" |
| 10 | + "src" |
9 | 11 | ], |
10 | 12 | "scripts": { |
11 | | - "build": "yarn clean && yarn build:parcel && yarn build:flow", |
12 | | - "build:parcel": "cross-env NODE_ENV=production parcel build ./src/index.js --out-dir ./dist --out-file index.js --target node", |
13 | | - "build:flow": "flow-copy-source src dist", |
| 13 | + "build": "yarn clean && yarn build:rollup", |
| 14 | + "build:rollup": "BABEL_ENV=production rollup -c --no-treeshake", |
14 | 15 | "clean": "rimraf dist", |
15 | 16 | "commit": "git-cz", |
16 | 17 | "flow": "flow", |
|
43 | 44 | "immutable": "^3.8.2" |
44 | 45 | }, |
45 | 46 | "peerDependencies": { |
46 | | - "draft-js": "x.10.x", |
| 47 | + "draft-js": "x.10.x | x.11.X", |
47 | 48 | "react": "16.x.x", |
48 | 49 | "react-dom": "16.x.x" |
49 | 50 | }, |
|
60 | 61 | "babel-eslint": "^10.0.1", |
61 | 62 | "babel-jest": "^24.8.0", |
62 | 63 | "babel-loader": "^8.0.6", |
63 | | - "babel-plugin-react-remove-properties": "^0.3.0", |
| 64 | + "babel-plugin-jsx-remove-data-test-id": "^2.0.0", |
64 | 65 | "commitizen": "^3.1.1", |
65 | 66 | "cross-env": "^5.2.0", |
| 67 | + "css-loader": "^2.1.1", |
66 | 68 | "cz-conventional-changelog": "2.1.0", |
67 | 69 | "draft-js": "^0.11.0-beta2", |
68 | 70 | "eslint": "^5.16.0", |
|
72 | 74 | "eslint-plugin-jsx-a11y": "^6.2.1", |
73 | 75 | "eslint-plugin-react": "^7.13.0", |
74 | 76 | "flow-bin": "^0.98.1", |
75 | | - "flow-copy-source": "^2.0.6", |
76 | 77 | "flow-inlinestyle": "^1.0.9", |
77 | 78 | "jest": "^24.8.0", |
78 | 79 | "jest-transform-stub": "^2.0.0", |
79 | | - "parcel-bundler": "^1.12.3", |
80 | 80 | "react": "^16.8.6", |
81 | 81 | "react-dom": "^16.8.6", |
82 | 82 | "react-testing-library": "^7.0.1", |
83 | 83 | "rimraf": "^2.6.3", |
| 84 | + "rollup": "^1.12.5", |
| 85 | + "rollup-plugin-auto-external": "^2.0.0", |
| 86 | + "rollup-plugin-babel": "^4.3.2", |
| 87 | + "rollup-plugin-commonjs": "^10.0.0", |
| 88 | + "rollup-plugin-copy": "^2.0.1", |
| 89 | + "rollup-plugin-css-only": "^1.0.0", |
| 90 | + "rollup-plugin-multi-entry": "^2.1.0", |
| 91 | + "rollup-plugin-node-globals": "^1.4.0", |
| 92 | + "rollup-plugin-node-resolve": "^5.0.0", |
84 | 93 | "semantic-release": "^15.13.12", |
85 | 94 | "sinon": "^7.3.2" |
86 | 95 | }, |
|
0 commit comments