|
2 | 2 | "name": "react-keyboard-time-input", |
3 | 3 | "version": "2.0.5", |
4 | 4 | "description": "A keyboard friendly react component for capturing time", |
5 | | - "module": "./dist/commonjs/TimeInput", |
| 5 | + "module": "./src/TimeInput", |
6 | 6 | "main": "./dist/TimeInput", |
7 | 7 | "scripts": { |
8 | 8 | "predeploy-docs": "./node_modules/.bin/webpack --config webpack.config.js", |
|
12 | 12 | "test": "jest --coverage", |
13 | 13 | "coverage-ci": "codecov", |
14 | 14 | "start": "webpack-dev-server --config webpack.config.js", |
15 | | - "compile": "NODE_ENV=production babel -d dist/ src/", |
16 | | - "compile:common": "BABEL_ENV=commonjs NODE_ENV=production babel -d dist/commonjs/ src/", |
| 15 | + "compile:common-one-file": "BABEL_ENV=commonjs NODE_ENV=production ./node_modules/.bin/webpack --config webpack.commonjs.config.js", |
| 16 | + "compile:es": "NODE_ENV=production ./node_modules/.bin/webpack --config webpack.es.config.js", |
| 17 | + "compile": "BABEL_ENV=commonjs NODE_ENV=production babel src/ --out-dir ./dist", |
17 | 18 | "preprepublish": "yarn run test", |
18 | | - "prepublish": "yarn run compile && yarn run compile:common" |
| 19 | + "prepublish": "yarn run compile" |
19 | 20 | }, |
20 | 21 | "author": "Alan Clarke <hi@alz.so> (alz.so)", |
21 | 22 | "contributors": [ |
|
29 | 30 | "babel-core": "^6.26.0", |
30 | 31 | "babel-jest": "^22.0.6", |
31 | 32 | "babel-loader": "7.1.2", |
| 33 | + "babel-plugin-transform-rename-import": "^2.1.1", |
32 | 34 | "babel-preset-env": "^1.6.1", |
33 | 35 | "babel-preset-es2015": "^6.24.1", |
34 | 36 | "babel-preset-react": "^6.24.1", |
|
0 commit comments