Skip to content

Commit 162bc6b

Browse files
committed
chore(package): run scripts/download-flow-libs with babel-node again
1 parent 47fb6b9 commit 162bc6b

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

.babelrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"presets": ["es2015-node4"],
3-
"plugins": ["syntax-flow", "syntax-class-properties", "transform-class-properties", "transform-flow-strip-types"],
3+
"plugins": ["syntax-flow", "syntax-class-properties", "transform-class-properties", "transform-flow-strip-types", "transform-async-to-generator"],
44
"env": {
55
"development": {
66
"sourceMaps": true

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"clean": "shx rm -rf lib",
1919
"coverage:codecov": "nyc report --reporter=text-lcov > coverage.lcov",
2020
"coverage:html": "nyc report --reporter=html",
21-
"download-flow-libs": "cross-env NODE_ENV=production async-node --harmony-destructuring scripts/download-flow-libs",
21+
"download-flow-libs": "cross-env NODE_ENV=production babel-node scripts/download-flow-libs",
2222
"eslint:xunit-to-file": "envcheck ESLINT_FILE && compat \"npm run eslint -- --quiet -f junit --output-file $ESLINT_FILE\"",
2323
"eslint": "eslint *.js src test decls scripts benchmarks",
2424
"example": "npm run build && babel example/input.js -o example/output.js",
@@ -36,13 +36,13 @@
3636
"test": "npm run test:ci"
3737
},
3838
"devDependencies": {
39-
"async-to-gen": "^1.1.0",
4039
"babel-cli": "^6.9.0",
4140
"babel-eslint": "^6.1.2",
4241
"babel-plugin-istanbul": "^1.0.2",
4342
"babel-plugin-syntax-class-properties": "^6.13.0",
4443
"babel-plugin-syntax-flow": "^6.13.0",
4544
"babel-plugin-syntax-jsx": "^6.13.0",
45+
"babel-plugin-transform-async-to-generator": "^6.8.0",
4646
"babel-plugin-transform-class-properties": "^6.11.5",
4747
"babel-plugin-transform-flow-strip-types": "^6.14.0",
4848
"babel-preset-es2015-node4": "^2.1.0",

scripts/download-flow-libs.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
const request = require('request');
2-
const path = require('path');
3-
const fs = require('fs-promise');
4-
const pkgBabelTypes = require('babel-types/package.json');
1+
import request from 'request';
2+
import path from 'path';
3+
import fs from 'fs-promise';
4+
import pkgBabelTypes from 'babel-types/package.json';
55

66
const {version} = pkgBabelTypes;
77

0 commit comments

Comments
 (0)