Skip to content

Commit

Permalink
fix: check optional parameter (#5)
Browse files Browse the repository at this point in the history
Co-authored-by: m.onohara <m.onohara@micro-wave.net>
  • Loading branch information
masahirompp and KDxCBdP7 committed Nov 24, 2020
1 parent 7e358da commit 06542ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/packagers/yarn.ts
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ export class Yarn implements Packager {
const args = [ 'install', '--frozen-lockfile', '--non-interactive' ];

// Convert supported packagerOptions
if (packagerOptions.ignoreScripts) {
if (packagerOptions?.ignoreScripts) {
args.push('--ignore-scripts');
}

Expand Down

0 comments on commit 06542ba

Please sign in to comment.