From 8997826868bf7b8ca18506ac876de7b2515e2749 Mon Sep 17 00:00:00 2001 From: Sam Reid Date: Fri, 20 Sep 2024 10:38:09 -0600 Subject: [PATCH] Convert tsconfig to use project references, see https://github.com/phetsims/chipper/issues/1356 --- package.json | 14 +++++++++++++- tsconfig.json | 7 ++++++- 2 files changed, 19 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index c7998c7..a218e26 100644 --- a/package.json +++ b/package.json @@ -21,6 +21,18 @@ "published": true }, "eslintConfig": { - "extends": "../chipper/eslint/sim_eslintrc.js" + "extends": "../chipper/eslint/sim_eslintrc.js", + "overrides": [ + { + "files": [ + "**/*.ts" + ], + "parserOptions": { + "project": [ + "../trig-tour/tsconfig.json" + ] + } + } + ] } } \ No newline at end of file diff --git a/tsconfig.json b/tsconfig.json index adcfd83..e4ff21a 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -5,5 +5,10 @@ "images/**/*", "mipmaps/**/*", "sounds/**/*" + ], + "references": [ + { + "path": "../chipper/tsconfig/buildjson" + } ] -} \ No newline at end of file +}