diff --git a/.chronus/changes/fix-watch-build-2026-1-6-15-45-30.md b/.chronus/changes/fix-watch-build-2026-1-6-15-45-30.md new file mode 100644 index 00000000000..75ae9eaa313 --- /dev/null +++ b/.chronus/changes/fix-watch-build-2026-1-6-15-45-30.md @@ -0,0 +1,28 @@ +--- +# Change versionKind to one of: internal, fix, dependencies, feature, deprecation, breaking +changeKind: internal +packages: + - "@typespec/asset-emitter" + - "@typespec/bundler" + - "@typespec/eslint-plugin" + - "@typespec/events" + - "@typespec/html-program-viewer" + - "@typespec/http-server-csharp" + - "@typespec/http-server-js" + - "@typespec/http-specs" + - "@typespec/http" + - "@typespec/json-schema" + - "@typespec/library-linter" + - "@typespec/openapi" + - "@typespec/openapi3" + - "@typespec/playground" + - "@typespec/protobuf" + - "@typespec/rest" + - "@typespec/spector" + - "@typespec/sse" + - "@typespec/streams" + - "@typespec/versioning" + - "@typespec/xml" +--- + +Fix watch build diff --git a/packages/asset-emitter/tsconfig.build.json b/packages/asset-emitter/tsconfig.build.json index fb1f25450a4..11aa6998bf5 100644 --- a/packages/asset-emitter/tsconfig.build.json +++ b/packages/asset-emitter/tsconfig.build.json @@ -1,4 +1,5 @@ { "extends": "./tsconfig.json", - "include": ["src/**/*.ts", "test/**/*.ts"] + "include": ["src/**/*.ts", "test/**/*.ts"], + "references": [{ "path": "../compiler/tsconfig.build.json" }] } diff --git a/packages/best-practices/tsconfig.build.json b/packages/best-practices/tsconfig.build.json index fb1f25450a4..11aa6998bf5 100644 --- a/packages/best-practices/tsconfig.build.json +++ b/packages/best-practices/tsconfig.build.json @@ -1,4 +1,5 @@ { "extends": "./tsconfig.json", - "include": ["src/**/*.ts", "test/**/*.ts"] + "include": ["src/**/*.ts", "test/**/*.ts"], + "references": [{ "path": "../compiler/tsconfig.build.json" }] } diff --git a/packages/bundler/tsconfig.build.json b/packages/bundler/tsconfig.build.json index fb1f25450a4..6d0b8475eae 100644 --- a/packages/bundler/tsconfig.build.json +++ b/packages/bundler/tsconfig.build.json @@ -1,4 +1,8 @@ { "extends": "./tsconfig.json", - "include": ["src/**/*.ts", "test/**/*.ts"] + "include": ["src/**/*.ts", "test/**/*.ts"], + "references": [ + { "path": "../compiler/tsconfig.build.json" }, + { "path": "../rest/tsconfig.build.json" } + ] } diff --git a/packages/eslint-plugin-typespec/tsconfig.build.json b/packages/eslint-plugin-typespec/tsconfig.build.json index fb1f25450a4..33eafb056f2 100644 --- a/packages/eslint-plugin-typespec/tsconfig.build.json +++ b/packages/eslint-plugin-typespec/tsconfig.build.json @@ -1,4 +1,9 @@ { "extends": "./tsconfig.json", - "include": ["src/**/*.ts", "test/**/*.ts"] + "include": ["src/**/*.ts", "test/**/*.ts"], + "references": [ + { "path": "../compiler/tsconfig.build.json" }, + { "path": "../rest/tsconfig.build.json" }, + { "path": "../openapi/tsconfig.build.json" } + ] } diff --git a/packages/events/tsconfig.build.json b/packages/events/tsconfig.build.json index 5ce3e2e8042..85c215d455c 100644 --- a/packages/events/tsconfig.build.json +++ b/packages/events/tsconfig.build.json @@ -1,4 +1,5 @@ { "extends": "./tsconfig.json", - "include": ["src/**/*.ts", "generated-defs/**/*.ts", "test/**/*.ts"] + "include": ["src/**/*.ts", "generated-defs/**/*.ts", "test/**/*.ts"], + "references": [{ "path": "../compiler/tsconfig.build.json" }] } diff --git a/packages/html-program-viewer/tsconfig.build.json b/packages/html-program-viewer/tsconfig.build.json index 1a299431f9d..f34cd970576 100644 --- a/packages/html-program-viewer/tsconfig.build.json +++ b/packages/html-program-viewer/tsconfig.build.json @@ -1,5 +1,6 @@ { "extends": "./tsconfig.json", "include": ["src"], - "exclude": ["src/index.ts", "src/emitter.ts", "**/*.test.ts", "**/*.test.tsx"] + "exclude": ["src/index.ts", "src/emitter.ts", "**/*.test.ts", "**/*.test.tsx"], + "references": [{ "path": "../compiler/tsconfig.build.json" }] } diff --git a/packages/http-server-csharp/tsconfig.build.json b/packages/http-server-csharp/tsconfig.build.json index 5ce3e2e8042..c2340b48346 100644 --- a/packages/http-server-csharp/tsconfig.build.json +++ b/packages/http-server-csharp/tsconfig.build.json @@ -1,4 +1,10 @@ { "extends": "./tsconfig.json", - "include": ["src/**/*.ts", "generated-defs/**/*.ts", "test/**/*.ts"] + "include": ["src/**/*.ts", "generated-defs/**/*.ts", "test/**/*.ts"], + "references": [ + { "path": "../compiler/tsconfig.build.json" }, + { "path": "../http/tsconfig.build.json" }, + { "path": "../rest/tsconfig.build.json" }, + { "path": "../versioning/tsconfig.build.json" } + ] } diff --git a/packages/http-server-js/tsconfig.json b/packages/http-server-js/tsconfig.json index ddead51353a..663788e7095 100644 --- a/packages/http-server-js/tsconfig.json +++ b/packages/http-server-js/tsconfig.json @@ -1,6 +1,6 @@ { "extends": "../../tsconfig.base.json", - "references": [{ "path": "../compiler/tsconfig.json" }], + "references": [{ "path": "../compiler/tsconfig.build.json" }], "compilerOptions": { "outDir": "dist", "rootDir": ".", diff --git a/packages/http-specs/tsconfig.build.json b/packages/http-specs/tsconfig.build.json index 39fcac33789..b4079ce75de 100644 --- a/packages/http-specs/tsconfig.build.json +++ b/packages/http-specs/tsconfig.build.json @@ -1,8 +1,4 @@ { "extends": "./tsconfig.json", - "references": [ - { "path": "../spec-api/tsconfig.build.json" }, - { "path": "../spector/tsconfig.build.json" } - ], "exclude": ["**/*.test.*", "test/**/*"] } diff --git a/packages/http/tsconfig.build.json b/packages/http/tsconfig.build.json index 146f6adae6e..85eae94819a 100644 --- a/packages/http/tsconfig.build.json +++ b/packages/http/tsconfig.build.json @@ -1,5 +1,6 @@ { "extends": "./tsconfig.json", "include": ["src/**/*.ts", "generated-defs/**/*.ts"], - "exclude": ["**/*.test.*"] + "exclude": ["**/*.test.*"], + "references": [{ "path": "../compiler/tsconfig.build.json" }] } diff --git a/packages/json-schema/tsconfig.build.json b/packages/json-schema/tsconfig.build.json index 5ce3e2e8042..85c215d455c 100644 --- a/packages/json-schema/tsconfig.build.json +++ b/packages/json-schema/tsconfig.build.json @@ -1,4 +1,5 @@ { "extends": "./tsconfig.json", - "include": ["src/**/*.ts", "generated-defs/**/*.ts", "test/**/*.ts"] + "include": ["src/**/*.ts", "generated-defs/**/*.ts", "test/**/*.ts"], + "references": [{ "path": "../compiler/tsconfig.build.json" }] } diff --git a/packages/library-linter/tsconfig.build.json b/packages/library-linter/tsconfig.build.json index fb1f25450a4..33eafb056f2 100644 --- a/packages/library-linter/tsconfig.build.json +++ b/packages/library-linter/tsconfig.build.json @@ -1,4 +1,9 @@ { "extends": "./tsconfig.json", - "include": ["src/**/*.ts", "test/**/*.ts"] + "include": ["src/**/*.ts", "test/**/*.ts"], + "references": [ + { "path": "../compiler/tsconfig.build.json" }, + { "path": "../rest/tsconfig.build.json" }, + { "path": "../openapi/tsconfig.build.json" } + ] } diff --git a/packages/openapi/tsconfig.build.json b/packages/openapi/tsconfig.build.json index 5ce3e2e8042..697ef13c178 100644 --- a/packages/openapi/tsconfig.build.json +++ b/packages/openapi/tsconfig.build.json @@ -1,4 +1,8 @@ { "extends": "./tsconfig.json", - "include": ["src/**/*.ts", "generated-defs/**/*.ts", "test/**/*.ts"] + "include": ["src/**/*.ts", "generated-defs/**/*.ts", "test/**/*.ts"], + "references": [ + { "path": "../compiler/tsconfig.build.json" }, + { "path": "../rest/tsconfig.build.json" } + ] } diff --git a/packages/openapi3/tsconfig.build.json b/packages/openapi3/tsconfig.build.json index 5ce3e2e8042..68674436ff6 100644 --- a/packages/openapi3/tsconfig.build.json +++ b/packages/openapi3/tsconfig.build.json @@ -1,4 +1,9 @@ { "extends": "./tsconfig.json", - "include": ["src/**/*.ts", "generated-defs/**/*.ts", "test/**/*.ts"] + "include": ["src/**/*.ts", "generated-defs/**/*.ts", "test/**/*.ts"], + "references": [ + { "path": "../compiler/tsconfig.build.json" }, + { "path": "../http/tsconfig.build.json" }, + { "path": "../openapi/tsconfig.build.json" } + ] } diff --git a/packages/pack/tsconfig.build.json b/packages/pack/tsconfig.build.json index 56fd5680629..02c3b6aa556 100644 --- a/packages/pack/tsconfig.build.json +++ b/packages/pack/tsconfig.build.json @@ -1,4 +1,5 @@ { "extends": "./tsconfig.json", - "include": ["src/**/*.ts"] + "include": ["src/**/*.ts"], + "references": [{ "path": "../compiler/tsconfig.build.json" }] } diff --git a/packages/playground/tsconfig.build.json b/packages/playground/tsconfig.build.json index bf79f225ebd..f63c854c721 100644 --- a/packages/playground/tsconfig.build.json +++ b/packages/playground/tsconfig.build.json @@ -1,5 +1,6 @@ // tsconfig for building the playground { "extends": "./tsconfig.json", - "include": ["src/**/*.{ts,tsx}", ".storybook/**/*.{ts,tsx}", "definitions/*.d.ts"] + "include": ["src/**/*.{ts,tsx}", ".storybook/**/*.{ts,tsx}", "definitions/*.d.ts"], + "references": [{ "path": "../compiler/tsconfig.build.json" }] } diff --git a/packages/protobuf/tsconfig.build.json b/packages/protobuf/tsconfig.build.json index 5ce3e2e8042..85c215d455c 100644 --- a/packages/protobuf/tsconfig.build.json +++ b/packages/protobuf/tsconfig.build.json @@ -1,4 +1,5 @@ { "extends": "./tsconfig.json", - "include": ["src/**/*.ts", "generated-defs/**/*.ts", "test/**/*.ts"] + "include": ["src/**/*.ts", "generated-defs/**/*.ts", "test/**/*.ts"], + "references": [{ "path": "../compiler/tsconfig.build.json" }] } diff --git a/packages/rest/tsconfig.build.json b/packages/rest/tsconfig.build.json index 5ce3e2e8042..b51f88471c8 100644 --- a/packages/rest/tsconfig.build.json +++ b/packages/rest/tsconfig.build.json @@ -1,4 +1,8 @@ { "extends": "./tsconfig.json", - "include": ["src/**/*.ts", "generated-defs/**/*.ts", "test/**/*.ts"] + "include": ["src/**/*.ts", "generated-defs/**/*.ts", "test/**/*.ts"], + "references": [ + { "path": "../compiler/tsconfig.build.json" }, + { "path": "../http/tsconfig.build.json" } + ] } diff --git a/packages/samples/tsconfig.build.json b/packages/samples/tsconfig.build.json index 37bd452b757..8c41e37437f 100644 --- a/packages/samples/tsconfig.build.json +++ b/packages/samples/tsconfig.build.json @@ -1,4 +1,8 @@ { "extends": "./tsconfig.json", - "include": ["specs/rest-metadata-emitter/**/*.ts", "src/**/*.ts", "test/**/*.ts"] + "include": ["specs/rest-metadata-emitter/**/*.ts", "src/**/*.ts", "test/**/*.ts"], + "references": [ + { "path": "../compiler/tsconfig.build.json" }, + { "path": "../rest/tsconfig.build.json" } + ] } diff --git a/packages/spector/tsconfig.build.json b/packages/spector/tsconfig.build.json index 0085c31c291..6bc74ef7a9a 100644 --- a/packages/spector/tsconfig.build.json +++ b/packages/spector/tsconfig.build.json @@ -4,10 +4,7 @@ "outDir": "dist", "tsBuildInfoFile": "temp/.tsbuildinfo" }, - "references": [ - { "path": "../spec-api/tsconfig.build.json" }, - { "path": "../spec-coverage-sdk/tsconfig.build.json" } - ], + "references": [], "include": ["src/**/*.ts", "generated-defs/**/*.ts"], "exclude": ["**/*.test.*"] } diff --git a/packages/sse/tsconfig.build.json b/packages/sse/tsconfig.build.json index 5ce3e2e8042..85c215d455c 100644 --- a/packages/sse/tsconfig.build.json +++ b/packages/sse/tsconfig.build.json @@ -1,4 +1,5 @@ { "extends": "./tsconfig.json", - "include": ["src/**/*.ts", "generated-defs/**/*.ts", "test/**/*.ts"] + "include": ["src/**/*.ts", "generated-defs/**/*.ts", "test/**/*.ts"], + "references": [{ "path": "../compiler/tsconfig.build.json" }] } diff --git a/packages/standalone/tsconfig.build.json b/packages/standalone/tsconfig.build.json index 5ce3e2e8042..85c215d455c 100644 --- a/packages/standalone/tsconfig.build.json +++ b/packages/standalone/tsconfig.build.json @@ -1,4 +1,5 @@ { "extends": "./tsconfig.json", - "include": ["src/**/*.ts", "generated-defs/**/*.ts", "test/**/*.ts"] + "include": ["src/**/*.ts", "generated-defs/**/*.ts", "test/**/*.ts"], + "references": [{ "path": "../compiler/tsconfig.build.json" }] } diff --git a/packages/streams/tsconfig.build.json b/packages/streams/tsconfig.build.json index 5ce3e2e8042..85c215d455c 100644 --- a/packages/streams/tsconfig.build.json +++ b/packages/streams/tsconfig.build.json @@ -1,4 +1,5 @@ { "extends": "./tsconfig.json", - "include": ["src/**/*.ts", "generated-defs/**/*.ts", "test/**/*.ts"] + "include": ["src/**/*.ts", "generated-defs/**/*.ts", "test/**/*.ts"], + "references": [{ "path": "../compiler/tsconfig.build.json" }] } diff --git a/packages/versioning/tsconfig.build.json b/packages/versioning/tsconfig.build.json index 5ce3e2e8042..697ef13c178 100644 --- a/packages/versioning/tsconfig.build.json +++ b/packages/versioning/tsconfig.build.json @@ -1,4 +1,8 @@ { "extends": "./tsconfig.json", - "include": ["src/**/*.ts", "generated-defs/**/*.ts", "test/**/*.ts"] + "include": ["src/**/*.ts", "generated-defs/**/*.ts", "test/**/*.ts"], + "references": [ + { "path": "../compiler/tsconfig.build.json" }, + { "path": "../rest/tsconfig.build.json" } + ] } diff --git a/packages/xml/tsconfig.build.json b/packages/xml/tsconfig.build.json index 5ce3e2e8042..85c215d455c 100644 --- a/packages/xml/tsconfig.build.json +++ b/packages/xml/tsconfig.build.json @@ -1,4 +1,5 @@ { "extends": "./tsconfig.json", - "include": ["src/**/*.ts", "generated-defs/**/*.ts", "test/**/*.ts"] + "include": ["src/**/*.ts", "generated-defs/**/*.ts", "test/**/*.ts"], + "references": [{ "path": "../compiler/tsconfig.build.json" }] } diff --git a/tsconfig.ws.json b/tsconfig.ws.json index ac9d05b561b..57204acadb4 100644 --- a/tsconfig.ws.json +++ b/tsconfig.ws.json @@ -27,7 +27,7 @@ { "path": "packages/json-schema/tsconfig.build.json" }, { "path": "packages/best-practices/tsconfig.build.json" }, { "path": "packages/xml/tsconfig.build.json" }, - { "path": "packages/http-server-js/tsconfig.json" }, + { "path": "./packages/http-server-js/tsconfig.json" }, { "path": "packages/http-server-csharp/tsconfig.build.json" }, { "path": "packages/astro-utils/tsconfig.build.json" } ],