|
2 | 2 | "name": "react-joi-validation",
|
3 | 3 | "version": "1.6.2",
|
4 | 4 | "description": "Extremely flexible validation using Joi and React",
|
5 |
| - "main": "lib/index.js", |
| 5 | + "main": "index.js", |
6 | 6 | "scripts": {
|
7 |
| - "prepublish": "rm -rf lib && babel --presets=es2015,stage-0,react src -d lib", |
8 |
| - "build-for-tests": "babel --presets=es2015,stage-0,react src -d lib --source-maps", |
9 |
| - "build-tests": "rm -rf lib/spec && babel --presets=es2015,stage-0,react spec -d lib/spec --source-maps", |
| 7 | + "prepublish": "rm -rf cjs && npm run build-development && npm run build-production", |
| 8 | + "build-development": "BABEL_ENV=development NODE_ENV=development rollup -c", |
| 9 | + "build-production": "BABEL_ENV=production NODE_ENV=production rollup -c", |
| 10 | + "build-for-tests": "BABEL_ENV=test NODE_ENV=development rollup -c", |
| 11 | + "build-tests": "rm -rf cjs/spec && babel spec -d cjs/spec", |
10 | 12 | "tests": "npm run build-for-tests && npm run build-tests && jasmine",
|
11 | 13 | "watch-tests": "nodemon --exec 'npm run tests || true'"
|
12 | 14 | },
|
|
21 | 23 | "forms"
|
22 | 24 | ],
|
23 | 25 | "files": [
|
24 |
| - "lib", |
| 26 | + "cjs", |
25 | 27 | "package.json",
|
26 | 28 | "README.md",
|
27 | 29 | "LICENSE",
|
28 |
| - "index.d.ts" |
| 30 | + "index.d.ts", |
| 31 | + "index.js" |
29 | 32 | ],
|
30 | 33 | "typings": "./index.d.ts",
|
31 | 34 | "author": "Aleck Greenham",
|
|
57 | 60 | "@types/joi": "^13.0.5",
|
58 | 61 | "@types/react": "^16.0.36",
|
59 | 62 | "babel-cli": "^6.24.1",
|
| 63 | + "babel-plugin-external-helpers": "^6.22.0", |
60 | 64 | "babel-plugin-remove-comments": "^2.0.0",
|
61 | 65 | "babel-preset-es2015": "^6.24.1",
|
62 | 66 | "babel-preset-react": "^6.24.1",
|
|
74 | 78 | "react-core": "^0.0.0",
|
75 | 79 | "react-dom": "^16.2.0",
|
76 | 80 | "react-test-renderer": "^16.2.0",
|
| 81 | + "rollup": "^0.55.5", |
| 82 | + "rollup-plugin-babel": "^3.0.3", |
| 83 | + "rollup-plugin-license": "^0.5.0", |
| 84 | + "rollup-plugin-replace": "^2.0.0", |
| 85 | + "rollup-plugin-uglify": "^3.0.0", |
77 | 86 | "source-map-support": "^0.4.15"
|
78 | 87 | },
|
79 | 88 | "peerDependencies": {
|
|
0 commit comments