From 01204a618fd34f5c68db7f8559db3f923ecb172e Mon Sep 17 00:00:00 2001 From: Phillip Johnsen Date: Wed, 2 Mar 2016 16:04:05 +0100 Subject: [PATCH] Simplify test script definition in package.json As npm puts files from `./node_modules/.bin` in `$PATH` when running npm scripts, running bin commands from npm dependencies could be run directly, without a bin script deep inside `node_modules`. P.S. great editor you've made so far! --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index cf0ec7d93ec..d3277aae91b 100644 --- a/package.json +++ b/package.json @@ -11,7 +11,7 @@ "node": ">= 0.10.0 < 0.11.0" }, "scripts": { - "test": "node node_modules/mocha/bin/_mocha", + "test": "mocha", "preinstall": "node build/npm/preinstall.js", "postinstall": "npm --prefix extensions/vscode-api-tests/ install extensions/vscode-api-tests/ && npm --prefix extensions/json/ install extensions/json/ && npm --prefix extensions/typescript/ install extensions/typescript/" }, -- GitLab