Skip to content

Commit

Permalink
Use fs instead of path
Browse files Browse the repository at this point in the history
  • Loading branch information
Lee Staples committed Apr 11, 2022
1 parent dcb55ca commit 2cd8a3d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ export const handler = async ({ force, install }) => {
task.skip("Looks like your're not using VS Code")
} else {
let originalExtensionsJson = { recommendations: [] }
if (path.existsSync(VS_CODE_EXTENSIONS_PATH)) {
if (fs.existsSync(VS_CODE_EXTENSIONS_PATH)) {
const originalExtensionsFile = fs.readFileSync(
VS_CODE_EXTENSIONS_PATH,
'utf-8'
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/src/lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -475,5 +475,5 @@ export const getDefaultArgs = (builder) => {
export const usingVSCode = () => {
const redwoodPaths = getPaths()
const VS_CODE_PATH = path.join(redwoodPaths.base, '.vscode')
return path.existsSync(VS_CODE_PATH)
return fs.existsSync(VS_CODE_PATH)
}

0 comments on commit 2cd8a3d

Please sign in to comment.