Skip to content

Commit

Permalink
Revert "Fix module resolution with prettierPath setting (#3042)"
Browse files Browse the repository at this point in the history
This reverts commit d04b294.
  • Loading branch information
ntotten committed Jun 30, 2023
1 parent 07666fa commit f6ff18b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ All notable changes to the "prettier-vscode" extension will be documented in thi

<!-- Check [Keep a Changelog](https://keepachangelog.com/) for recommendations on how to structure this file. -->

## [9.19.0]

- Reverts change to `prettierPath` resolution. (#3045)

## [9.18.0]

- Support new config file types when using Prettier 3.0
Expand Down
2 changes: 1 addition & 1 deletion src/ModuleResolver.ts
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ export class ModuleResolver implements ModuleResolverInterface {
return pkgFilePath;
}
},
{ cwd: modulePath }
{ cwd: path.dirname(modulePath) }
);

if (!packageJsonPath) {
Expand Down

0 comments on commit f6ff18b

Please sign in to comment.