Skip to content

Commit 34535e5

Browse files
authored
feat: add nodeLinker to yarnrc (#496)
### Description Of Changes Applied `nodeLinker: node-modules` to yarnrc config as a temporal workaround to fix a ts-pattern type casting issue (only happened in VSCode).
1 parent 765a8ea commit 34535e5

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

.yarnrc.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@ plugins:
33
spec: "@yarnpkg/plugin-version"
44

55
yarnPath: .yarn/releases/yarn-3.5.0.cjs
6+
nodeLinker: node-modules

src/lib/dux/sdk/reducers.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,5 +32,5 @@ export default function reducer(state: SdkStoreStateType, action: SdkActionTypes
3232
})
3333
.otherwise(() => {
3434
return state;
35-
}) as SdkStoreStateType;
35+
});
3636
}

src/lib/dux/user/reducers.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,5 @@ export default function reducer(state: UserStoreStateType, action: UserActionTyp
2222
})
2323
.otherwise(() => {
2424
return state;
25-
}) as UserStoreStateType;
25+
});
2626
}

0 commit comments

Comments
 (0)