Skip to content

Commit

Permalink
Add check for when options.filepath is undefined
Browse files Browse the repository at this point in the history
  • Loading branch information
farmerpaul authored Jan 12, 2023
1 parent 0be7f64 commit 037340a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/printer/multiline-array-printer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ function wrapInOriginalPrinterCall<T extends string = string>(
...(args.slice(2) as [any]),
);
if (
options.filepath &&
options.filepath.endsWith('package.json') &&
options.plugins.find(
(plugin) =>
Expand Down

0 comments on commit 037340a

Please sign in to comment.