mirror of
https://github.com/jspsych/jsPsych.git
synced 2025-05-10 11:10:54 +00:00
Let TypeScript resolve JSON files in jspsych
package
This commit is contained in:
parent
7ab1734ac6
commit
1375339f63
@ -7,8 +7,7 @@
|
||||
"jspsych": ["../jspsych/src"],
|
||||
"@jspsych/*": ["../*/src"]
|
||||
},
|
||||
// allow resolving json modules in tests (needed for transitive imports of jspsych in tests;
|
||||
// the jspsych package itself uses https://stackoverflow.com/a/61426303 instead)
|
||||
// allow resolving json modules in tests (needed for transitive imports of jspsych)
|
||||
"resolveJsonModule": true
|
||||
}
|
||||
}
|
||||
|
1
packages/jspsych/global.d.ts
vendored
1
packages/jspsych/global.d.ts
vendored
@ -1 +0,0 @@
|
||||
declare module "*.json"; // https://stackoverflow.com/a/61426303
|
@ -1,8 +1,7 @@
|
||||
{
|
||||
"extends": "@jspsych/config/tsconfig.core.json",
|
||||
"compilerOptions": {
|
||||
"baseUrl": ".",
|
||||
"resolveJsonModule": false // using https://stackoverflow.com/a/61426303 instead
|
||||
"baseUrl": "."
|
||||
},
|
||||
"include": ["src", "tests", "global.d.ts"]
|
||||
"include": ["src", "tests", "package.json"]
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user