From 30145cea6c30dc5fa58c7794cc508f3274418052 Mon Sep 17 00:00:00 2001 From: Tiago Ribeiro Date: Wed, 4 Jun 2014 15:27:51 +0100 Subject: [PATCH] Add harmony support --- bin/sequelize | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/bin/sequelize b/bin/sequelize index 99922c37..e00e611d 100755 --- a/bin/sequelize +++ b/bin/sequelize @@ -44,7 +44,15 @@ args = args.concat([ '--cwd', process.cwd() ]) -var call = spawn(gulp, args) +args.unshift(gulp) + +// Add harmony support +if (_.contains(args, '--harmony')) { + args = _.without(args, '--harmony') + args.unshift('--harmony') +} + +var call = spawn(process.argv[0], args) call.stdout.on('data', function(data) { var lines = data.toString().split("\n")