|
1 | 1 | { |
2 | 2 | "private": true, |
| 3 | + "name": "flowtip-packages", |
3 | 4 | "scripts": { |
4 | | - "flow": "./node_modules/.bin/flow", |
5 | | - "format": "./node_modules/.bin/prettier --write '**/*.js'", |
6 | | - "lerna": "./node_modules/.bin/lerna", |
7 | | - "lint": "./node_modules/.bin/eslint .", |
8 | | - "prepare": "./node_modules/.bin/lerna bootstrap", |
9 | | - "spec": "./node_modules/.bin/jest --runInBand=${SPEC_SERIAL:-$CI} --coverage=${SPEC_COVERAGE:-$CI}", |
| 5 | + "build": "npm run clean && npm run build:flow && npm run build:es && npm run build:lib", |
| 6 | + "build:es": "BABEL_ENV=es npx babel --copy-files -s --relative -d ../es packages/*/src", |
| 7 | + "build:flow": "npx lerna exec ncp src es && npx lerna exec ncp src lib && npx renamer --regex --find '$' --replace '.flow' 'packages/*/@(es|lib)/**/*.js'", |
| 8 | + "build:lib": "BABEL_ENV=lib npx babel --copy-files -s --relative -d ../lib packages/*/src", |
| 9 | + "clean": "npx lerna exec rimraf lib es", |
| 10 | + "flow": "npx flow", |
| 11 | + "format": "npx prettier --write '**/*.js'", |
| 12 | + "lint": "npx eslint .", |
| 13 | + "prepare": "npx lerna bootstrap && npm run build", |
| 14 | + "spec": "npx jest --runInBand=${SPEC_SERIAL:-$CI} --coverage=${SPEC_COVERAGE:-$CI}", |
10 | 15 | "spec:watch": "npm run spec -- --watch", |
11 | 16 | "test": "npm run flow --silent && npm run lint --slient && npm run spec --silent" |
12 | 17 | }, |
13 | 18 | "devDependencies": { |
14 | 19 | "@babel/cli": "^7.0.0-beta.40", |
15 | 20 | "@babel/core": "^7.0.0-beta.40", |
16 | 21 | "@babel/plugin-proposal-class-properties": "^7.0.0-beta.40", |
| 22 | + "@babel/plugin-transform-modules-commonjs": "^7.0.0-beta.42", |
17 | 23 | "@babel/preset-env": "^7.0.0-beta.40", |
18 | 24 | "@babel/preset-flow": "^7.0.0-beta.40", |
19 | 25 | "@babel/preset-react": "^7.0.0-beta.40", |
|
0 commit comments