Skip to content

Commit fa74cef

Browse files
authored
Merge pull request #29591 from Microsoft/removeUnnecessaryDeclarations
Do not generate dts files for tsc/tsserver and such when we do not use it at all.
2 parents 4da9d8b + e51a2fe commit fa74cef

File tree

9 files changed

+17
-9
lines changed

9 files changed

+17
-9
lines changed

Gulpfile.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ gulp.task(typescriptServicesProject, /*help*/ false, () => {
138138
compilerOptions: {
139139
"removeComments": false,
140140
"stripInternal": true,
141-
"declarationMap": false,
141+
"declaration": true,
142142
"outFile": "typescriptServices.out.js" // must align with same task in jakefile. We fix this name below.
143143
}
144144
});

Jakefile.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -361,7 +361,7 @@ file(ConfigFileFor.tsserverLibrary, [], function () {
361361
compilerOptions: {
362362
"removeComments": false,
363363
"stripInternal": true,
364-
"declarationMap": false,
364+
"declaration": true,
365365
"outFile": "tsserverlibrary.out.js"
366366
}
367367
})

src/cancellationToken/tsconfig.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"extends": "../tsconfig-base",
2+
"extends": "../tsconfig-noncomposite-base",
33
"compilerOptions": {
44
"outDir": "../../built/local/",
55
"rootDir": ".",

src/testRunner/tsconfig.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"extends": "../tsconfig-base",
2+
"extends": "../tsconfig-noncomposite-base",
33
"compilerOptions": {
44
"outFile": "../../built/local/run.js",
55
"composite": false,

src/tsc/tsconfig.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"extends": "../tsconfig-base",
2+
"extends": "../tsconfig-noncomposite-base",
33
"compilerOptions": {
44
"outFile": "../../built/local/tsc.js"
55
},

src/tsconfig-noncomposite-base.json

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"extends": "./tsconfig-base",
3+
"compilerOptions": {
4+
"declaration": false,
5+
"declarationMap": false,
6+
"composite": false
7+
}
8+
}

src/tsserver/tsconfig.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"extends": "../tsconfig-base",
2+
"extends": "../tsconfig-noncomposite-base",
33

44
"compilerOptions": {
55
"outFile": "../../built/local/tsserver.js",

src/typingsInstaller/tsconfig.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"extends": "../tsconfig-base",
2+
"extends": "../tsconfig-noncomposite-base",
33
"compilerOptions": {
44
"removeComments": true,
55
"outFile": "../../built/local/typingsInstaller.js",

src/watchGuard/tsconfig.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"extends": "../tsconfig-base",
2+
"extends": "../tsconfig-noncomposite-base",
33
"compilerOptions": {
44
"removeComments": true,
55
"outFile": "../../built/local/watchGuard.js",
@@ -13,4 +13,4 @@
1313
"files": [
1414
"watchGuard.ts"
1515
]
16-
}
16+
}

0 commit comments

Comments
 (0)