From b420804203121a4ac13757333b03c5ebd87a12c9 Mon Sep 17 00:00:00 2001 From: jade <101148768+jadeddelta@users.noreply.github.com> Date: Sat, 19 Oct 2024 18:20:55 -0400 Subject: [PATCH] consolidate resolveJsonModule rule into main tsconfig.json --- packages/config/tsconfig.contrib.json | 2 -- packages/config/tsconfig.core.json | 2 -- packages/config/tsconfig.json | 4 +++- 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/packages/config/tsconfig.contrib.json b/packages/config/tsconfig.contrib.json index 14ee6b2aa2..eff2ae1ded 100644 --- a/packages/config/tsconfig.contrib.json +++ b/packages/config/tsconfig.contrib.json @@ -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 } } diff --git a/packages/config/tsconfig.core.json b/packages/config/tsconfig.core.json index b2be38c9b3..88b63087cf 100644 --- a/packages/config/tsconfig.core.json +++ b/packages/config/tsconfig.core.json @@ -7,7 +7,5 @@ "jspsych": ["../jspsych/src"], "@jspsych/*": ["../*/src"] }, - // allow resolving json modules in tests (needed for transitive imports of jspsych) - "resolveJsonModule": true } } diff --git a/packages/config/tsconfig.json b/packages/config/tsconfig.json index 8446400eb8..0af57f7749 100644 --- a/packages/config/tsconfig.json +++ b/packages/config/tsconfig.json @@ -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, } }