From 02f2a2eecc7573ecc0898f5b467f20124e6434e4 Mon Sep 17 00:00:00 2001 From: UsulPro Date: Tue, 18 Apr 2017 20:37:04 +0700 Subject: [PATCH] Add --copy-files flag --- scripts/prepublish.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/prepublish.js b/scripts/prepublish.js index 4ed6e16ebd41..d395a1b3c317 100644 --- a/scripts/prepublish.js +++ b/scripts/prepublish.js @@ -1,7 +1,7 @@ const path = require('path'); const shell = require('shelljs'); const chalk = require('chalk'); -const babel = ['node_modules', '.bin', 'babel'].join(path.sep); +const babel = path.join('node_modules', '.bin', 'babel'); require('./ver'); @@ -10,6 +10,7 @@ const args = [ '--ignore tests,__tests__,stories,story.jsx,story.js', '--plugins "transform-runtime"', './src --out-dir ./dist', + '--copy-files', ].join(' '); const cmd = `${babel} ${args}`;