let contrib repo import json files as modules

This commit is contained in:
jade 2024-09-22 19:02:07 -04:00
parent 6e345b8dbd
commit db7bcf82f6
2 changed files with 8 additions and 1 deletions

View File

@ -0,0 +1,5 @@
---
"@jspsych/config": patch
---
allow JSON resolution in contrib repository for usage of package.json in versioning

View File

@ -5,6 +5,8 @@
"paths": { "paths": {
// map jspsych-contrib package imports directly to their source files // map jspsych-contrib package imports directly to their source files
"@jspsych-contrib/*": ["../*/src"] "@jspsych-contrib/*": ["../*/src"]
} },
// allow json resolving to automatically pull package.json info
"resolveJsonModule": true
} }
} }