Skip to content

Commit 81a10c5

Browse files
committed
Don't print directory change if setProjectRoot is the same dir
1 parent 210e9d1 commit 81a10c5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

npm-app/src/project-files.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ let projectRoot: string
7979

8080
export function setProjectRoot(dir: string, setCwd: boolean = false) {
8181
if (existsSync(dir)) {
82-
if (projectRoot) {
82+
if (projectRoot && projectRoot !== dir) {
8383
checkpointManager.clearCheckpoints(true)
8484

8585
console.log(

0 commit comments

Comments
 (0)