Skip to content
This repository was archived by the owner on Aug 7, 2021. It is now read-only.

fix(update-ns-webpack): make it possible to call as executable #347

Merged
merged 2 commits into from
Dec 12, 2017
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion bin/update-ns-webpack
Original file line number Diff line number Diff line change
Expand Up @@ -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 ]
Expand Down