Skip to content

Commit db7bcf8

Browse files
committed
let contrib repo import json files as modules
1 parent 6e345b8 commit db7bcf8

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

.changeset/eight-steaks-camp.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@jspsych/config": patch
3+
---
4+
5+
allow JSON resolution in contrib repository for usage of package.json in versioning

packages/config/tsconfig.contrib.json

+3-1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
"paths": {
66
// map jspsych-contrib package imports directly to their source files
77
"@jspsych-contrib/*": ["../*/src"]
8-
}
8+
},
9+
// allow json resolving to automatically pull package.json info
10+
"resolveJsonModule": true
911
}
1012
}

0 commit comments

Comments
 (0)