Skip to content

Commit

Permalink
Bump version
Browse files Browse the repository at this point in the history
Also removes the unnecessary ??= assignment to prettierOptions, the value can
just be null.
  • Loading branch information
mogzol committed Nov 29, 2024
1 parent d13f737 commit db37676
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
6 changes: 2 additions & 4 deletions generator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -246,11 +246,9 @@ generatorHandler({
throw new Error("Unable import Prettier. Is it installed?");
}

let prettierOptions = config.resolvePrettierConfig
const prettierOptions = config.resolvePrettierConfig
? await prettier.resolveConfig(outputFile)
: {};

prettierOptions ??= {};
: null;

ts = await prettier.format(ts, { ...prettierOptions, parser: "typescript" });
}
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "prisma-generator-typescript-interfaces",
"version": "1.6.1",
"version": "1.7.0",
"description": "Generate zero-dependency Typescript interfaces from Prisma schema",
"author": "Morgan Zolob",
"license": "MIT",
Expand Down

0 comments on commit db37676

Please sign in to comment.