Skip to content
Merged
Changes from 1 commit
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
Prev Previous commit
Use path.resolve
  • Loading branch information
sosukesuzuki committed Jul 16, 2022
commit c5b20630b8c6b71eb91733959f9aea185c6bd390
4 changes: 1 addition & 3 deletions src/cli/find-cache-file.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,7 @@ function findDefaultCacheFile() {
}

async function findCacheFileFromOption(cacheLocation) {
const cwd = process.cwd();
const normalized = path.normalize(cacheLocation);
const cacheFile = path.join(cwd, normalized);
const cacheFile = path.resolve(cacheLocation);

const stat = await statSafe(cacheFile);
if (stat) {
Expand Down