Merge pull request #3401 from jspsych/allow-json-contrib

let contrib repo import json files as modules
This commit is contained in:
Josh de Leeuw 2024-10-29 14:48:55 -04:00 committed by GitHub
commit 18172a13a2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 8 additions and 4 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,6 @@
"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"]
} },
} }
} }

View File

@ -7,7 +7,5 @@
"jspsych": ["../jspsych/src"], "jspsych": ["../jspsych/src"],
"@jspsych/*": ["../*/src"] "@jspsych/*": ["../*/src"]
}, },
// allow resolving json modules in tests (needed for transitive imports of jspsych)
"resolveJsonModule": true
} }
} }

View File

@ -16,6 +16,7 @@
"skipLibCheck": true, "skipLibCheck": true,
"forceConsistentCasingInFileNames": true, "forceConsistentCasingInFileNames": true,
"noEmit": 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
} }
} }