From 825f9de7d0141e1e839dd0e49aae426b09af9217 Mon Sep 17 00:00:00 2001 From: Martin Doyle Date: Sat, 23 Jul 2016 10:48:24 +0100 Subject: [PATCH] Fix local require incorrect path If run from an npm script (e.g. "npm run deploy") using a locally installed dependency, the executable JS file is symlinked into `/node_modules/.bin` and the relative require will fail. This ensures it will work in all contexts. --- bin/s3-upload.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/s3-upload.js b/bin/s3-upload.js index 5dce380..355d463 100644 --- a/bin/s3-upload.js +++ b/bin/s3-upload.js @@ -1,5 +1,5 @@ #!/usr/bin/env node -var ConfigRunner = require('../src/ConfigRunner.js'); +var ConfigRunner = require('s3-upload/src/ConfigRunner.js'); var path = require('path'); var runner = new ConfigRunner();