mirror of
https://github.com/jspsych/jsPsych.git
synced 2025-05-10 11:10:54 +00:00
Merge pull request #3401 from jspsych/allow-json-contrib
let contrib repo import json files as modules
This commit is contained in:
commit
18172a13a2
5
.changeset/eight-steaks-camp.md
Normal file
5
.changeset/eight-steaks-camp.md
Normal file
@ -0,0 +1,5 @@
|
||||
---
|
||||
"@jspsych/config": patch
|
||||
---
|
||||
|
||||
allow JSON resolution in contrib repository for usage of package.json in versioning
|
@ -5,6 +5,6 @@
|
||||
"paths": {
|
||||
// map jspsych-contrib package imports directly to their source files
|
||||
"@jspsych-contrib/*": ["../*/src"]
|
||||
}
|
||||
},
|
||||
}
|
||||
}
|
||||
|
@ -7,7 +7,5 @@
|
||||
"jspsych": ["../jspsych/src"],
|
||||
"@jspsych/*": ["../*/src"]
|
||||
},
|
||||
// allow resolving json modules in tests (needed for transitive imports of jspsych)
|
||||
"resolveJsonModule": true
|
||||
}
|
||||
}
|
||||
|
@ -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
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user