diff --git a/babel.config.js b/babel.config.js index f72232e04fad..460e0d4028b4 100644 --- a/babel.config.js +++ b/babel.config.js @@ -6,7 +6,7 @@ module.exports = { // It is important to note that @babel/preset-env does not support stage-x plugins { targets: { - node: true, + node: '10.16.0', }, useBuiltIns: 'usage', corejs: 3, @@ -19,4 +19,5 @@ module.exports = { ['@babel/plugin-proposal-export-default-from'], ['@babel/plugin-proposal-object-rest-spread'], ], + ignore: ['**/*.test.js'], }; diff --git a/lerna.json b/lerna.json index b585d638da5c..00e23980347d 100644 --- a/lerna.json +++ b/lerna.json @@ -1,5 +1,5 @@ { "packages": ["packages/*"], - "version": "0.0.0", + "version": "0.0.0-alpha.0", "npmClient": "yarn" } diff --git a/package.json b/package.json index e0cd104aaf7e..e7cc6df7f048 100644 --- a/package.json +++ b/package.json @@ -20,6 +20,7 @@ "prettier": "^1.18.2" }, "scripts": { + "build": "lerna run build", "test": "lerna run test -- --colors" } } diff --git a/packages/hammer-cli/package.json b/packages/hammer-cli/package.json index beb7e313660a..3e14be101497 100644 --- a/packages/hammer-cli/package.json +++ b/packages/hammer-cli/package.json @@ -9,10 +9,12 @@ "dist" ], "scripts": { + "build": "babel src --out-dir dist", "hammer": "babel-node src/index.js", "dev": "nodemon --exec babel-node src/index.js", "test": "jest", - "test:watch": "yarn test --watch" + "test:watch": "yarn test --watch", + "prepare": "yarn build" }, "dependencies": { "camelcase": "^5.3.1",