-
-
Notifications
You must be signed in to change notification settings - Fork 195
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
sero
committed
Jul 2, 2024
1 parent
9f4cb92
commit d2cf5f7
Showing
5 changed files
with
20 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
import path from 'node:path' | ||
import fs from 'fs-extra' | ||
import { CACHE_DIR_NAME } from './constants' | ||
import appRoot from 'app-root-path' | ||
// import appRoot from 'app-root-path' | ||
|
||
export function ensureCacheDirExists() { | ||
const cacheDirPath = | ||
process.platform === 'win32' ? appRoot.resolve('/node_modules') : path.join(process.cwd(), CACHE_DIR_NAME) | ||
const cacheDirPath = path.join(process.cwd(), CACHE_DIR_NAME) | ||
console.log(cacheDirPath) | ||
fs.ensureDirSync(cacheDirPath) | ||
return cacheDirPath | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.