Recognize relative path using in outDir property (#9025)
* Recognize relative path using in outDir property * Add projects tests * Add project .json files * Update baselines
This commit is contained in:
parent
179d42323a
commit
899f667544
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -34,7 +34,6 @@ tests/webhost/*.d.ts
|
|||
tests/webhost/webtsc.js
|
||||
tests/cases/**/*.js
|
||||
tests/cases/**/*.js.map
|
||||
tests/cases/**/*.d.ts
|
||||
*.config
|
||||
scripts/debug.bat
|
||||
scripts/run.bat
|
||||
|
@ -49,3 +48,4 @@ internal/
|
|||
**/.vs
|
||||
**/.vscode
|
||||
!**/.vscode/tasks.json
|
||||
!tests/cases/projects/projectOption/**/node_modules
|
||||
|
|
|
@ -717,7 +717,7 @@ namespace ts {
|
|||
if (outDir) {
|
||||
exclude.push(outDir);
|
||||
}
|
||||
exclude = map(exclude, normalizeSlashes);
|
||||
exclude = map(exclude, e => getNormalizedAbsolutePath(e, basePath));
|
||||
|
||||
const supportedExtensions = getSupportedExtensions(options);
|
||||
Debug.assert(indexOf(supportedExtensions, ".ts") < indexOf(supportedExtensions, ".d.ts"), "Changed priority of extensions to pick");
|
||||
|
|
1
tests/baselines/reference/project/defaultExcludeNodeModulesAndOutDir/amd/OutDir/a.d.ts
vendored
Normal file
1
tests/baselines/reference/project/defaultExcludeNodeModulesAndOutDir/amd/OutDir/a.d.ts
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
declare var test: number;
|
|
@ -0,0 +1 @@
|
|||
var test = 10;
|
|
@ -0,0 +1,14 @@
|
|||
{
|
||||
"scenario": "Verify default exclude property in project option",
|
||||
"projectRoot": "tests/cases/projects/projectOption/DefaultExcludeNodeModulesAndOutDir",
|
||||
"baselineCheck": true,
|
||||
"declaration": true,
|
||||
"resolvedInputFiles": [
|
||||
"lib.d.ts",
|
||||
"a.ts"
|
||||
],
|
||||
"emittedFiles": [
|
||||
"OutDir/a.js",
|
||||
"OutDir/a.d.ts"
|
||||
]
|
||||
}
|
1
tests/baselines/reference/project/defaultExcludeNodeModulesAndOutDir/node/OutDir/a.d.ts
vendored
Normal file
1
tests/baselines/reference/project/defaultExcludeNodeModulesAndOutDir/node/OutDir/a.d.ts
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
declare var test: number;
|
|
@ -0,0 +1 @@
|
|||
var test = 10;
|
|
@ -0,0 +1,14 @@
|
|||
{
|
||||
"scenario": "Verify default exclude property in project option",
|
||||
"projectRoot": "tests/cases/projects/projectOption/DefaultExcludeNodeModulesAndOutDir",
|
||||
"baselineCheck": true,
|
||||
"declaration": true,
|
||||
"resolvedInputFiles": [
|
||||
"lib.d.ts",
|
||||
"a.ts"
|
||||
],
|
||||
"emittedFiles": [
|
||||
"OutDir/a.js",
|
||||
"OutDir/a.d.ts"
|
||||
]
|
||||
}
|
|
@ -0,0 +1 @@
|
|||
var test = 10;
|
|
@ -0,0 +1,12 @@
|
|||
{
|
||||
"scenario": "Verify default exclude property in project option",
|
||||
"projectRoot": "tests/cases/projects/projectOption/DefaultExcludeNodeModulesAndOutDirWithAllowJS",
|
||||
"baselineCheck": true,
|
||||
"resolvedInputFiles": [
|
||||
"lib.d.ts",
|
||||
"a.ts"
|
||||
],
|
||||
"emittedFiles": [
|
||||
"OutDir/a.js"
|
||||
]
|
||||
}
|
|
@ -0,0 +1 @@
|
|||
var test = 10;
|
|
@ -0,0 +1,12 @@
|
|||
{
|
||||
"scenario": "Verify default exclude property in project option",
|
||||
"projectRoot": "tests/cases/projects/projectOption/DefaultExcludeNodeModulesAndOutDirWithAllowJS",
|
||||
"baselineCheck": true,
|
||||
"resolvedInputFiles": [
|
||||
"lib.d.ts",
|
||||
"a.ts"
|
||||
],
|
||||
"emittedFiles": [
|
||||
"OutDir/a.js"
|
||||
]
|
||||
}
|
|
@ -0,0 +1 @@
|
|||
declare var test: number;
|
|
@ -0,0 +1 @@
|
|||
var test = 10;
|
|
@ -0,0 +1,14 @@
|
|||
{
|
||||
"scenario": "Verify default exclude property with relative path for 'outDir' in project option",
|
||||
"projectRoot": "tests/cases/projects/projectOption/DefaultExcludeNodeModulesAndRelativePathOutDir",
|
||||
"baselineCheck": true,
|
||||
"declaration": true,
|
||||
"resolvedInputFiles": [
|
||||
"lib.d.ts",
|
||||
"a.ts"
|
||||
],
|
||||
"emittedFiles": [
|
||||
"OutDir/a.js",
|
||||
"OutDir/a.d.ts"
|
||||
]
|
||||
}
|
|
@ -0,0 +1 @@
|
|||
declare var test: number;
|
|
@ -0,0 +1 @@
|
|||
var test = 10;
|
|
@ -0,0 +1,14 @@
|
|||
{
|
||||
"scenario": "Verify default exclude property with relative path for 'outDir' in project option",
|
||||
"projectRoot": "tests/cases/projects/projectOption/DefaultExcludeNodeModulesAndRelativePathOutDir",
|
||||
"baselineCheck": true,
|
||||
"declaration": true,
|
||||
"resolvedInputFiles": [
|
||||
"lib.d.ts",
|
||||
"a.ts"
|
||||
],
|
||||
"emittedFiles": [
|
||||
"OutDir/a.js",
|
||||
"OutDir/a.d.ts"
|
||||
]
|
||||
}
|
|
@ -0,0 +1 @@
|
|||
var test = 10;
|
|
@ -0,0 +1,12 @@
|
|||
{
|
||||
"scenario": "Verify default exclude property with relative path for 'outDir' in project option",
|
||||
"projectRoot": "tests/cases/projects/projectOption/DefaultExcludeNodeModulesAndRelativePathOutDirWithAllowJS",
|
||||
"baselineCheck": true,
|
||||
"resolvedInputFiles": [
|
||||
"lib.d.ts",
|
||||
"a.ts"
|
||||
],
|
||||
"emittedFiles": [
|
||||
"OutDir/a.js"
|
||||
]
|
||||
}
|
|
@ -0,0 +1 @@
|
|||
var test = 10;
|
|
@ -0,0 +1,12 @@
|
|||
{
|
||||
"scenario": "Verify default exclude property with relative path for 'outDir' in project option",
|
||||
"projectRoot": "tests/cases/projects/projectOption/DefaultExcludeNodeModulesAndRelativePathOutDirWithAllowJS",
|
||||
"baselineCheck": true,
|
||||
"resolvedInputFiles": [
|
||||
"lib.d.ts",
|
||||
"a.ts"
|
||||
],
|
||||
"emittedFiles": [
|
||||
"OutDir/a.js"
|
||||
]
|
||||
}
|
1
tests/baselines/reference/project/defaultExcludeOnlyNodeModules/amd/a.d.ts
vendored
Normal file
1
tests/baselines/reference/project/defaultExcludeOnlyNodeModules/amd/a.d.ts
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
declare var test: number;
|
|
@ -0,0 +1 @@
|
|||
var test = 10;
|
|
@ -0,0 +1,14 @@
|
|||
{
|
||||
"scenario": "Verify default exclude property with only node_modules in project option",
|
||||
"projectRoot": "tests/cases/projects/projectOption/DefaultExcludeOnlyNodeModules",
|
||||
"baselineCheck": true,
|
||||
"declaration": true,
|
||||
"resolvedInputFiles": [
|
||||
"lib.d.ts",
|
||||
"a.ts"
|
||||
],
|
||||
"emittedFiles": [
|
||||
"a.js",
|
||||
"a.d.ts"
|
||||
]
|
||||
}
|
1
tests/baselines/reference/project/defaultExcludeOnlyNodeModules/node/a.d.ts
vendored
Normal file
1
tests/baselines/reference/project/defaultExcludeOnlyNodeModules/node/a.d.ts
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
declare var test: number;
|
|
@ -0,0 +1 @@
|
|||
var test = 10;
|
|
@ -0,0 +1,14 @@
|
|||
{
|
||||
"scenario": "Verify default exclude property with only node_modules in project option",
|
||||
"projectRoot": "tests/cases/projects/projectOption/DefaultExcludeOnlyNodeModules",
|
||||
"baselineCheck": true,
|
||||
"declaration": true,
|
||||
"resolvedInputFiles": [
|
||||
"lib.d.ts",
|
||||
"a.ts"
|
||||
],
|
||||
"emittedFiles": [
|
||||
"a.js",
|
||||
"a.d.ts"
|
||||
]
|
||||
}
|
1
tests/baselines/reference/project/specifyExcludeUsingRelativepath/amd/OutDir/a.d.ts
vendored
Normal file
1
tests/baselines/reference/project/specifyExcludeUsingRelativepath/amd/OutDir/a.d.ts
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
declare var test: number;
|
|
@ -0,0 +1 @@
|
|||
var test = 10;
|
|
@ -0,0 +1,14 @@
|
|||
{
|
||||
"scenario": "Verify exclude property without using relative path",
|
||||
"projectRoot": "tests/cases/projects/projectOption/SpecifyExcludeUsingRelativePath",
|
||||
"baselineCheck": true,
|
||||
"declaration": true,
|
||||
"resolvedInputFiles": [
|
||||
"lib.d.ts",
|
||||
"a.ts"
|
||||
],
|
||||
"emittedFiles": [
|
||||
"OutDir/a.js",
|
||||
"OutDir/a.d.ts"
|
||||
]
|
||||
}
|
1
tests/baselines/reference/project/specifyExcludeUsingRelativepath/node/OutDir/a.d.ts
vendored
Normal file
1
tests/baselines/reference/project/specifyExcludeUsingRelativepath/node/OutDir/a.d.ts
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
declare var test: number;
|
|
@ -0,0 +1 @@
|
|||
var test = 10;
|
|
@ -0,0 +1,14 @@
|
|||
{
|
||||
"scenario": "Verify exclude property without using relative path",
|
||||
"projectRoot": "tests/cases/projects/projectOption/SpecifyExcludeUsingRelativePath",
|
||||
"baselineCheck": true,
|
||||
"declaration": true,
|
||||
"resolvedInputFiles": [
|
||||
"lib.d.ts",
|
||||
"a.ts"
|
||||
],
|
||||
"emittedFiles": [
|
||||
"OutDir/a.js",
|
||||
"OutDir/a.d.ts"
|
||||
]
|
||||
}
|
|
@ -0,0 +1 @@
|
|||
var test = 10;
|
|
@ -0,0 +1,12 @@
|
|||
{
|
||||
"scenario": "Verify exclude property without using relative path",
|
||||
"projectRoot": "tests/cases/projects/projectOption/SpecifyExcludeUsingRelativePathWithAllowJS",
|
||||
"baselineCheck": true,
|
||||
"resolvedInputFiles": [
|
||||
"lib.d.ts",
|
||||
"a.ts"
|
||||
],
|
||||
"emittedFiles": [
|
||||
"OutDir/a.js"
|
||||
]
|
||||
}
|
|
@ -0,0 +1 @@
|
|||
var test = 10;
|
|
@ -0,0 +1,12 @@
|
|||
{
|
||||
"scenario": "Verify exclude property without using relative path",
|
||||
"projectRoot": "tests/cases/projects/projectOption/SpecifyExcludeUsingRelativePathWithAllowJS",
|
||||
"baselineCheck": true,
|
||||
"resolvedInputFiles": [
|
||||
"lib.d.ts",
|
||||
"a.ts"
|
||||
],
|
||||
"emittedFiles": [
|
||||
"OutDir/a.js"
|
||||
]
|
||||
}
|
1
tests/baselines/reference/project/specifyExcludeWithOutUsingRelativePath/amd/OutDir/a.d.ts
vendored
Normal file
1
tests/baselines/reference/project/specifyExcludeWithOutUsingRelativePath/amd/OutDir/a.d.ts
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
declare var test: number;
|
|
@ -0,0 +1 @@
|
|||
var test = 10;
|
|
@ -0,0 +1,14 @@
|
|||
{
|
||||
"scenario": "Verify exclude property without using relative path",
|
||||
"projectRoot": "tests/cases/projects/projectOption/SpecifyExcludeWithOutUsingRelativePath",
|
||||
"baselineCheck": true,
|
||||
"declaration": true,
|
||||
"resolvedInputFiles": [
|
||||
"lib.d.ts",
|
||||
"a.ts"
|
||||
],
|
||||
"emittedFiles": [
|
||||
"OutDir/a.js",
|
||||
"OutDir/a.d.ts"
|
||||
]
|
||||
}
|
1
tests/baselines/reference/project/specifyExcludeWithOutUsingRelativePath/node/OutDir/a.d.ts
vendored
Normal file
1
tests/baselines/reference/project/specifyExcludeWithOutUsingRelativePath/node/OutDir/a.d.ts
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
declare var test: number;
|
|
@ -0,0 +1 @@
|
|||
var test = 10;
|
|
@ -0,0 +1,14 @@
|
|||
{
|
||||
"scenario": "Verify exclude property without using relative path",
|
||||
"projectRoot": "tests/cases/projects/projectOption/SpecifyExcludeWithOutUsingRelativePath",
|
||||
"baselineCheck": true,
|
||||
"declaration": true,
|
||||
"resolvedInputFiles": [
|
||||
"lib.d.ts",
|
||||
"a.ts"
|
||||
],
|
||||
"emittedFiles": [
|
||||
"OutDir/a.js",
|
||||
"OutDir/a.d.ts"
|
||||
]
|
||||
}
|
|
@ -0,0 +1 @@
|
|||
var test = 10;
|
|
@ -0,0 +1,12 @@
|
|||
{
|
||||
"scenario": "Verify exclude property without using relative path",
|
||||
"projectRoot": "tests/cases/projects/projectOption/SpecifyExcludeWithOutUsingRelativePathWithAllowJS",
|
||||
"baselineCheck": true,
|
||||
"resolvedInputFiles": [
|
||||
"lib.d.ts",
|
||||
"a.ts"
|
||||
],
|
||||
"emittedFiles": [
|
||||
"OutDir/a.js"
|
||||
]
|
||||
}
|
|
@ -0,0 +1 @@
|
|||
var test = 10;
|
|
@ -0,0 +1,12 @@
|
|||
{
|
||||
"scenario": "Verify exclude property without using relative path",
|
||||
"projectRoot": "tests/cases/projects/projectOption/SpecifyExcludeWithOutUsingRelativePathWithAllowJS",
|
||||
"baselineCheck": true,
|
||||
"resolvedInputFiles": [
|
||||
"lib.d.ts",
|
||||
"a.ts"
|
||||
],
|
||||
"emittedFiles": [
|
||||
"OutDir/a.js"
|
||||
]
|
||||
}
|
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
"scenario": "Verify default exclude property in project option",
|
||||
"projectRoot": "tests/cases/projects/projectOption/DefaultExcludeNodeModulesAndOutDir",
|
||||
"baselineCheck": true,
|
||||
"declaration": true
|
||||
}
|
|
@ -0,0 +1,5 @@
|
|||
{
|
||||
"scenario": "Verify default exclude property in project option",
|
||||
"projectRoot": "tests/cases/projects/projectOption/DefaultExcludeNodeModulesAndOutDirWithAllowJS",
|
||||
"baselineCheck": true
|
||||
}
|
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
"scenario": "Verify default exclude property with relative path for 'outDir' in project option",
|
||||
"projectRoot": "tests/cases/projects/projectOption/DefaultExcludeNodeModulesAndRelativePathOutDir",
|
||||
"baselineCheck": true,
|
||||
"declaration": true
|
||||
}
|
|
@ -0,0 +1,5 @@
|
|||
{
|
||||
"scenario": "Verify default exclude property with relative path for 'outDir' in project option",
|
||||
"projectRoot": "tests/cases/projects/projectOption/DefaultExcludeNodeModulesAndRelativePathOutDirWithAllowJS",
|
||||
"baselineCheck": true
|
||||
}
|
6
tests/cases/project/defaultExcludeOnlyNodeModules.json
Normal file
6
tests/cases/project/defaultExcludeOnlyNodeModules.json
Normal file
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
"scenario": "Verify default exclude property with only node_modules in project option",
|
||||
"projectRoot": "tests/cases/projects/projectOption/DefaultExcludeOnlyNodeModules",
|
||||
"baselineCheck": true,
|
||||
"declaration": true
|
||||
}
|
6
tests/cases/project/specifyExcludeUsingRelativepath.json
Normal file
6
tests/cases/project/specifyExcludeUsingRelativepath.json
Normal file
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
"scenario": "Verify exclude property without using relative path",
|
||||
"projectRoot": "tests/cases/projects/projectOption/SpecifyExcludeUsingRelativePath",
|
||||
"baselineCheck": true,
|
||||
"declaration": true
|
||||
}
|
|
@ -0,0 +1,5 @@
|
|||
{
|
||||
"scenario": "Verify exclude property without using relative path",
|
||||
"projectRoot": "tests/cases/projects/projectOption/SpecifyExcludeUsingRelativePathWithAllowJS",
|
||||
"baselineCheck": true
|
||||
}
|
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
"scenario": "Verify exclude property without using relative path",
|
||||
"projectRoot": "tests/cases/projects/projectOption/SpecifyExcludeWithOutUsingRelativePath",
|
||||
"baselineCheck": true,
|
||||
"declaration": true
|
||||
}
|
|
@ -0,0 +1,5 @@
|
|||
{
|
||||
"scenario": "Verify exclude property without using relative path",
|
||||
"projectRoot": "tests/cases/projects/projectOption/SpecifyExcludeWithOutUsingRelativePathWithAllowJS",
|
||||
"baselineCheck": true
|
||||
}
|
1
tests/cases/projects/projectOption/DefaultExcludeNodeModulesAndOutDir/OutDir/a.d.ts
vendored
Normal file
1
tests/cases/projects/projectOption/DefaultExcludeNodeModulesAndOutDir/OutDir/a.d.ts
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
declare var test: number;
|
|
@ -0,0 +1 @@
|
|||
var test = 10;
|
2
tests/cases/projects/projectOption/DefaultExcludeNodeModulesAndOutDir/node_modules/myLib/myLib.d.ts
generated
vendored
Normal file
2
tests/cases/projects/projectOption/DefaultExcludeNodeModulesAndOutDir/node_modules/myLib/myLib.d.ts
generated
vendored
Normal file
|
@ -0,0 +1,2 @@
|
|||
// This files shouldn't be included in the compilation
|
||||
declare var test: string;
|
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
"compilerOptions": {
|
||||
"outDir": "OutDir",
|
||||
"declaration": true
|
||||
}
|
||||
}
|
|
@ -0,0 +1 @@
|
|||
declare var test: number;
|
|
@ -0,0 +1 @@
|
|||
var test = 10;
|
2
tests/cases/projects/projectOption/DefaultExcludeNodeModulesAndOutDirWithAllowJS/node_modules/myLib/myLib.d.ts
generated
vendored
Normal file
2
tests/cases/projects/projectOption/DefaultExcludeNodeModulesAndOutDirWithAllowJS/node_modules/myLib/myLib.d.ts
generated
vendored
Normal file
|
@ -0,0 +1,2 @@
|
|||
// This files shouldn't be included in the compilation
|
||||
declare var test: string;
|
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
"compilerOptions": {
|
||||
"outDir": "OutDir",
|
||||
"allowJs": true
|
||||
}
|
||||
}
|
|
@ -0,0 +1 @@
|
|||
declare var test: number;
|
|
@ -0,0 +1 @@
|
|||
var test = 10;
|
2
tests/cases/projects/projectOption/DefaultExcludeNodeModulesAndRelativePathOutDir/node_modules/myLib/myLib.d.ts
generated
vendored
Normal file
2
tests/cases/projects/projectOption/DefaultExcludeNodeModulesAndRelativePathOutDir/node_modules/myLib/myLib.d.ts
generated
vendored
Normal file
|
@ -0,0 +1,2 @@
|
|||
// This files shouldn't be included in the compilation
|
||||
declare var test: string;
|
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
"compilerOptions": {
|
||||
"outDir": "./OutDir",
|
||||
"declaration": true
|
||||
}
|
||||
}
|
|
@ -0,0 +1 @@
|
|||
declare var test: number;
|
|
@ -0,0 +1 @@
|
|||
var test = 10;
|
2
tests/cases/projects/projectOption/DefaultExcludeNodeModulesAndRelativePathOutDirWithAllowJS/node_modules/myLib/myLib.d.ts
generated
vendored
Normal file
2
tests/cases/projects/projectOption/DefaultExcludeNodeModulesAndRelativePathOutDirWithAllowJS/node_modules/myLib/myLib.d.ts
generated
vendored
Normal file
|
@ -0,0 +1,2 @@
|
|||
// This files shouldn't be included in the compilation
|
||||
declare var test: string;
|
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
"compilerOptions": {
|
||||
"outDir": "./OutDir",
|
||||
"allowJs": true
|
||||
}
|
||||
}
|
|
@ -0,0 +1 @@
|
|||
var test = 10;
|
2
tests/cases/projects/projectOption/DefaultExcludeOnlyNodeModules/node_modules/myLib/myLib.d.ts
generated
vendored
Normal file
2
tests/cases/projects/projectOption/DefaultExcludeOnlyNodeModules/node_modules/myLib/myLib.d.ts
generated
vendored
Normal file
|
@ -0,0 +1,2 @@
|
|||
// This files shouldn't be included in the compilation
|
||||
declare var test: string;
|
|
@ -0,0 +1,5 @@
|
|||
{
|
||||
"compilerOptions": {
|
||||
"target": "es5"
|
||||
}
|
||||
}
|
1
tests/cases/projects/projectOption/SpecifyExcludeUsingRelativePath/OutDir/a.d.ts
vendored
Normal file
1
tests/cases/projects/projectOption/SpecifyExcludeUsingRelativePath/OutDir/a.d.ts
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
declare var test: string; // Shouldn't error since it is not include in compilation
|
|
@ -0,0 +1 @@
|
|||
var test = 10;
|
2
tests/cases/projects/projectOption/SpecifyExcludeUsingRelativePath/node_modules/myLib/myLib.d.ts
generated
vendored
Normal file
2
tests/cases/projects/projectOption/SpecifyExcludeUsingRelativePath/node_modules/myLib/myLib.d.ts
generated
vendored
Normal file
|
@ -0,0 +1,2 @@
|
|||
// This files shouldn't be included in the compilation
|
||||
declare var test: string;
|
|
@ -0,0 +1,10 @@
|
|||
{
|
||||
"compilerOptions": {
|
||||
"outDir": "./OutDir",
|
||||
"declaration": true
|
||||
},
|
||||
"exclude": [
|
||||
"./node_modules",
|
||||
"./OutDir"
|
||||
]
|
||||
}
|
1
tests/cases/projects/projectOption/SpecifyExcludeUsingRelativePathWithAllowJS/OutDir/a.d.ts
vendored
Normal file
1
tests/cases/projects/projectOption/SpecifyExcludeUsingRelativePathWithAllowJS/OutDir/a.d.ts
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
declare var test: string; // Shouldn't error since it is not include in compilation
|
|
@ -0,0 +1 @@
|
|||
var test = 10;
|
2
tests/cases/projects/projectOption/SpecifyExcludeUsingRelativePathWithAllowJS/node_modules/myLib/myLib.d.ts
generated
vendored
Normal file
2
tests/cases/projects/projectOption/SpecifyExcludeUsingRelativePathWithAllowJS/node_modules/myLib/myLib.d.ts
generated
vendored
Normal file
|
@ -0,0 +1,2 @@
|
|||
// This files shouldn't be included in the compilation
|
||||
declare var test: string;
|
|
@ -0,0 +1,10 @@
|
|||
{
|
||||
"compilerOptions": {
|
||||
"outDir": "./OutDir",
|
||||
"allowJs": true
|
||||
},
|
||||
"exclude": [
|
||||
"./node_modules",
|
||||
"./OutDir"
|
||||
]
|
||||
}
|
1
tests/cases/projects/projectOption/SpecifyExcludeWithOutUsingRelativePath/OutDir/a.d.ts
vendored
Normal file
1
tests/cases/projects/projectOption/SpecifyExcludeWithOutUsingRelativePath/OutDir/a.d.ts
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
declare var test: string; // Shouldn't error since it is not include in compilation
|
|
@ -0,0 +1 @@
|
|||
var test = 10;
|
2
tests/cases/projects/projectOption/SpecifyExcludeWithOutUsingRelativePath/node_modules/myLib/myLib.d.ts
generated
vendored
Normal file
2
tests/cases/projects/projectOption/SpecifyExcludeWithOutUsingRelativePath/node_modules/myLib/myLib.d.ts
generated
vendored
Normal file
|
@ -0,0 +1,2 @@
|
|||
// This files shouldn't be included in the compilation
|
||||
declare var test: string;
|
|
@ -0,0 +1,10 @@
|
|||
{
|
||||
"compilerOptions": {
|
||||
"outDir": "OutDir",
|
||||
"declaration": true
|
||||
},
|
||||
"exclude": [
|
||||
"node_modules",
|
||||
"OutDir"
|
||||
]
|
||||
}
|
|
@ -0,0 +1 @@
|
|||
declare var test: string; // Shouldn't error since it is not include in compilation
|
|
@ -0,0 +1 @@
|
|||
var test = 10;
|
2
tests/cases/projects/projectOption/SpecifyExcludeWithOutUsingRelativePathWithAllowJS/node_modules/myLib/myLib.d.ts
generated
vendored
Normal file
2
tests/cases/projects/projectOption/SpecifyExcludeWithOutUsingRelativePathWithAllowJS/node_modules/myLib/myLib.d.ts
generated
vendored
Normal file
|
@ -0,0 +1,2 @@
|
|||
// This files shouldn't be included in the compilation
|
||||
declare var test: string;
|
|
@ -0,0 +1,10 @@
|
|||
{
|
||||
"compilerOptions": {
|
||||
"outDir": "OutDir",
|
||||
"allowJs": true
|
||||
},
|
||||
"exclude": [
|
||||
"node_modules",
|
||||
"OutDir"
|
||||
]
|
||||
}
|
Loading…
Reference in a new issue