Skip to content

Commit

Permalink
Add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
ehmicky committed Feb 27, 2022
1 parent e4b4f53 commit dc0ad1a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/config/normalize/cwd.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ import { has } from './lib/prop_path/get.js'
// repository could be re-used for different cwd
// - user can opt-out of that behavior by using absolute file paths, for
// example using the current file's path (e.g. `import.meta.url`)
// We purposely use `originalPath` instead of `path` to ensure this works even
// if the property is normalized.
export const getPropCwd = function (configInfos, { originalPath }) {
const configInfo = configInfos.find(({ configContents }) =>
has(configContents, originalPath),
Expand Down

0 comments on commit dc0ad1a

Please sign in to comment.