Skip to content

Commit

Permalink
Merge pull request #3401 from jspsych/allow-json-contrib
Browse files Browse the repository at this point in the history
let contrib repo import json files as modules
  • Loading branch information
jodeleeuw authored Oct 29, 2024
2 parents 57c0da6 + 34c0e54 commit 18172a1
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
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
2 changes: 1 addition & 1 deletion packages/config/tsconfig.contrib.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@
"paths": {
// map jspsych-contrib package imports directly to their source files
"@jspsych-contrib/*": ["../*/src"]
}
},
}
}
2 changes: 0 additions & 2 deletions packages/config/tsconfig.core.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,5 @@
"jspsych": ["../jspsych/src"],
"@jspsych/*": ["../*/src"]
},
// allow resolving json modules in tests (needed for transitive imports of jspsych)
"resolveJsonModule": true
}
}
3 changes: 2 additions & 1 deletion packages/config/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
"skipLibCheck": true,
"forceConsistentCasingInFileNames": true,
"noEmit": true,
"isolatedModules": true // required by Sucrase
"isolatedModules": true, // required by Sucrase
"resolveJsonModule": true, // required for automatic package versioning and needed for transitive imports of jspsych
}
}

0 comments on commit 18172a1

Please sign in to comment.