From b11d18d037bd5dce90b319d358001ed685f39cf5 Mon Sep 17 00:00:00 2001 From: typicode Date: Thu, 6 Oct 2016 23:32:22 +0200 Subject: [PATCH] Fix bin --- bin/index.js | 3 +-- src/cli/bin.js | 1 + test/cli/index.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) create mode 100644 src/cli/bin.js diff --git a/bin/index.js b/bin/index.js index ccf3d23..af3551a 100755 --- a/bin/index.js +++ b/bin/index.js @@ -1,3 +1,2 @@ #!/usr/bin/env node -// FIXME -require('../src/cli')() +require('../lib/cli/bin') diff --git a/src/cli/bin.js b/src/cli/bin.js new file mode 100644 index 0000000..5b07ef5 --- /dev/null +++ b/src/cli/bin.js @@ -0,0 +1 @@ +require('.')() diff --git a/test/cli/index.js b/test/cli/index.js index de47602..e9a4043 100644 --- a/test/cli/index.js +++ b/test/cli/index.js @@ -19,7 +19,7 @@ const middlewareFiles = { } function cli (args) { - const bin = path.join(__dirname, '../..', pkg.bin) + const bin = path.join(__dirname, '../../src/cli/bin') return cp.spawn('node', [bin, '-p', PORT].concat(args), { cwd: __dirname, stdio: ['pipe', process.stdout, process.stderr]