Skip to content

Commit

Permalink
Add --copy-files flag
Browse files Browse the repository at this point in the history
  • Loading branch information
usulpro committed Apr 18, 2017
1 parent 1869827 commit 02f2a2e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/prepublish.js
Original file line number Diff line number Diff line change
@@ -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');

Expand All @@ -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}`;
Expand Down

0 comments on commit 02f2a2e

Please sign in to comment.