Skip to content

Commit 59324ce

Browse files
authored
refactor: simplify compile function by removing projectRoot parameter… (#1080)
1 parent d7befd5 commit 59324ce

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/snap/src/watcher.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ export class Watcher {
6262
return
6363
}
6464

65-
const config = await getStepConfig(path, this.dir).catch((err) => console.error(err))
65+
const config = await getStepConfig(path, this.lockedData.baseDir).catch((err) => console.error(err))
6666

6767
if (!config) {
6868
return
@@ -79,7 +79,7 @@ export class Watcher {
7979
invalidate(path)
8080
}
8181

82-
const config = await getStepConfig(path, this.dir).catch((err) => {
82+
const config = await getStepConfig(path, this.lockedData.baseDir).catch((err) => {
8383
console.error(err)
8484
})
8585

0 commit comments

Comments
 (0)