Skip to content

Commit

Permalink
Update prettier import syntax (#104)
Browse files Browse the repository at this point in the history
This fix imports all named prettier exports
as a single module according to the prettier
API documentation: https://prettier.io/docs/en/api.html

This is a potential fix for a module resolution issue
that causes a crash in some environments where
the default import causes "module" not being found.
  • Loading branch information
blomqma authored Nov 14, 2023
1 parent ec3041c commit 8ec9de5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/next-rest-framework/src/utils/open-api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import { merge, isEqualWith } from 'lodash';
import { getJsonSchema, getSchemaKeys } from './schemas';
import { existsSync, readdirSync, readFileSync, writeFileSync } from 'fs';
import chalk from 'chalk';
import prettier from 'prettier';
import * as prettier from 'prettier';

// Traverse the base path and find all nested files.
export const getNestedFiles = (basePath: string, dir: string): string[] => {
Expand Down

2 comments on commit 8ec9de5

@vercel
Copy link

@vercel vercel bot commented on 8ec9de5 Nov 14, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

next-rest-framework-demo – ./apps/example

next-rest-framework-demo.vercel.app
next-rest-framework-demo-git-main-blomqma.vercel.app
next-rest-framework-demo-blomqma.vercel.app

@vercel
Copy link

@vercel vercel bot commented on 8ec9de5 Nov 14, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

next-rest-framework – ./docs

next-rest-framework-git-main-blomqma.vercel.app
next-rest-framework-blomqma.vercel.app
next-rest-framework.vercel.app

Please sign in to comment.