Skip to content

Commit

Permalink
let contrib repo import json files as modules
Browse files Browse the repository at this point in the history
  • Loading branch information
jadeddelta committed Sep 22, 2024
1 parent 6e345b8 commit db7bcf8
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/eight-steaks-camp.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@jspsych/config": patch
---

allow JSON resolution in contrib repository for usage of package.json in versioning
4 changes: 3 additions & 1 deletion packages/config/tsconfig.contrib.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
"paths": {
// map jspsych-contrib package imports directly to their source files
"@jspsych-contrib/*": ["../*/src"]
}
},
// allow json resolving to automatically pull package.json info
"resolveJsonModule": true
}
}

0 comments on commit db7bcf8

Please sign in to comment.