Skip to content
This repository has been archived by the owner on Oct 5, 2019. It is now read-only.

Commit

Permalink
chore: some dependency updates
Browse files Browse the repository at this point in the history
BREAKING CHANGE: updated modify-pkg-up which requires Node.js 8
  • Loading branch information
mightyiam committed Sep 29, 2019
1 parent d064ace commit 96a8d58
Show file tree
Hide file tree
Showing 4 changed files with 954 additions and 1,993 deletions.
10 changes: 5 additions & 5 deletions lib/index.js
Expand Up @@ -5,12 +5,12 @@ const addNpmScript = (name, script) => {
throw new TypeError('expected a string')
}

const modifierFn = (pkg) => {
if (!pkg.scripts) {
pkg.scripts = {}
const modifierFn = (pkgJson) => {
if (!pkgJson.scripts) {
pkgJson.scripts = {}
}
pkg.scripts[name] = script
return pkg
pkgJson.scripts[name] = script
return pkgJson
}

return modifyPkgUp(modifierFn)
Expand Down

0 comments on commit 96a8d58

Please sign in to comment.