diff --git a/index.js b/index.js index 50425ac..7d3f9ab 100644 --- a/index.js +++ b/index.js @@ -126,11 +126,10 @@ class UpdateNotifier { return this; } - options = { + options = Object.assign({ isGlobal: isInstalledGlobally(), - isYarnGlobal: isYarnGlobal()(), - ...options - }; + isYarnGlobal: isYarnGlobal()() + }, options); let installCommand; diff --git a/package.json b/package.json index 5d3edf8..3e97652 100644 --- a/package.json +++ b/package.json @@ -53,5 +53,10 @@ "mock-require": "^3.0.3", "strip-ansi": "^5.2.0", "xo": "^0.24.0" + }, + "xo": { + "rules": { + "prefer-object-spread": 0 + } } }