|
2 | 2 | "name": "react-motion", |
3 | 3 | "version": "0.5.2", |
4 | 4 | "description": "A spring that solves your animation problems.", |
5 | | - "main": "dist/react-motion.cjs.js", |
6 | | - "module": "dist/react-motion.esm.js", |
| 5 | + "main": "lib/react-motion.js", |
| 6 | + "module": "lib/react-motion.esm.js", |
7 | 7 | "peerDependencies": { |
8 | 8 | "react": "^0.14.9 || ^15.3.0 || ^16.0.0" |
9 | 9 | }, |
10 | 10 | "devDependencies": { |
11 | | - "@babel/core": "^7.0.0-rc.1", |
12 | | - "@babel/plugin-proposal-class-properties": "^7.0.0-rc.1", |
13 | | - "@babel/plugin-transform-modules-commonjs": "^7.0.0-rc.1", |
14 | | - "@babel/plugin-transform-runtime": "^7.0.0-rc.1", |
15 | | - "@babel/polyfill": "^7.0.0-rc.1", |
16 | | - "@babel/preset-env": "^7.0.0-rc.1", |
17 | | - "@babel/preset-flow": "^7.0.0-rc.1", |
18 | | - "@babel/preset-react": "^7.0.0-rc.1", |
19 | | - "babel-eslint": "^9.0.0-beta.3", |
20 | | - "babel-loader": "^8.0.0-beta.4", |
21 | | - "babel-plugin-transform-react-remove-prop-types": "^0.4.14", |
| 11 | + "@babel/cli": "^7.0.0-rc.1", |
| 12 | + "@babel/core": "^7.7.2", |
| 13 | + "@babel/plugin-proposal-class-properties": "^7.7.0", |
| 14 | + "@babel/plugin-transform-modules-commonjs": "^7.7.0", |
| 15 | + "@babel/plugin-transform-runtime": "^7.6.2", |
| 16 | + "@babel/polyfill": "^7.7.0", |
| 17 | + "@babel/preset-env": "^7.7.1", |
| 18 | + "@babel/preset-flow": "^7.0.0", |
| 19 | + "@babel/preset-react": "^7.7.0", |
| 20 | + "babel-eslint": "^10.0.3", |
| 21 | + "babel-loader": "^8.0.6", |
| 22 | + "babel-plugin-transform-react-remove-prop-types": "^0.4.24", |
22 | 23 | "codemirror": "^5.5.0", |
23 | 24 | "cross-env": "^5.2.0", |
24 | 25 | "css-loader": "^0.28.11", |
|
31 | 32 | "eslint-plugin-jsx-a11y": "^6.1.0", |
32 | 33 | "eslint-plugin-react": "^7.10.0", |
33 | 34 | "flow-bin": "^0.53.1", |
| 35 | + "flow-copy-source": "^1.1.0", |
34 | 36 | "husky": "^0.14.3", |
35 | 37 | "inject-loader": "^4.0.1", |
36 | 38 | "isparta-loader": "^2.0.0", |
|
48 | 50 | "react-codemirror": ">=0.1.2", |
49 | 51 | "react-dom": ">=15.5.0", |
50 | 52 | "rollup": "^0.62.0", |
51 | | - "rollup-plugin-babel": "^4.0.0-beta.8", |
| 53 | + "rollup-plugin-babel": "^4.3.3", |
52 | 54 | "rollup-plugin-commonjs": "^9.1.4", |
53 | 55 | "rollup-plugin-node-resolve": "^3.3.0", |
54 | 56 | "rollup-plugin-replace": "^2.0.0", |
|
61 | 63 | }, |
62 | 64 | "scripts": { |
63 | 65 | "start": "node server.js", |
64 | | - "build:code": "rollup -c", |
65 | | - "build:flow": "echo \"// @flow\n\nexport * from '../src/react-motion.js';\" > dist/react-motion.cjs.js.flow", |
66 | | - "build": "rm -rf dist && npm run build:code && npm run build:flow", |
| 66 | + "prebuild:dist": "rm -rf build", |
| 67 | + "build:dist": "rollup -c", |
| 68 | + "prebuild:lib": "rm -rf lib", |
| 69 | + "build:lib": "babel src --out-dir lib", |
| 70 | + "build:flow": "flow-copy-source -v src lib", |
| 71 | + "build": "npm run build:dist && npm run build:lib && npm run build:flow", |
67 | 72 | "build-demos": "webpack", |
68 | 73 | "lint": "eslint --ext .js,.jsx .", |
69 | 74 | "flow_check": "flow check", |
70 | | - "prepublish": "npm run build", |
| 75 | + "prepublishOnly": "npm run build", |
71 | 76 | "test": "cross-env NODE_ENV=test karma start ./karma.conf.js --single-run", |
72 | 77 | "test:travis": "cross-env NODE_ENV=test karma start ./karma.conf.js --single-run", |
73 | 78 | "test:dev": "cross-env NODE_ENV=test karma start ./karma.conf.js --no-single-run --auto-watch", |
|
107 | 112 | ], |
108 | 113 | "license": "MIT", |
109 | 114 | "dependencies": { |
110 | | - "@babel/runtime": "7.0.0-rc.1", |
| 115 | + "@babel/runtime": "7.7.2", |
111 | 116 | "performance-now": "^2.1.0", |
112 | 117 | "prop-types": "^15.5.8", |
113 | 118 | "raf": "^3.1.0" |
|
0 commit comments