|
2 | 2 | "name": "es2015-library-skeleton", |
3 | 3 | "version": "0.0.0-development", |
4 | 4 | "description": "my personal ES2015 library project skeleton", |
5 | | - "main": "lib/index.js", |
| 5 | + "main": "index.js", |
6 | 6 | "module": "es/index.js", |
| 7 | + "modules.root": "es", |
7 | 8 | "sideEffects": false, |
8 | 9 | "scripts": { |
9 | 10 | "lint": "eslint src test --cache", |
10 | 11 | "lint:fix": "eslint --fix src test --cache", |
11 | 12 | "lint:watch": "esw --watch src test --cache", |
12 | 13 | "flow": "flow", |
13 | 14 | "flow:coverage": "for file in src/**.js test/**.js; do echo $file; flow coverage $file; done", |
14 | | - "flow:watch": "flow-watch -e js,js.flow,flowconfig --ignore lib/ --ignore node_modules/ --watch .flowconfig --watch src/ --watch test/", |
15 | | - "build": "rimraf es && babel src --out-dir es && flow-copy-source -v src/ es && rimraf lib && BABEL_ENV=es5 babel src --out-dir lib && flow-copy-source -v src/ lib", |
| 15 | + "flow:watch": "flow-watch -e js,js.flow,flowconfig --ignore es/ --ignore node_modules/ --watch .flowconfig --watch src/ --watch test/", |
| 16 | + "clean": "rimraf *.js *.js.flow && git checkout HEAD *.js", |
| 17 | + "build": "npm run clean && babel src --out-dir es && flow-copy-source -v src/ es && BABEL_ENV=es5 babel src --out-dir . && flow-copy-source -v src/ .", |
16 | 18 | "test": "NODE_ENV=production BABEL_ENV=es5 mocha $npm_package_config_mocha && NODE_ENV=production BABEL_ENV=coverage nyc --reporter=lcov --reporter=text mocha $npm_package_config_mocha", |
17 | 19 | "test:watch": "NODE_ENV=production BABEL_ENV=test mocha --watch $npm_package_config_mocha", |
18 | 20 | "codecov": "nyc report --reporter=text-lcov > coverage.lcov; codecov", |
|
66 | 68 | "babel-plugin-syntax-dynamic-import": "^6.18.0", |
67 | 69 | "babel-plugin-transform-class-properties": "^6.24.1", |
68 | 70 | "babel-plugin-transform-export-extensions": "^6.22.0", |
| 71 | + "babel-plugin-transform-object-rest-spread": "^6.26.0", |
69 | 72 | "babel-plugin-transform-runtime": "^6.23.0", |
70 | 73 | "babel-preset-env": "^1.7.0", |
71 | 74 | "babel-preset-flow": "^6.23.0", |
|
0 commit comments