Skip to content

Commit 7a88f82

Browse files
committed
chore: resolve the package to its sources in type checks
Stories import the sandboxes, which import react-chartjs-2 by name: without an install of the sandboxes, as in CI, tsc maps the name to the sources.
1 parent 8d44ae2 commit 7a88f82

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

‎tsconfig.json‎

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,12 @@
66
"types": [
77
"node",
88
"@testing-library/jest-dom/vitest"
9-
]
9+
],
10+
"paths": {
11+
"react-chartjs-2": [
12+
"./src/index.ts"
13+
]
14+
}
1015
},
1116
"include": [
1217
"src",

0 commit comments

Comments
 (0)