Skip to content

Commit

Permalink
consolidate resolveJsonModule rule into main tsconfig.json
Browse files Browse the repository at this point in the history
  • Loading branch information
jadeddelta committed Oct 19, 2024
1 parent db7bcf8 commit b420804
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
2 changes: 0 additions & 2 deletions packages/config/tsconfig.contrib.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,5 @@
// map jspsych-contrib package imports directly to their source files
"@jspsych-contrib/*": ["../*/src"]
},
// allow json resolving to automatically pull package.json info
"resolveJsonModule": true
}
}
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
}
}
4 changes: 3 additions & 1 deletion packages/config/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@
"skipLibCheck": true,
"forceConsistentCasingInFileNames": true,
"noEmit": true,
"isolatedModules": true // required by Sucrase
"isolatedModules": true, // required by Sucrase
// required for automatic package versioning and needed for transitive imports of jspsych)
"resolveJsonModule": true,
}
}

0 comments on commit b420804

Please sign in to comment.