From dafc8e00d9dc8937fd14bfcda84a75fa8fca2db4 Mon Sep 17 00:00:00 2001 From: sis0k0 Date: Tue, 12 Dec 2017 16:54:19 +0200 Subject: [PATCH] fix(update-ns-webpack): make it possible to call as executable --- bin/update-ns-webpack | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/update-ns-webpack b/bin/update-ns-webpack index 84611250..286cec96 100755 --- a/bin/update-ns-webpack +++ b/bin/update-ns-webpack @@ -2,7 +2,7 @@ const update = require("../verify/update"); -const { original: npmArgs = [] } = JSON.parse(process.env.npm_config_argv || {}); +const { original: npmArgs = [] } = JSON.parse(process.env.npm_config_argv || "{}"); const [, , ...processArgs ] = process.argv; const flags = [ ...npmArgs, ...processArgs ]