Skip to content
This repository has been archived by the owner on Jan 24, 2022. It is now read-only.

Use posix.relative() instead of path.relative() #1559

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions packages/cli/src/models/compiler/solidity/SourcesGatherer.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Loggy } from '@openzeppelin/upgrades';
import { dirname, isAbsolute, join, relative, resolve } from 'path';
import { dirname, isAbsolute, join, resolve, posix } from 'path';
import fs from 'fs';
import { promisify } from 'util';
import { getImports } from '../../../utils/solidity';
Expand Down Expand Up @@ -35,7 +35,7 @@ export async function gatherSources(rootContracts: string[], workingDir: string)

for (const contract of rootContracts) {
queue.push({
name: relative(workingDir, contract),
name: posix.relative(workingDir, contract),
url: resolve(workingDir, contract),
root: workingDir,
});
Expand Down