Skip to content

Commit

Permalink
testing2
Browse files Browse the repository at this point in the history
  • Loading branch information
antico5 committed Jan 9, 2025
1 parent 4f2f9c8 commit fd95d70
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion v-next/hardhat-utils/src/fs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ export async function getFileTrueCase(
): Promise<string> {
const dirEntries = await readdirOrEmpty(from);

const segments = relativePath.split(/\/|\\/);
const segments = relativePath.split(path.sep);
const nextDir = segments[0];
const nextDirLowerCase = nextDir.toLowerCase();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1554,7 +1554,9 @@ function resolveSubpath(
"resolve.exports should always return a result when package.exports exist",
);

return resolveOutput[0].slice(2); // skip the leading './'
const resolvedSubpath = resolveOutput[0].slice(2); // skip the leading './'

return resolvedSubpath.replace(/\/|\\/g, path.sep); // use fs path separator
} catch (error) {
ensureError(error, Error);

Expand Down

0 comments on commit fd95d70

Please sign in to comment.