From ba21cdc3a87569429f3bafe9a499d55f0ae0cbf4 Mon Sep 17 00:00:00 2001 From: Chris Manson Date: Thu, 30 Jan 2025 10:25:17 +0000 Subject: [PATCH] move scenarios to a TS sub-project --- tests/scenarios/.gitignore | 3 ++- tests/scenarios/tsconfig.json | 11 +++++++++++ tsconfig.json | 5 ++--- 3 files changed, 15 insertions(+), 4 deletions(-) create mode 100644 tests/scenarios/tsconfig.json diff --git a/tests/scenarios/.gitignore b/tests/scenarios/.gitignore index 0a288ffc1..1eb1f9d24 100644 --- a/tests/scenarios/.gitignore +++ b/tests/scenarios/.gitignore @@ -1,3 +1,4 @@ +dist/ **/*.js **/*d.ts -**/*.js.map \ No newline at end of file +**/*.js.map diff --git a/tests/scenarios/tsconfig.json b/tests/scenarios/tsconfig.json new file mode 100644 index 000000000..1f3eeea91 --- /dev/null +++ b/tests/scenarios/tsconfig.json @@ -0,0 +1,11 @@ +{ + "include": [ + "./*.ts", + "./helpers/*.ts", + ], + "extends": "../../tsconfig-base.json", + "compilerOptions": { + "composite": true, + "outDir": "dist" + }, +} diff --git a/tsconfig.json b/tsconfig.json index 3a07d3a47..52f31f87c 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -4,7 +4,6 @@ "./packages/*/tests/**/*.ts", "./test-packages/support/**/*.ts", "./test-packages/release/src/**/*.ts", - "./tests/scenarios/**/*.ts" ], "extends": "./tsconfig-base.json", "exclude": [ @@ -16,13 +15,13 @@ "test-packages/*/dist", "test-packages/*/node_modules", "tmp", - "tests/scenarios/output", "packages/config-meta-loader/src", "packages/router/src", "packages/vite" ], "references": [ { "path": "packages/config-meta-loader" }, - { "path": "packages/vite" } + { "path": "packages/vite" }, + { "path": "tests/scenarios" } ] }