From fbe978dccf209fd6d40f8b7c4ac94899cf6f1c0b Mon Sep 17 00:00:00 2001 From: Roel van Uden Date: Sat, 28 May 2016 20:57:00 +0200 Subject: [PATCH] Protect me from my own insanity (continued). --- ezpz-install.js | 1 + ezpz-publish.js | 1 + 2 files changed, 2 insertions(+) diff --git a/ezpz-install.js b/ezpz-install.js index 9f1d457..18784b2 100644 --- a/ezpz-install.js +++ b/ezpz-install.js @@ -2,6 +2,7 @@ var childProcess = require('child_process'); var fs = require('fs'); var path = require('path'); +if (path.basename(__dirname) !== 'node_modules') { console.log('ERROR: The containing folder must be named "node_modules".'); process.exit(1); } diff --git a/ezpz-publish.js b/ezpz-publish.js index af88c44..7653104 100644 --- a/ezpz-publish.js +++ b/ezpz-publish.js @@ -2,6 +2,7 @@ var childProcess = require('child_process'); var fs = require('fs'); var path = require('path'); +if (path.basename(__dirname) !== 'node_modules') { console.log('ERROR: The containing folder must be named "node_modules".'); process.exit(1); }