From dfd5275000574ef00f1d781f8b5d2db8c3322a46 Mon Sep 17 00:00:00 2001 From: Alain Kalker Date: Sat, 25 Jul 2015 09:55:25 +0200 Subject: [PATCH] Start node with --harmony option when needed Fixes #6 --- bin-harmonious.js | 3 +++ package.json | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) create mode 100755 bin-harmonious.js diff --git a/bin-harmonious.js b/bin-harmonious.js new file mode 100755 index 0000000..39c4443 --- /dev/null +++ b/bin-harmonious.js @@ -0,0 +1,3 @@ +#!/usr/bin/env node +var harmony = require('harmonious') +harmony('./bin.js') diff --git a/package.json b/package.json index 0133887..2f5d8f4 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "node-repl", "version": "2.0.2", "bin": { - "node-repl": "bin.js" + "node-repl": "bin-harmonious.js" }, "description": "run a node program but also attach a repl to the same context that your code runs in so you can inspect + mess with stuff as your program is running", "main": "index.js", @@ -12,6 +12,7 @@ "author": "max ogden", "license": "BSD", "dependencies": { + "harmonious": "^0.5.17", "strip-bom": "^1.0.0" }, "devDependencies": {},