Skip to content

Commit f8fb3c3

Browse files
Fix watch build (#9605)
unfortunatelly with teh new split to tsconfig.build.json we need to duplicate references for it to work The reason is we need the tsconfig.json reference to other tsconfig.json for eslint and we need tsconfig.build.json to other tsconfig.build.json. If it reference to tsconfig.json like it difd with extends it then tries to build things it shouldn't in watch mode
1 parent d52c247 commit f8fb3c3

File tree

27 files changed

+107
-32
lines changed

27 files changed

+107
-32
lines changed
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
---
2+
# Change versionKind to one of: internal, fix, dependencies, feature, deprecation, breaking
3+
changeKind: internal
4+
packages:
5+
- "@typespec/asset-emitter"
6+
- "@typespec/bundler"
7+
- "@typespec/eslint-plugin"
8+
- "@typespec/events"
9+
- "@typespec/html-program-viewer"
10+
- "@typespec/http-server-csharp"
11+
- "@typespec/http-server-js"
12+
- "@typespec/http-specs"
13+
- "@typespec/http"
14+
- "@typespec/json-schema"
15+
- "@typespec/library-linter"
16+
- "@typespec/openapi"
17+
- "@typespec/openapi3"
18+
- "@typespec/playground"
19+
- "@typespec/protobuf"
20+
- "@typespec/rest"
21+
- "@typespec/spector"
22+
- "@typespec/sse"
23+
- "@typespec/streams"
24+
- "@typespec/versioning"
25+
- "@typespec/xml"
26+
---
27+
28+
Fix watch build
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
22
"extends": "./tsconfig.json",
3-
"include": ["src/**/*.ts", "test/**/*.ts"]
3+
"include": ["src/**/*.ts", "test/**/*.ts"],
4+
"references": [{ "path": "../compiler/tsconfig.build.json" }]
45
}
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
22
"extends": "./tsconfig.json",
3-
"include": ["src/**/*.ts", "test/**/*.ts"]
3+
"include": ["src/**/*.ts", "test/**/*.ts"],
4+
"references": [{ "path": "../compiler/tsconfig.build.json" }]
45
}
Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
{
22
"extends": "./tsconfig.json",
3-
"include": ["src/**/*.ts", "test/**/*.ts"]
3+
"include": ["src/**/*.ts", "test/**/*.ts"],
4+
"references": [
5+
{ "path": "../compiler/tsconfig.build.json" },
6+
{ "path": "../rest/tsconfig.build.json" }
7+
]
48
}
Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
11
{
22
"extends": "./tsconfig.json",
3-
"include": ["src/**/*.ts", "test/**/*.ts"]
3+
"include": ["src/**/*.ts", "test/**/*.ts"],
4+
"references": [
5+
{ "path": "../compiler/tsconfig.build.json" },
6+
{ "path": "../rest/tsconfig.build.json" },
7+
{ "path": "../openapi/tsconfig.build.json" }
8+
]
49
}
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
22
"extends": "./tsconfig.json",
3-
"include": ["src/**/*.ts", "generated-defs/**/*.ts", "test/**/*.ts"]
3+
"include": ["src/**/*.ts", "generated-defs/**/*.ts", "test/**/*.ts"],
4+
"references": [{ "path": "../compiler/tsconfig.build.json" }]
45
}
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"extends": "./tsconfig.json",
33
"include": ["src"],
4-
"exclude": ["src/index.ts", "src/emitter.ts", "**/*.test.ts", "**/*.test.tsx"]
4+
"exclude": ["src/index.ts", "src/emitter.ts", "**/*.test.ts", "**/*.test.tsx"],
5+
"references": [{ "path": "../compiler/tsconfig.build.json" }]
56
}
Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
11
{
22
"extends": "./tsconfig.json",
3-
"include": ["src/**/*.ts", "generated-defs/**/*.ts", "test/**/*.ts"]
3+
"include": ["src/**/*.ts", "generated-defs/**/*.ts", "test/**/*.ts"],
4+
"references": [
5+
{ "path": "../compiler/tsconfig.build.json" },
6+
{ "path": "../http/tsconfig.build.json" },
7+
{ "path": "../rest/tsconfig.build.json" },
8+
{ "path": "../versioning/tsconfig.build.json" }
9+
]
410
}

packages/http-server-js/tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"extends": "../../tsconfig.base.json",
3-
"references": [{ "path": "../compiler/tsconfig.json" }],
3+
"references": [{ "path": "../compiler/tsconfig.build.json" }],
44
"compilerOptions": {
55
"outDir": "dist",
66
"rootDir": ".",
Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,4 @@
11
{
22
"extends": "./tsconfig.json",
3-
"references": [
4-
{ "path": "../spec-api/tsconfig.build.json" },
5-
{ "path": "../spector/tsconfig.build.json" }
6-
],
73
"exclude": ["**/*.test.*", "test/**/*"]
84
}

0 commit comments

Comments
 (0)