Skip to content

Commit 0936e2a

Browse files
committed
incoming scripts override existint
1 parent cfe3550 commit 0936e2a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ async function buildPackageOptions (options = {}, pkg = {}) {
9696
opts.man = options.man || pkg.man
9797

9898
// Merge together scripts from opts and package.json
99-
opts.scripts = Object.assign({}, options.scripts || {}, pkg.scripts || {})
99+
opts.scripts = Object.assign({}, pkg.scripts || {}, options.scripts || {})
100100

101101
// Get name and scope, if not from options from cwd
102102
const {name, scope} = scopeAndName(options.scope, options.name || pkg.name, options.directory)

0 commit comments

Comments
 (0)