From 7e289abf79ea40fed7c25d50c450868f7afb90d2 Mon Sep 17 00:00:00 2001 From: Kanchalai Tanglertsampan Date: Wed, 8 Jun 2016 10:26:53 -0700 Subject: [PATCH 1/4] Recognize relative path using in outDir property --- .gitignore | 2 +- src/compiler/commandLineParser.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 4f9ec0649b3ee..e61c3510e3709 100644 --- a/.gitignore +++ b/.gitignore @@ -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 diff --git a/src/compiler/commandLineParser.ts b/src/compiler/commandLineParser.ts index 506a2d5bee42d..8fc74b3a3b600 100644 --- a/src/compiler/commandLineParser.ts +++ b/src/compiler/commandLineParser.ts @@ -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"); From ee85e77eaea563410dcb1d9f7df671b909349333 Mon Sep 17 00:00:00 2001 From: Kanchalai Tanglertsampan Date: Wed, 8 Jun 2016 11:01:01 -0700 Subject: [PATCH 2/4] Add projects tests --- .../DefaultExcludeNodeModulesAndOutDir/OutDir/a.d.ts | 1 + .../DefaultExcludeNodeModulesAndOutDir/a.ts | 1 + .../node_modules/myLib/myLib.d.ts | 2 ++ .../DefaultExcludeNodeModulesAndOutDir/tsconfig.json | 6 ++++++ .../OutDir/a.d.ts | 1 + .../DefaultExcludeNodeModulesAndOutDirWithAllowJS/a.ts | 1 + .../node_modules/myLib/myLib.d.ts | 2 ++ .../tsconfig.json | 6 ++++++ .../OutDir/a.d.ts | 1 + .../a.ts | 1 + .../node_modules/myLib/myLib.d.ts | 2 ++ .../tsconfig.json | 6 ++++++ .../OutDir/a.d.ts | 1 + .../a.ts | 1 + .../node_modules/myLib/myLib.d.ts | 2 ++ .../tsconfig.json | 6 ++++++ .../projectOption/DefaultExcludeOnlyNodeModules/a.ts | 1 + .../node_modules/myLib/myLib.d.ts | 2 ++ .../DefaultExcludeOnlyNodeModules/tsconfig.json | 5 +++++ .../SpecifyExcludeUsingRelativePath/OutDir/a.d.ts | 1 + .../projectOption/SpecifyExcludeUsingRelativePath/a.ts | 1 + .../node_modules/myLib/myLib.d.ts | 2 ++ .../SpecifyExcludeUsingRelativePath/tsconfig.json | 10 ++++++++++ .../OutDir/a.d.ts | 1 + .../SpecifyExcludeUsingRelativePathWithAllowJS/a.ts | 1 + .../node_modules/myLib/myLib.d.ts | 2 ++ .../tsconfig.json | 10 ++++++++++ .../OutDir/a.d.ts | 1 + .../SpecifyExcludeWithOutUsingRelativePath/a.ts | 1 + .../node_modules/myLib/myLib.d.ts | 2 ++ .../tsconfig.json | 10 ++++++++++ .../OutDir/a.d.ts | 1 + .../a.ts | 1 + .../node_modules/myLib/myLib.d.ts | 2 ++ .../tsconfig.json | 10 ++++++++++ 35 files changed, 104 insertions(+) create mode 100644 tests/cases/projects/projectOption/DefaultExcludeNodeModulesAndOutDir/OutDir/a.d.ts create mode 100644 tests/cases/projects/projectOption/DefaultExcludeNodeModulesAndOutDir/a.ts create mode 100644 tests/cases/projects/projectOption/DefaultExcludeNodeModulesAndOutDir/node_modules/myLib/myLib.d.ts create mode 100644 tests/cases/projects/projectOption/DefaultExcludeNodeModulesAndOutDir/tsconfig.json create mode 100644 tests/cases/projects/projectOption/DefaultExcludeNodeModulesAndOutDirWithAllowJS/OutDir/a.d.ts create mode 100644 tests/cases/projects/projectOption/DefaultExcludeNodeModulesAndOutDirWithAllowJS/a.ts create mode 100644 tests/cases/projects/projectOption/DefaultExcludeNodeModulesAndOutDirWithAllowJS/node_modules/myLib/myLib.d.ts create mode 100644 tests/cases/projects/projectOption/DefaultExcludeNodeModulesAndOutDirWithAllowJS/tsconfig.json create mode 100644 tests/cases/projects/projectOption/DefaultExcludeNodeModulesAndRelativePathOutDir/OutDir/a.d.ts create mode 100644 tests/cases/projects/projectOption/DefaultExcludeNodeModulesAndRelativePathOutDir/a.ts create mode 100644 tests/cases/projects/projectOption/DefaultExcludeNodeModulesAndRelativePathOutDir/node_modules/myLib/myLib.d.ts create mode 100644 tests/cases/projects/projectOption/DefaultExcludeNodeModulesAndRelativePathOutDir/tsconfig.json create mode 100644 tests/cases/projects/projectOption/DefaultExcludeNodeModulesAndRelativePathOutDirWithAllowJS/OutDir/a.d.ts create mode 100644 tests/cases/projects/projectOption/DefaultExcludeNodeModulesAndRelativePathOutDirWithAllowJS/a.ts create mode 100644 tests/cases/projects/projectOption/DefaultExcludeNodeModulesAndRelativePathOutDirWithAllowJS/node_modules/myLib/myLib.d.ts create mode 100644 tests/cases/projects/projectOption/DefaultExcludeNodeModulesAndRelativePathOutDirWithAllowJS/tsconfig.json create mode 100644 tests/cases/projects/projectOption/DefaultExcludeOnlyNodeModules/a.ts create mode 100644 tests/cases/projects/projectOption/DefaultExcludeOnlyNodeModules/node_modules/myLib/myLib.d.ts create mode 100644 tests/cases/projects/projectOption/DefaultExcludeOnlyNodeModules/tsconfig.json create mode 100644 tests/cases/projects/projectOption/SpecifyExcludeUsingRelativePath/OutDir/a.d.ts create mode 100644 tests/cases/projects/projectOption/SpecifyExcludeUsingRelativePath/a.ts create mode 100644 tests/cases/projects/projectOption/SpecifyExcludeUsingRelativePath/node_modules/myLib/myLib.d.ts create mode 100644 tests/cases/projects/projectOption/SpecifyExcludeUsingRelativePath/tsconfig.json create mode 100644 tests/cases/projects/projectOption/SpecifyExcludeUsingRelativePathWithAllowJS/OutDir/a.d.ts create mode 100644 tests/cases/projects/projectOption/SpecifyExcludeUsingRelativePathWithAllowJS/a.ts create mode 100644 tests/cases/projects/projectOption/SpecifyExcludeUsingRelativePathWithAllowJS/node_modules/myLib/myLib.d.ts create mode 100644 tests/cases/projects/projectOption/SpecifyExcludeUsingRelativePathWithAllowJS/tsconfig.json create mode 100644 tests/cases/projects/projectOption/SpecifyExcludeWithOutUsingRelativePath/OutDir/a.d.ts create mode 100644 tests/cases/projects/projectOption/SpecifyExcludeWithOutUsingRelativePath/a.ts create mode 100644 tests/cases/projects/projectOption/SpecifyExcludeWithOutUsingRelativePath/node_modules/myLib/myLib.d.ts create mode 100644 tests/cases/projects/projectOption/SpecifyExcludeWithOutUsingRelativePath/tsconfig.json create mode 100644 tests/cases/projects/projectOption/SpecifyExcludeWithOutUsingRelativePathWithAllowJS/OutDir/a.d.ts create mode 100644 tests/cases/projects/projectOption/SpecifyExcludeWithOutUsingRelativePathWithAllowJS/a.ts create mode 100644 tests/cases/projects/projectOption/SpecifyExcludeWithOutUsingRelativePathWithAllowJS/node_modules/myLib/myLib.d.ts create mode 100644 tests/cases/projects/projectOption/SpecifyExcludeWithOutUsingRelativePathWithAllowJS/tsconfig.json diff --git a/tests/cases/projects/projectOption/DefaultExcludeNodeModulesAndOutDir/OutDir/a.d.ts b/tests/cases/projects/projectOption/DefaultExcludeNodeModulesAndOutDir/OutDir/a.d.ts new file mode 100644 index 0000000000000..d9e24d329b733 --- /dev/null +++ b/tests/cases/projects/projectOption/DefaultExcludeNodeModulesAndOutDir/OutDir/a.d.ts @@ -0,0 +1 @@ +declare var test: number; \ No newline at end of file diff --git a/tests/cases/projects/projectOption/DefaultExcludeNodeModulesAndOutDir/a.ts b/tests/cases/projects/projectOption/DefaultExcludeNodeModulesAndOutDir/a.ts new file mode 100644 index 0000000000000..6d820a0093e01 --- /dev/null +++ b/tests/cases/projects/projectOption/DefaultExcludeNodeModulesAndOutDir/a.ts @@ -0,0 +1 @@ +var test = 10; \ No newline at end of file diff --git a/tests/cases/projects/projectOption/DefaultExcludeNodeModulesAndOutDir/node_modules/myLib/myLib.d.ts b/tests/cases/projects/projectOption/DefaultExcludeNodeModulesAndOutDir/node_modules/myLib/myLib.d.ts new file mode 100644 index 0000000000000..b2ff898d36a7d --- /dev/null +++ b/tests/cases/projects/projectOption/DefaultExcludeNodeModulesAndOutDir/node_modules/myLib/myLib.d.ts @@ -0,0 +1,2 @@ +// This files shouldn't be included in the compilation +declare var test: string; \ No newline at end of file diff --git a/tests/cases/projects/projectOption/DefaultExcludeNodeModulesAndOutDir/tsconfig.json b/tests/cases/projects/projectOption/DefaultExcludeNodeModulesAndOutDir/tsconfig.json new file mode 100644 index 0000000000000..637d207903964 --- /dev/null +++ b/tests/cases/projects/projectOption/DefaultExcludeNodeModulesAndOutDir/tsconfig.json @@ -0,0 +1,6 @@ +{ + "compilerOptions": { + "outDir": "OutDir", + "declaration": true + } +} \ No newline at end of file diff --git a/tests/cases/projects/projectOption/DefaultExcludeNodeModulesAndOutDirWithAllowJS/OutDir/a.d.ts b/tests/cases/projects/projectOption/DefaultExcludeNodeModulesAndOutDirWithAllowJS/OutDir/a.d.ts new file mode 100644 index 0000000000000..d9e24d329b733 --- /dev/null +++ b/tests/cases/projects/projectOption/DefaultExcludeNodeModulesAndOutDirWithAllowJS/OutDir/a.d.ts @@ -0,0 +1 @@ +declare var test: number; \ No newline at end of file diff --git a/tests/cases/projects/projectOption/DefaultExcludeNodeModulesAndOutDirWithAllowJS/a.ts b/tests/cases/projects/projectOption/DefaultExcludeNodeModulesAndOutDirWithAllowJS/a.ts new file mode 100644 index 0000000000000..6d820a0093e01 --- /dev/null +++ b/tests/cases/projects/projectOption/DefaultExcludeNodeModulesAndOutDirWithAllowJS/a.ts @@ -0,0 +1 @@ +var test = 10; \ No newline at end of file diff --git a/tests/cases/projects/projectOption/DefaultExcludeNodeModulesAndOutDirWithAllowJS/node_modules/myLib/myLib.d.ts b/tests/cases/projects/projectOption/DefaultExcludeNodeModulesAndOutDirWithAllowJS/node_modules/myLib/myLib.d.ts new file mode 100644 index 0000000000000..b2ff898d36a7d --- /dev/null +++ b/tests/cases/projects/projectOption/DefaultExcludeNodeModulesAndOutDirWithAllowJS/node_modules/myLib/myLib.d.ts @@ -0,0 +1,2 @@ +// This files shouldn't be included in the compilation +declare var test: string; \ No newline at end of file diff --git a/tests/cases/projects/projectOption/DefaultExcludeNodeModulesAndOutDirWithAllowJS/tsconfig.json b/tests/cases/projects/projectOption/DefaultExcludeNodeModulesAndOutDirWithAllowJS/tsconfig.json new file mode 100644 index 0000000000000..01e0acc03014c --- /dev/null +++ b/tests/cases/projects/projectOption/DefaultExcludeNodeModulesAndOutDirWithAllowJS/tsconfig.json @@ -0,0 +1,6 @@ +{ + "compilerOptions": { + "outDir": "OutDir", + "allowJs": true + } +} \ No newline at end of file diff --git a/tests/cases/projects/projectOption/DefaultExcludeNodeModulesAndRelativePathOutDir/OutDir/a.d.ts b/tests/cases/projects/projectOption/DefaultExcludeNodeModulesAndRelativePathOutDir/OutDir/a.d.ts new file mode 100644 index 0000000000000..d9e24d329b733 --- /dev/null +++ b/tests/cases/projects/projectOption/DefaultExcludeNodeModulesAndRelativePathOutDir/OutDir/a.d.ts @@ -0,0 +1 @@ +declare var test: number; \ No newline at end of file diff --git a/tests/cases/projects/projectOption/DefaultExcludeNodeModulesAndRelativePathOutDir/a.ts b/tests/cases/projects/projectOption/DefaultExcludeNodeModulesAndRelativePathOutDir/a.ts new file mode 100644 index 0000000000000..b31b769ead020 --- /dev/null +++ b/tests/cases/projects/projectOption/DefaultExcludeNodeModulesAndRelativePathOutDir/a.ts @@ -0,0 +1 @@ + var test = 10; \ No newline at end of file diff --git a/tests/cases/projects/projectOption/DefaultExcludeNodeModulesAndRelativePathOutDir/node_modules/myLib/myLib.d.ts b/tests/cases/projects/projectOption/DefaultExcludeNodeModulesAndRelativePathOutDir/node_modules/myLib/myLib.d.ts new file mode 100644 index 0000000000000..b2ff898d36a7d --- /dev/null +++ b/tests/cases/projects/projectOption/DefaultExcludeNodeModulesAndRelativePathOutDir/node_modules/myLib/myLib.d.ts @@ -0,0 +1,2 @@ +// This files shouldn't be included in the compilation +declare var test: string; \ No newline at end of file diff --git a/tests/cases/projects/projectOption/DefaultExcludeNodeModulesAndRelativePathOutDir/tsconfig.json b/tests/cases/projects/projectOption/DefaultExcludeNodeModulesAndRelativePathOutDir/tsconfig.json new file mode 100644 index 0000000000000..714a54ab5f047 --- /dev/null +++ b/tests/cases/projects/projectOption/DefaultExcludeNodeModulesAndRelativePathOutDir/tsconfig.json @@ -0,0 +1,6 @@ +{ + "compilerOptions": { + "outDir": "./OutDir", + "declaration": true + } +} \ No newline at end of file diff --git a/tests/cases/projects/projectOption/DefaultExcludeNodeModulesAndRelativePathOutDirWithAllowJS/OutDir/a.d.ts b/tests/cases/projects/projectOption/DefaultExcludeNodeModulesAndRelativePathOutDirWithAllowJS/OutDir/a.d.ts new file mode 100644 index 0000000000000..d9e24d329b733 --- /dev/null +++ b/tests/cases/projects/projectOption/DefaultExcludeNodeModulesAndRelativePathOutDirWithAllowJS/OutDir/a.d.ts @@ -0,0 +1 @@ +declare var test: number; \ No newline at end of file diff --git a/tests/cases/projects/projectOption/DefaultExcludeNodeModulesAndRelativePathOutDirWithAllowJS/a.ts b/tests/cases/projects/projectOption/DefaultExcludeNodeModulesAndRelativePathOutDirWithAllowJS/a.ts new file mode 100644 index 0000000000000..b31b769ead020 --- /dev/null +++ b/tests/cases/projects/projectOption/DefaultExcludeNodeModulesAndRelativePathOutDirWithAllowJS/a.ts @@ -0,0 +1 @@ + var test = 10; \ No newline at end of file diff --git a/tests/cases/projects/projectOption/DefaultExcludeNodeModulesAndRelativePathOutDirWithAllowJS/node_modules/myLib/myLib.d.ts b/tests/cases/projects/projectOption/DefaultExcludeNodeModulesAndRelativePathOutDirWithAllowJS/node_modules/myLib/myLib.d.ts new file mode 100644 index 0000000000000..b2ff898d36a7d --- /dev/null +++ b/tests/cases/projects/projectOption/DefaultExcludeNodeModulesAndRelativePathOutDirWithAllowJS/node_modules/myLib/myLib.d.ts @@ -0,0 +1,2 @@ +// This files shouldn't be included in the compilation +declare var test: string; \ No newline at end of file diff --git a/tests/cases/projects/projectOption/DefaultExcludeNodeModulesAndRelativePathOutDirWithAllowJS/tsconfig.json b/tests/cases/projects/projectOption/DefaultExcludeNodeModulesAndRelativePathOutDirWithAllowJS/tsconfig.json new file mode 100644 index 0000000000000..a58e13f421027 --- /dev/null +++ b/tests/cases/projects/projectOption/DefaultExcludeNodeModulesAndRelativePathOutDirWithAllowJS/tsconfig.json @@ -0,0 +1,6 @@ +{ + "compilerOptions": { + "outDir": "./OutDir", + "allowJs": true + } +} \ No newline at end of file diff --git a/tests/cases/projects/projectOption/DefaultExcludeOnlyNodeModules/a.ts b/tests/cases/projects/projectOption/DefaultExcludeOnlyNodeModules/a.ts new file mode 100644 index 0000000000000..6d820a0093e01 --- /dev/null +++ b/tests/cases/projects/projectOption/DefaultExcludeOnlyNodeModules/a.ts @@ -0,0 +1 @@ +var test = 10; \ No newline at end of file diff --git a/tests/cases/projects/projectOption/DefaultExcludeOnlyNodeModules/node_modules/myLib/myLib.d.ts b/tests/cases/projects/projectOption/DefaultExcludeOnlyNodeModules/node_modules/myLib/myLib.d.ts new file mode 100644 index 0000000000000..b2ff898d36a7d --- /dev/null +++ b/tests/cases/projects/projectOption/DefaultExcludeOnlyNodeModules/node_modules/myLib/myLib.d.ts @@ -0,0 +1,2 @@ +// This files shouldn't be included in the compilation +declare var test: string; \ No newline at end of file diff --git a/tests/cases/projects/projectOption/DefaultExcludeOnlyNodeModules/tsconfig.json b/tests/cases/projects/projectOption/DefaultExcludeOnlyNodeModules/tsconfig.json new file mode 100644 index 0000000000000..17886db3a338c --- /dev/null +++ b/tests/cases/projects/projectOption/DefaultExcludeOnlyNodeModules/tsconfig.json @@ -0,0 +1,5 @@ +{ + "compilerOptions": { + "target": "es5" + } +} \ No newline at end of file diff --git a/tests/cases/projects/projectOption/SpecifyExcludeUsingRelativePath/OutDir/a.d.ts b/tests/cases/projects/projectOption/SpecifyExcludeUsingRelativePath/OutDir/a.d.ts new file mode 100644 index 0000000000000..fb088b509a299 --- /dev/null +++ b/tests/cases/projects/projectOption/SpecifyExcludeUsingRelativePath/OutDir/a.d.ts @@ -0,0 +1 @@ +declare var test: string; // Shouldn't error since it is not include in compilation \ No newline at end of file diff --git a/tests/cases/projects/projectOption/SpecifyExcludeUsingRelativePath/a.ts b/tests/cases/projects/projectOption/SpecifyExcludeUsingRelativePath/a.ts new file mode 100644 index 0000000000000..b31b769ead020 --- /dev/null +++ b/tests/cases/projects/projectOption/SpecifyExcludeUsingRelativePath/a.ts @@ -0,0 +1 @@ + var test = 10; \ No newline at end of file diff --git a/tests/cases/projects/projectOption/SpecifyExcludeUsingRelativePath/node_modules/myLib/myLib.d.ts b/tests/cases/projects/projectOption/SpecifyExcludeUsingRelativePath/node_modules/myLib/myLib.d.ts new file mode 100644 index 0000000000000..b2ff898d36a7d --- /dev/null +++ b/tests/cases/projects/projectOption/SpecifyExcludeUsingRelativePath/node_modules/myLib/myLib.d.ts @@ -0,0 +1,2 @@ +// This files shouldn't be included in the compilation +declare var test: string; \ No newline at end of file diff --git a/tests/cases/projects/projectOption/SpecifyExcludeUsingRelativePath/tsconfig.json b/tests/cases/projects/projectOption/SpecifyExcludeUsingRelativePath/tsconfig.json new file mode 100644 index 0000000000000..1bca6b45760df --- /dev/null +++ b/tests/cases/projects/projectOption/SpecifyExcludeUsingRelativePath/tsconfig.json @@ -0,0 +1,10 @@ +{ + "compilerOptions": { + "outDir": "./OutDir", + "declaration": true + }, + "exclude": [ + "./node_modules", + "./OutDir" + ] +} \ No newline at end of file diff --git a/tests/cases/projects/projectOption/SpecifyExcludeUsingRelativePathWithAllowJS/OutDir/a.d.ts b/tests/cases/projects/projectOption/SpecifyExcludeUsingRelativePathWithAllowJS/OutDir/a.d.ts new file mode 100644 index 0000000000000..fb088b509a299 --- /dev/null +++ b/tests/cases/projects/projectOption/SpecifyExcludeUsingRelativePathWithAllowJS/OutDir/a.d.ts @@ -0,0 +1 @@ +declare var test: string; // Shouldn't error since it is not include in compilation \ No newline at end of file diff --git a/tests/cases/projects/projectOption/SpecifyExcludeUsingRelativePathWithAllowJS/a.ts b/tests/cases/projects/projectOption/SpecifyExcludeUsingRelativePathWithAllowJS/a.ts new file mode 100644 index 0000000000000..b31b769ead020 --- /dev/null +++ b/tests/cases/projects/projectOption/SpecifyExcludeUsingRelativePathWithAllowJS/a.ts @@ -0,0 +1 @@ + var test = 10; \ No newline at end of file diff --git a/tests/cases/projects/projectOption/SpecifyExcludeUsingRelativePathWithAllowJS/node_modules/myLib/myLib.d.ts b/tests/cases/projects/projectOption/SpecifyExcludeUsingRelativePathWithAllowJS/node_modules/myLib/myLib.d.ts new file mode 100644 index 0000000000000..b2ff898d36a7d --- /dev/null +++ b/tests/cases/projects/projectOption/SpecifyExcludeUsingRelativePathWithAllowJS/node_modules/myLib/myLib.d.ts @@ -0,0 +1,2 @@ +// This files shouldn't be included in the compilation +declare var test: string; \ No newline at end of file diff --git a/tests/cases/projects/projectOption/SpecifyExcludeUsingRelativePathWithAllowJS/tsconfig.json b/tests/cases/projects/projectOption/SpecifyExcludeUsingRelativePathWithAllowJS/tsconfig.json new file mode 100644 index 0000000000000..e9b9f86e5cfb1 --- /dev/null +++ b/tests/cases/projects/projectOption/SpecifyExcludeUsingRelativePathWithAllowJS/tsconfig.json @@ -0,0 +1,10 @@ +{ + "compilerOptions": { + "outDir": "./OutDir", + "allowJs": true + }, + "exclude": [ + "./node_modules", + "./OutDir" + ] +} \ No newline at end of file diff --git a/tests/cases/projects/projectOption/SpecifyExcludeWithOutUsingRelativePath/OutDir/a.d.ts b/tests/cases/projects/projectOption/SpecifyExcludeWithOutUsingRelativePath/OutDir/a.d.ts new file mode 100644 index 0000000000000..fb088b509a299 --- /dev/null +++ b/tests/cases/projects/projectOption/SpecifyExcludeWithOutUsingRelativePath/OutDir/a.d.ts @@ -0,0 +1 @@ +declare var test: string; // Shouldn't error since it is not include in compilation \ No newline at end of file diff --git a/tests/cases/projects/projectOption/SpecifyExcludeWithOutUsingRelativePath/a.ts b/tests/cases/projects/projectOption/SpecifyExcludeWithOutUsingRelativePath/a.ts new file mode 100644 index 0000000000000..b31b769ead020 --- /dev/null +++ b/tests/cases/projects/projectOption/SpecifyExcludeWithOutUsingRelativePath/a.ts @@ -0,0 +1 @@ + var test = 10; \ No newline at end of file diff --git a/tests/cases/projects/projectOption/SpecifyExcludeWithOutUsingRelativePath/node_modules/myLib/myLib.d.ts b/tests/cases/projects/projectOption/SpecifyExcludeWithOutUsingRelativePath/node_modules/myLib/myLib.d.ts new file mode 100644 index 0000000000000..b2ff898d36a7d --- /dev/null +++ b/tests/cases/projects/projectOption/SpecifyExcludeWithOutUsingRelativePath/node_modules/myLib/myLib.d.ts @@ -0,0 +1,2 @@ +// This files shouldn't be included in the compilation +declare var test: string; \ No newline at end of file diff --git a/tests/cases/projects/projectOption/SpecifyExcludeWithOutUsingRelativePath/tsconfig.json b/tests/cases/projects/projectOption/SpecifyExcludeWithOutUsingRelativePath/tsconfig.json new file mode 100644 index 0000000000000..c45ea619b8c6c --- /dev/null +++ b/tests/cases/projects/projectOption/SpecifyExcludeWithOutUsingRelativePath/tsconfig.json @@ -0,0 +1,10 @@ +{ + "compilerOptions": { + "outDir": "OutDir", + "declaration": true + }, + "exclude": [ + "node_modules", + "OutDir" + ] +} \ No newline at end of file diff --git a/tests/cases/projects/projectOption/SpecifyExcludeWithOutUsingRelativePathWithAllowJS/OutDir/a.d.ts b/tests/cases/projects/projectOption/SpecifyExcludeWithOutUsingRelativePathWithAllowJS/OutDir/a.d.ts new file mode 100644 index 0000000000000..fb088b509a299 --- /dev/null +++ b/tests/cases/projects/projectOption/SpecifyExcludeWithOutUsingRelativePathWithAllowJS/OutDir/a.d.ts @@ -0,0 +1 @@ +declare var test: string; // Shouldn't error since it is not include in compilation \ No newline at end of file diff --git a/tests/cases/projects/projectOption/SpecifyExcludeWithOutUsingRelativePathWithAllowJS/a.ts b/tests/cases/projects/projectOption/SpecifyExcludeWithOutUsingRelativePathWithAllowJS/a.ts new file mode 100644 index 0000000000000..b31b769ead020 --- /dev/null +++ b/tests/cases/projects/projectOption/SpecifyExcludeWithOutUsingRelativePathWithAllowJS/a.ts @@ -0,0 +1 @@ + var test = 10; \ No newline at end of file diff --git a/tests/cases/projects/projectOption/SpecifyExcludeWithOutUsingRelativePathWithAllowJS/node_modules/myLib/myLib.d.ts b/tests/cases/projects/projectOption/SpecifyExcludeWithOutUsingRelativePathWithAllowJS/node_modules/myLib/myLib.d.ts new file mode 100644 index 0000000000000..b2ff898d36a7d --- /dev/null +++ b/tests/cases/projects/projectOption/SpecifyExcludeWithOutUsingRelativePathWithAllowJS/node_modules/myLib/myLib.d.ts @@ -0,0 +1,2 @@ +// This files shouldn't be included in the compilation +declare var test: string; \ No newline at end of file diff --git a/tests/cases/projects/projectOption/SpecifyExcludeWithOutUsingRelativePathWithAllowJS/tsconfig.json b/tests/cases/projects/projectOption/SpecifyExcludeWithOutUsingRelativePathWithAllowJS/tsconfig.json new file mode 100644 index 0000000000000..a80c64d2dac16 --- /dev/null +++ b/tests/cases/projects/projectOption/SpecifyExcludeWithOutUsingRelativePathWithAllowJS/tsconfig.json @@ -0,0 +1,10 @@ +{ + "compilerOptions": { + "outDir": "OutDir", + "allowJs": true + }, + "exclude": [ + "node_modules", + "OutDir" + ] +} \ No newline at end of file From 5feb63a41919d2573157744925d1d317853ed889 Mon Sep 17 00:00:00 2001 From: Kanchalai Tanglertsampan Date: Wed, 8 Jun 2016 11:01:14 -0700 Subject: [PATCH 3/4] Add project .json files --- tests/cases/project/defaultExcludeNodeModulesAndOutDir.json | 6 ++++++ .../defaultExcludeNodeModulesAndOutDirWithAllowJS.json | 5 +++++ .../defaultExcludeNodeModulesAndRelativePathOutDir.json | 6 ++++++ ...tExcludeNodeModulesAndRelativePathOutDirWithAllowJS.json | 5 +++++ tests/cases/project/defaultExcludeOnlyNodeModules.json | 6 ++++++ tests/cases/project/specifyExcludeUsingRelativepath.json | 6 ++++++ .../project/specifyExcludeUsingRelativepathWithAllowJS.json | 5 +++++ .../project/specifyExcludeWithOutUsingRelativePath.json | 6 ++++++ .../specifyExcludeWithOutUsingRelativePathWithAllowJS.json | 5 +++++ 9 files changed, 50 insertions(+) create mode 100644 tests/cases/project/defaultExcludeNodeModulesAndOutDir.json create mode 100644 tests/cases/project/defaultExcludeNodeModulesAndOutDirWithAllowJS.json create mode 100644 tests/cases/project/defaultExcludeNodeModulesAndRelativePathOutDir.json create mode 100644 tests/cases/project/defaultExcludeNodeModulesAndRelativePathOutDirWithAllowJS.json create mode 100644 tests/cases/project/defaultExcludeOnlyNodeModules.json create mode 100644 tests/cases/project/specifyExcludeUsingRelativepath.json create mode 100644 tests/cases/project/specifyExcludeUsingRelativepathWithAllowJS.json create mode 100644 tests/cases/project/specifyExcludeWithOutUsingRelativePath.json create mode 100644 tests/cases/project/specifyExcludeWithOutUsingRelativePathWithAllowJS.json diff --git a/tests/cases/project/defaultExcludeNodeModulesAndOutDir.json b/tests/cases/project/defaultExcludeNodeModulesAndOutDir.json new file mode 100644 index 0000000000000..24e6c94aa2ea9 --- /dev/null +++ b/tests/cases/project/defaultExcludeNodeModulesAndOutDir.json @@ -0,0 +1,6 @@ +{ + "scenario": "Verify default exclude property in project option", + "projectRoot": "tests/cases/projects/projectOption/DefaultExcludeNodeModulesAndOutDir", + "baselineCheck": true, + "declaration": true +} \ No newline at end of file diff --git a/tests/cases/project/defaultExcludeNodeModulesAndOutDirWithAllowJS.json b/tests/cases/project/defaultExcludeNodeModulesAndOutDirWithAllowJS.json new file mode 100644 index 0000000000000..06f97090d61e9 --- /dev/null +++ b/tests/cases/project/defaultExcludeNodeModulesAndOutDirWithAllowJS.json @@ -0,0 +1,5 @@ +{ + "scenario": "Verify default exclude property in project option", + "projectRoot": "tests/cases/projects/projectOption/DefaultExcludeNodeModulesAndOutDirWithAllowJS", + "baselineCheck": true +} \ No newline at end of file diff --git a/tests/cases/project/defaultExcludeNodeModulesAndRelativePathOutDir.json b/tests/cases/project/defaultExcludeNodeModulesAndRelativePathOutDir.json new file mode 100644 index 0000000000000..3ec5d45200a7d --- /dev/null +++ b/tests/cases/project/defaultExcludeNodeModulesAndRelativePathOutDir.json @@ -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 +} \ No newline at end of file diff --git a/tests/cases/project/defaultExcludeNodeModulesAndRelativePathOutDirWithAllowJS.json b/tests/cases/project/defaultExcludeNodeModulesAndRelativePathOutDirWithAllowJS.json new file mode 100644 index 0000000000000..3aa1a4065b26c --- /dev/null +++ b/tests/cases/project/defaultExcludeNodeModulesAndRelativePathOutDirWithAllowJS.json @@ -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 +} \ No newline at end of file diff --git a/tests/cases/project/defaultExcludeOnlyNodeModules.json b/tests/cases/project/defaultExcludeOnlyNodeModules.json new file mode 100644 index 0000000000000..dfed13c888b2d --- /dev/null +++ b/tests/cases/project/defaultExcludeOnlyNodeModules.json @@ -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 +} \ No newline at end of file diff --git a/tests/cases/project/specifyExcludeUsingRelativepath.json b/tests/cases/project/specifyExcludeUsingRelativepath.json new file mode 100644 index 0000000000000..b2ec249c38d71 --- /dev/null +++ b/tests/cases/project/specifyExcludeUsingRelativepath.json @@ -0,0 +1,6 @@ +{ + "scenario": "Verify exclude property without using relative path", + "projectRoot": "tests/cases/projects/projectOption/SpecifyExcludeUsingRelativePath", + "baselineCheck": true, + "declaration": true +} \ No newline at end of file diff --git a/tests/cases/project/specifyExcludeUsingRelativepathWithAllowJS.json b/tests/cases/project/specifyExcludeUsingRelativepathWithAllowJS.json new file mode 100644 index 0000000000000..c073e8077da1e --- /dev/null +++ b/tests/cases/project/specifyExcludeUsingRelativepathWithAllowJS.json @@ -0,0 +1,5 @@ +{ + "scenario": "Verify exclude property without using relative path", + "projectRoot": "tests/cases/projects/projectOption/SpecifyExcludeUsingRelativePathWithAllowJS", + "baselineCheck": true +} \ No newline at end of file diff --git a/tests/cases/project/specifyExcludeWithOutUsingRelativePath.json b/tests/cases/project/specifyExcludeWithOutUsingRelativePath.json new file mode 100644 index 0000000000000..b279c5f0ac5df --- /dev/null +++ b/tests/cases/project/specifyExcludeWithOutUsingRelativePath.json @@ -0,0 +1,6 @@ +{ + "scenario": "Verify exclude property without using relative path", + "projectRoot": "tests/cases/projects/projectOption/SpecifyExcludeWithOutUsingRelativePath", + "baselineCheck": true, + "declaration": true +} \ No newline at end of file diff --git a/tests/cases/project/specifyExcludeWithOutUsingRelativePathWithAllowJS.json b/tests/cases/project/specifyExcludeWithOutUsingRelativePathWithAllowJS.json new file mode 100644 index 0000000000000..53f030b95771b --- /dev/null +++ b/tests/cases/project/specifyExcludeWithOutUsingRelativePathWithAllowJS.json @@ -0,0 +1,5 @@ +{ + "scenario": "Verify exclude property without using relative path", + "projectRoot": "tests/cases/projects/projectOption/SpecifyExcludeWithOutUsingRelativePathWithAllowJS", + "baselineCheck": true +} \ No newline at end of file From 911fad2853bce3d678f5f6f9604084a6dafeb8e5 Mon Sep 17 00:00:00 2001 From: Kanchalai Tanglertsampan Date: Wed, 8 Jun 2016 11:43:43 -0700 Subject: [PATCH 4/4] Update baselines --- .../amd/OutDir/a.d.ts | 1 + .../amd/OutDir/a.js | 1 + .../amd/defaultExcludeNodeModulesAndOutDir.json | 14 ++++++++++++++ .../node/OutDir/a.d.ts | 1 + .../node/OutDir/a.js | 1 + .../node/defaultExcludeNodeModulesAndOutDir.json | 14 ++++++++++++++ .../amd/OutDir/a.js | 1 + ...aultExcludeNodeModulesAndOutDirWithAllowJS.json | 12 ++++++++++++ .../node/OutDir/a.js | 1 + ...aultExcludeNodeModulesAndOutDirWithAllowJS.json | 12 ++++++++++++ .../amd/OutDir/a.d.ts | 1 + .../amd/OutDir/a.js | 1 + ...ultExcludeNodeModulesAndRelativePathOutDir.json | 14 ++++++++++++++ .../node/OutDir/a.d.ts | 1 + .../node/OutDir/a.js | 1 + ...ultExcludeNodeModulesAndRelativePathOutDir.json | 14 ++++++++++++++ .../amd/OutDir/a.js | 1 + ...odeModulesAndRelativePathOutDirWithAllowJS.json | 12 ++++++++++++ .../node/OutDir/a.js | 1 + ...odeModulesAndRelativePathOutDirWithAllowJS.json | 12 ++++++++++++ .../defaultExcludeOnlyNodeModules/amd/a.d.ts | 1 + .../project/defaultExcludeOnlyNodeModules/amd/a.js | 1 + .../amd/defaultExcludeOnlyNodeModules.json | 14 ++++++++++++++ .../defaultExcludeOnlyNodeModules/node/a.d.ts | 1 + .../defaultExcludeOnlyNodeModules/node/a.js | 1 + .../node/defaultExcludeOnlyNodeModules.json | 14 ++++++++++++++ .../amd/OutDir/a.d.ts | 1 + .../amd/OutDir/a.js | 1 + .../amd/specifyExcludeUsingRelativepath.json | 14 ++++++++++++++ .../node/OutDir/a.d.ts | 1 + .../node/OutDir/a.js | 1 + .../node/specifyExcludeUsingRelativepath.json | 14 ++++++++++++++ .../amd/OutDir/a.js | 1 + ...specifyExcludeUsingRelativepathWithAllowJS.json | 12 ++++++++++++ .../node/OutDir/a.js | 1 + ...specifyExcludeUsingRelativepathWithAllowJS.json | 12 ++++++++++++ .../amd/OutDir/a.d.ts | 1 + .../amd/OutDir/a.js | 1 + .../specifyExcludeWithOutUsingRelativePath.json | 14 ++++++++++++++ .../node/OutDir/a.d.ts | 1 + .../node/OutDir/a.js | 1 + .../specifyExcludeWithOutUsingRelativePath.json | 14 ++++++++++++++ .../amd/OutDir/a.js | 1 + ...ExcludeWithOutUsingRelativePathWithAllowJS.json | 12 ++++++++++++ .../node/OutDir/a.js | 1 + ...ExcludeWithOutUsingRelativePathWithAllowJS.json | 12 ++++++++++++ 46 files changed, 264 insertions(+) create mode 100644 tests/baselines/reference/project/defaultExcludeNodeModulesAndOutDir/amd/OutDir/a.d.ts create mode 100644 tests/baselines/reference/project/defaultExcludeNodeModulesAndOutDir/amd/OutDir/a.js create mode 100644 tests/baselines/reference/project/defaultExcludeNodeModulesAndOutDir/amd/defaultExcludeNodeModulesAndOutDir.json create mode 100644 tests/baselines/reference/project/defaultExcludeNodeModulesAndOutDir/node/OutDir/a.d.ts create mode 100644 tests/baselines/reference/project/defaultExcludeNodeModulesAndOutDir/node/OutDir/a.js create mode 100644 tests/baselines/reference/project/defaultExcludeNodeModulesAndOutDir/node/defaultExcludeNodeModulesAndOutDir.json create mode 100644 tests/baselines/reference/project/defaultExcludeNodeModulesAndOutDirWithAllowJS/amd/OutDir/a.js create mode 100644 tests/baselines/reference/project/defaultExcludeNodeModulesAndOutDirWithAllowJS/amd/defaultExcludeNodeModulesAndOutDirWithAllowJS.json create mode 100644 tests/baselines/reference/project/defaultExcludeNodeModulesAndOutDirWithAllowJS/node/OutDir/a.js create mode 100644 tests/baselines/reference/project/defaultExcludeNodeModulesAndOutDirWithAllowJS/node/defaultExcludeNodeModulesAndOutDirWithAllowJS.json create mode 100644 tests/baselines/reference/project/defaultExcludeNodeModulesAndRelativePathOutDir/amd/OutDir/a.d.ts create mode 100644 tests/baselines/reference/project/defaultExcludeNodeModulesAndRelativePathOutDir/amd/OutDir/a.js create mode 100644 tests/baselines/reference/project/defaultExcludeNodeModulesAndRelativePathOutDir/amd/defaultExcludeNodeModulesAndRelativePathOutDir.json create mode 100644 tests/baselines/reference/project/defaultExcludeNodeModulesAndRelativePathOutDir/node/OutDir/a.d.ts create mode 100644 tests/baselines/reference/project/defaultExcludeNodeModulesAndRelativePathOutDir/node/OutDir/a.js create mode 100644 tests/baselines/reference/project/defaultExcludeNodeModulesAndRelativePathOutDir/node/defaultExcludeNodeModulesAndRelativePathOutDir.json create mode 100644 tests/baselines/reference/project/defaultExcludeNodeModulesAndRelativePathOutDirWithAllowJS/amd/OutDir/a.js create mode 100644 tests/baselines/reference/project/defaultExcludeNodeModulesAndRelativePathOutDirWithAllowJS/amd/defaultExcludeNodeModulesAndRelativePathOutDirWithAllowJS.json create mode 100644 tests/baselines/reference/project/defaultExcludeNodeModulesAndRelativePathOutDirWithAllowJS/node/OutDir/a.js create mode 100644 tests/baselines/reference/project/defaultExcludeNodeModulesAndRelativePathOutDirWithAllowJS/node/defaultExcludeNodeModulesAndRelativePathOutDirWithAllowJS.json create mode 100644 tests/baselines/reference/project/defaultExcludeOnlyNodeModules/amd/a.d.ts create mode 100644 tests/baselines/reference/project/defaultExcludeOnlyNodeModules/amd/a.js create mode 100644 tests/baselines/reference/project/defaultExcludeOnlyNodeModules/amd/defaultExcludeOnlyNodeModules.json create mode 100644 tests/baselines/reference/project/defaultExcludeOnlyNodeModules/node/a.d.ts create mode 100644 tests/baselines/reference/project/defaultExcludeOnlyNodeModules/node/a.js create mode 100644 tests/baselines/reference/project/defaultExcludeOnlyNodeModules/node/defaultExcludeOnlyNodeModules.json create mode 100644 tests/baselines/reference/project/specifyExcludeUsingRelativepath/amd/OutDir/a.d.ts create mode 100644 tests/baselines/reference/project/specifyExcludeUsingRelativepath/amd/OutDir/a.js create mode 100644 tests/baselines/reference/project/specifyExcludeUsingRelativepath/amd/specifyExcludeUsingRelativepath.json create mode 100644 tests/baselines/reference/project/specifyExcludeUsingRelativepath/node/OutDir/a.d.ts create mode 100644 tests/baselines/reference/project/specifyExcludeUsingRelativepath/node/OutDir/a.js create mode 100644 tests/baselines/reference/project/specifyExcludeUsingRelativepath/node/specifyExcludeUsingRelativepath.json create mode 100644 tests/baselines/reference/project/specifyExcludeUsingRelativepathWithAllowJS/amd/OutDir/a.js create mode 100644 tests/baselines/reference/project/specifyExcludeUsingRelativepathWithAllowJS/amd/specifyExcludeUsingRelativepathWithAllowJS.json create mode 100644 tests/baselines/reference/project/specifyExcludeUsingRelativepathWithAllowJS/node/OutDir/a.js create mode 100644 tests/baselines/reference/project/specifyExcludeUsingRelativepathWithAllowJS/node/specifyExcludeUsingRelativepathWithAllowJS.json create mode 100644 tests/baselines/reference/project/specifyExcludeWithOutUsingRelativePath/amd/OutDir/a.d.ts create mode 100644 tests/baselines/reference/project/specifyExcludeWithOutUsingRelativePath/amd/OutDir/a.js create mode 100644 tests/baselines/reference/project/specifyExcludeWithOutUsingRelativePath/amd/specifyExcludeWithOutUsingRelativePath.json create mode 100644 tests/baselines/reference/project/specifyExcludeWithOutUsingRelativePath/node/OutDir/a.d.ts create mode 100644 tests/baselines/reference/project/specifyExcludeWithOutUsingRelativePath/node/OutDir/a.js create mode 100644 tests/baselines/reference/project/specifyExcludeWithOutUsingRelativePath/node/specifyExcludeWithOutUsingRelativePath.json create mode 100644 tests/baselines/reference/project/specifyExcludeWithOutUsingRelativePathWithAllowJS/amd/OutDir/a.js create mode 100644 tests/baselines/reference/project/specifyExcludeWithOutUsingRelativePathWithAllowJS/amd/specifyExcludeWithOutUsingRelativePathWithAllowJS.json create mode 100644 tests/baselines/reference/project/specifyExcludeWithOutUsingRelativePathWithAllowJS/node/OutDir/a.js create mode 100644 tests/baselines/reference/project/specifyExcludeWithOutUsingRelativePathWithAllowJS/node/specifyExcludeWithOutUsingRelativePathWithAllowJS.json diff --git a/tests/baselines/reference/project/defaultExcludeNodeModulesAndOutDir/amd/OutDir/a.d.ts b/tests/baselines/reference/project/defaultExcludeNodeModulesAndOutDir/amd/OutDir/a.d.ts new file mode 100644 index 0000000000000..4c0b8989316ef --- /dev/null +++ b/tests/baselines/reference/project/defaultExcludeNodeModulesAndOutDir/amd/OutDir/a.d.ts @@ -0,0 +1 @@ +declare var test: number; diff --git a/tests/baselines/reference/project/defaultExcludeNodeModulesAndOutDir/amd/OutDir/a.js b/tests/baselines/reference/project/defaultExcludeNodeModulesAndOutDir/amd/OutDir/a.js new file mode 100644 index 0000000000000..e757934f20cc5 --- /dev/null +++ b/tests/baselines/reference/project/defaultExcludeNodeModulesAndOutDir/amd/OutDir/a.js @@ -0,0 +1 @@ +var test = 10; diff --git a/tests/baselines/reference/project/defaultExcludeNodeModulesAndOutDir/amd/defaultExcludeNodeModulesAndOutDir.json b/tests/baselines/reference/project/defaultExcludeNodeModulesAndOutDir/amd/defaultExcludeNodeModulesAndOutDir.json new file mode 100644 index 0000000000000..7e2820a05a0c6 --- /dev/null +++ b/tests/baselines/reference/project/defaultExcludeNodeModulesAndOutDir/amd/defaultExcludeNodeModulesAndOutDir.json @@ -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" + ] +} \ No newline at end of file diff --git a/tests/baselines/reference/project/defaultExcludeNodeModulesAndOutDir/node/OutDir/a.d.ts b/tests/baselines/reference/project/defaultExcludeNodeModulesAndOutDir/node/OutDir/a.d.ts new file mode 100644 index 0000000000000..4c0b8989316ef --- /dev/null +++ b/tests/baselines/reference/project/defaultExcludeNodeModulesAndOutDir/node/OutDir/a.d.ts @@ -0,0 +1 @@ +declare var test: number; diff --git a/tests/baselines/reference/project/defaultExcludeNodeModulesAndOutDir/node/OutDir/a.js b/tests/baselines/reference/project/defaultExcludeNodeModulesAndOutDir/node/OutDir/a.js new file mode 100644 index 0000000000000..e757934f20cc5 --- /dev/null +++ b/tests/baselines/reference/project/defaultExcludeNodeModulesAndOutDir/node/OutDir/a.js @@ -0,0 +1 @@ +var test = 10; diff --git a/tests/baselines/reference/project/defaultExcludeNodeModulesAndOutDir/node/defaultExcludeNodeModulesAndOutDir.json b/tests/baselines/reference/project/defaultExcludeNodeModulesAndOutDir/node/defaultExcludeNodeModulesAndOutDir.json new file mode 100644 index 0000000000000..7e2820a05a0c6 --- /dev/null +++ b/tests/baselines/reference/project/defaultExcludeNodeModulesAndOutDir/node/defaultExcludeNodeModulesAndOutDir.json @@ -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" + ] +} \ No newline at end of file diff --git a/tests/baselines/reference/project/defaultExcludeNodeModulesAndOutDirWithAllowJS/amd/OutDir/a.js b/tests/baselines/reference/project/defaultExcludeNodeModulesAndOutDirWithAllowJS/amd/OutDir/a.js new file mode 100644 index 0000000000000..e757934f20cc5 --- /dev/null +++ b/tests/baselines/reference/project/defaultExcludeNodeModulesAndOutDirWithAllowJS/amd/OutDir/a.js @@ -0,0 +1 @@ +var test = 10; diff --git a/tests/baselines/reference/project/defaultExcludeNodeModulesAndOutDirWithAllowJS/amd/defaultExcludeNodeModulesAndOutDirWithAllowJS.json b/tests/baselines/reference/project/defaultExcludeNodeModulesAndOutDirWithAllowJS/amd/defaultExcludeNodeModulesAndOutDirWithAllowJS.json new file mode 100644 index 0000000000000..a4183e5d5cf56 --- /dev/null +++ b/tests/baselines/reference/project/defaultExcludeNodeModulesAndOutDirWithAllowJS/amd/defaultExcludeNodeModulesAndOutDirWithAllowJS.json @@ -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" + ] +} \ No newline at end of file diff --git a/tests/baselines/reference/project/defaultExcludeNodeModulesAndOutDirWithAllowJS/node/OutDir/a.js b/tests/baselines/reference/project/defaultExcludeNodeModulesAndOutDirWithAllowJS/node/OutDir/a.js new file mode 100644 index 0000000000000..e757934f20cc5 --- /dev/null +++ b/tests/baselines/reference/project/defaultExcludeNodeModulesAndOutDirWithAllowJS/node/OutDir/a.js @@ -0,0 +1 @@ +var test = 10; diff --git a/tests/baselines/reference/project/defaultExcludeNodeModulesAndOutDirWithAllowJS/node/defaultExcludeNodeModulesAndOutDirWithAllowJS.json b/tests/baselines/reference/project/defaultExcludeNodeModulesAndOutDirWithAllowJS/node/defaultExcludeNodeModulesAndOutDirWithAllowJS.json new file mode 100644 index 0000000000000..a4183e5d5cf56 --- /dev/null +++ b/tests/baselines/reference/project/defaultExcludeNodeModulesAndOutDirWithAllowJS/node/defaultExcludeNodeModulesAndOutDirWithAllowJS.json @@ -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" + ] +} \ No newline at end of file diff --git a/tests/baselines/reference/project/defaultExcludeNodeModulesAndRelativePathOutDir/amd/OutDir/a.d.ts b/tests/baselines/reference/project/defaultExcludeNodeModulesAndRelativePathOutDir/amd/OutDir/a.d.ts new file mode 100644 index 0000000000000..4c0b8989316ef --- /dev/null +++ b/tests/baselines/reference/project/defaultExcludeNodeModulesAndRelativePathOutDir/amd/OutDir/a.d.ts @@ -0,0 +1 @@ +declare var test: number; diff --git a/tests/baselines/reference/project/defaultExcludeNodeModulesAndRelativePathOutDir/amd/OutDir/a.js b/tests/baselines/reference/project/defaultExcludeNodeModulesAndRelativePathOutDir/amd/OutDir/a.js new file mode 100644 index 0000000000000..e757934f20cc5 --- /dev/null +++ b/tests/baselines/reference/project/defaultExcludeNodeModulesAndRelativePathOutDir/amd/OutDir/a.js @@ -0,0 +1 @@ +var test = 10; diff --git a/tests/baselines/reference/project/defaultExcludeNodeModulesAndRelativePathOutDir/amd/defaultExcludeNodeModulesAndRelativePathOutDir.json b/tests/baselines/reference/project/defaultExcludeNodeModulesAndRelativePathOutDir/amd/defaultExcludeNodeModulesAndRelativePathOutDir.json new file mode 100644 index 0000000000000..66c0c65ad2160 --- /dev/null +++ b/tests/baselines/reference/project/defaultExcludeNodeModulesAndRelativePathOutDir/amd/defaultExcludeNodeModulesAndRelativePathOutDir.json @@ -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" + ] +} \ No newline at end of file diff --git a/tests/baselines/reference/project/defaultExcludeNodeModulesAndRelativePathOutDir/node/OutDir/a.d.ts b/tests/baselines/reference/project/defaultExcludeNodeModulesAndRelativePathOutDir/node/OutDir/a.d.ts new file mode 100644 index 0000000000000..4c0b8989316ef --- /dev/null +++ b/tests/baselines/reference/project/defaultExcludeNodeModulesAndRelativePathOutDir/node/OutDir/a.d.ts @@ -0,0 +1 @@ +declare var test: number; diff --git a/tests/baselines/reference/project/defaultExcludeNodeModulesAndRelativePathOutDir/node/OutDir/a.js b/tests/baselines/reference/project/defaultExcludeNodeModulesAndRelativePathOutDir/node/OutDir/a.js new file mode 100644 index 0000000000000..e757934f20cc5 --- /dev/null +++ b/tests/baselines/reference/project/defaultExcludeNodeModulesAndRelativePathOutDir/node/OutDir/a.js @@ -0,0 +1 @@ +var test = 10; diff --git a/tests/baselines/reference/project/defaultExcludeNodeModulesAndRelativePathOutDir/node/defaultExcludeNodeModulesAndRelativePathOutDir.json b/tests/baselines/reference/project/defaultExcludeNodeModulesAndRelativePathOutDir/node/defaultExcludeNodeModulesAndRelativePathOutDir.json new file mode 100644 index 0000000000000..66c0c65ad2160 --- /dev/null +++ b/tests/baselines/reference/project/defaultExcludeNodeModulesAndRelativePathOutDir/node/defaultExcludeNodeModulesAndRelativePathOutDir.json @@ -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" + ] +} \ No newline at end of file diff --git a/tests/baselines/reference/project/defaultExcludeNodeModulesAndRelativePathOutDirWithAllowJS/amd/OutDir/a.js b/tests/baselines/reference/project/defaultExcludeNodeModulesAndRelativePathOutDirWithAllowJS/amd/OutDir/a.js new file mode 100644 index 0000000000000..e757934f20cc5 --- /dev/null +++ b/tests/baselines/reference/project/defaultExcludeNodeModulesAndRelativePathOutDirWithAllowJS/amd/OutDir/a.js @@ -0,0 +1 @@ +var test = 10; diff --git a/tests/baselines/reference/project/defaultExcludeNodeModulesAndRelativePathOutDirWithAllowJS/amd/defaultExcludeNodeModulesAndRelativePathOutDirWithAllowJS.json b/tests/baselines/reference/project/defaultExcludeNodeModulesAndRelativePathOutDirWithAllowJS/amd/defaultExcludeNodeModulesAndRelativePathOutDirWithAllowJS.json new file mode 100644 index 0000000000000..9b8a9465299d0 --- /dev/null +++ b/tests/baselines/reference/project/defaultExcludeNodeModulesAndRelativePathOutDirWithAllowJS/amd/defaultExcludeNodeModulesAndRelativePathOutDirWithAllowJS.json @@ -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" + ] +} \ No newline at end of file diff --git a/tests/baselines/reference/project/defaultExcludeNodeModulesAndRelativePathOutDirWithAllowJS/node/OutDir/a.js b/tests/baselines/reference/project/defaultExcludeNodeModulesAndRelativePathOutDirWithAllowJS/node/OutDir/a.js new file mode 100644 index 0000000000000..e757934f20cc5 --- /dev/null +++ b/tests/baselines/reference/project/defaultExcludeNodeModulesAndRelativePathOutDirWithAllowJS/node/OutDir/a.js @@ -0,0 +1 @@ +var test = 10; diff --git a/tests/baselines/reference/project/defaultExcludeNodeModulesAndRelativePathOutDirWithAllowJS/node/defaultExcludeNodeModulesAndRelativePathOutDirWithAllowJS.json b/tests/baselines/reference/project/defaultExcludeNodeModulesAndRelativePathOutDirWithAllowJS/node/defaultExcludeNodeModulesAndRelativePathOutDirWithAllowJS.json new file mode 100644 index 0000000000000..9b8a9465299d0 --- /dev/null +++ b/tests/baselines/reference/project/defaultExcludeNodeModulesAndRelativePathOutDirWithAllowJS/node/defaultExcludeNodeModulesAndRelativePathOutDirWithAllowJS.json @@ -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" + ] +} \ No newline at end of file diff --git a/tests/baselines/reference/project/defaultExcludeOnlyNodeModules/amd/a.d.ts b/tests/baselines/reference/project/defaultExcludeOnlyNodeModules/amd/a.d.ts new file mode 100644 index 0000000000000..4c0b8989316ef --- /dev/null +++ b/tests/baselines/reference/project/defaultExcludeOnlyNodeModules/amd/a.d.ts @@ -0,0 +1 @@ +declare var test: number; diff --git a/tests/baselines/reference/project/defaultExcludeOnlyNodeModules/amd/a.js b/tests/baselines/reference/project/defaultExcludeOnlyNodeModules/amd/a.js new file mode 100644 index 0000000000000..e757934f20cc5 --- /dev/null +++ b/tests/baselines/reference/project/defaultExcludeOnlyNodeModules/amd/a.js @@ -0,0 +1 @@ +var test = 10; diff --git a/tests/baselines/reference/project/defaultExcludeOnlyNodeModules/amd/defaultExcludeOnlyNodeModules.json b/tests/baselines/reference/project/defaultExcludeOnlyNodeModules/amd/defaultExcludeOnlyNodeModules.json new file mode 100644 index 0000000000000..2077f9421c2ef --- /dev/null +++ b/tests/baselines/reference/project/defaultExcludeOnlyNodeModules/amd/defaultExcludeOnlyNodeModules.json @@ -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" + ] +} \ No newline at end of file diff --git a/tests/baselines/reference/project/defaultExcludeOnlyNodeModules/node/a.d.ts b/tests/baselines/reference/project/defaultExcludeOnlyNodeModules/node/a.d.ts new file mode 100644 index 0000000000000..4c0b8989316ef --- /dev/null +++ b/tests/baselines/reference/project/defaultExcludeOnlyNodeModules/node/a.d.ts @@ -0,0 +1 @@ +declare var test: number; diff --git a/tests/baselines/reference/project/defaultExcludeOnlyNodeModules/node/a.js b/tests/baselines/reference/project/defaultExcludeOnlyNodeModules/node/a.js new file mode 100644 index 0000000000000..e757934f20cc5 --- /dev/null +++ b/tests/baselines/reference/project/defaultExcludeOnlyNodeModules/node/a.js @@ -0,0 +1 @@ +var test = 10; diff --git a/tests/baselines/reference/project/defaultExcludeOnlyNodeModules/node/defaultExcludeOnlyNodeModules.json b/tests/baselines/reference/project/defaultExcludeOnlyNodeModules/node/defaultExcludeOnlyNodeModules.json new file mode 100644 index 0000000000000..2077f9421c2ef --- /dev/null +++ b/tests/baselines/reference/project/defaultExcludeOnlyNodeModules/node/defaultExcludeOnlyNodeModules.json @@ -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" + ] +} \ No newline at end of file diff --git a/tests/baselines/reference/project/specifyExcludeUsingRelativepath/amd/OutDir/a.d.ts b/tests/baselines/reference/project/specifyExcludeUsingRelativepath/amd/OutDir/a.d.ts new file mode 100644 index 0000000000000..4c0b8989316ef --- /dev/null +++ b/tests/baselines/reference/project/specifyExcludeUsingRelativepath/amd/OutDir/a.d.ts @@ -0,0 +1 @@ +declare var test: number; diff --git a/tests/baselines/reference/project/specifyExcludeUsingRelativepath/amd/OutDir/a.js b/tests/baselines/reference/project/specifyExcludeUsingRelativepath/amd/OutDir/a.js new file mode 100644 index 0000000000000..e757934f20cc5 --- /dev/null +++ b/tests/baselines/reference/project/specifyExcludeUsingRelativepath/amd/OutDir/a.js @@ -0,0 +1 @@ +var test = 10; diff --git a/tests/baselines/reference/project/specifyExcludeUsingRelativepath/amd/specifyExcludeUsingRelativepath.json b/tests/baselines/reference/project/specifyExcludeUsingRelativepath/amd/specifyExcludeUsingRelativepath.json new file mode 100644 index 0000000000000..3b26700a7a459 --- /dev/null +++ b/tests/baselines/reference/project/specifyExcludeUsingRelativepath/amd/specifyExcludeUsingRelativepath.json @@ -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" + ] +} \ No newline at end of file diff --git a/tests/baselines/reference/project/specifyExcludeUsingRelativepath/node/OutDir/a.d.ts b/tests/baselines/reference/project/specifyExcludeUsingRelativepath/node/OutDir/a.d.ts new file mode 100644 index 0000000000000..4c0b8989316ef --- /dev/null +++ b/tests/baselines/reference/project/specifyExcludeUsingRelativepath/node/OutDir/a.d.ts @@ -0,0 +1 @@ +declare var test: number; diff --git a/tests/baselines/reference/project/specifyExcludeUsingRelativepath/node/OutDir/a.js b/tests/baselines/reference/project/specifyExcludeUsingRelativepath/node/OutDir/a.js new file mode 100644 index 0000000000000..e757934f20cc5 --- /dev/null +++ b/tests/baselines/reference/project/specifyExcludeUsingRelativepath/node/OutDir/a.js @@ -0,0 +1 @@ +var test = 10; diff --git a/tests/baselines/reference/project/specifyExcludeUsingRelativepath/node/specifyExcludeUsingRelativepath.json b/tests/baselines/reference/project/specifyExcludeUsingRelativepath/node/specifyExcludeUsingRelativepath.json new file mode 100644 index 0000000000000..3b26700a7a459 --- /dev/null +++ b/tests/baselines/reference/project/specifyExcludeUsingRelativepath/node/specifyExcludeUsingRelativepath.json @@ -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" + ] +} \ No newline at end of file diff --git a/tests/baselines/reference/project/specifyExcludeUsingRelativepathWithAllowJS/amd/OutDir/a.js b/tests/baselines/reference/project/specifyExcludeUsingRelativepathWithAllowJS/amd/OutDir/a.js new file mode 100644 index 0000000000000..e757934f20cc5 --- /dev/null +++ b/tests/baselines/reference/project/specifyExcludeUsingRelativepathWithAllowJS/amd/OutDir/a.js @@ -0,0 +1 @@ +var test = 10; diff --git a/tests/baselines/reference/project/specifyExcludeUsingRelativepathWithAllowJS/amd/specifyExcludeUsingRelativepathWithAllowJS.json b/tests/baselines/reference/project/specifyExcludeUsingRelativepathWithAllowJS/amd/specifyExcludeUsingRelativepathWithAllowJS.json new file mode 100644 index 0000000000000..328b95c174edd --- /dev/null +++ b/tests/baselines/reference/project/specifyExcludeUsingRelativepathWithAllowJS/amd/specifyExcludeUsingRelativepathWithAllowJS.json @@ -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" + ] +} \ No newline at end of file diff --git a/tests/baselines/reference/project/specifyExcludeUsingRelativepathWithAllowJS/node/OutDir/a.js b/tests/baselines/reference/project/specifyExcludeUsingRelativepathWithAllowJS/node/OutDir/a.js new file mode 100644 index 0000000000000..e757934f20cc5 --- /dev/null +++ b/tests/baselines/reference/project/specifyExcludeUsingRelativepathWithAllowJS/node/OutDir/a.js @@ -0,0 +1 @@ +var test = 10; diff --git a/tests/baselines/reference/project/specifyExcludeUsingRelativepathWithAllowJS/node/specifyExcludeUsingRelativepathWithAllowJS.json b/tests/baselines/reference/project/specifyExcludeUsingRelativepathWithAllowJS/node/specifyExcludeUsingRelativepathWithAllowJS.json new file mode 100644 index 0000000000000..328b95c174edd --- /dev/null +++ b/tests/baselines/reference/project/specifyExcludeUsingRelativepathWithAllowJS/node/specifyExcludeUsingRelativepathWithAllowJS.json @@ -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" + ] +} \ No newline at end of file diff --git a/tests/baselines/reference/project/specifyExcludeWithOutUsingRelativePath/amd/OutDir/a.d.ts b/tests/baselines/reference/project/specifyExcludeWithOutUsingRelativePath/amd/OutDir/a.d.ts new file mode 100644 index 0000000000000..4c0b8989316ef --- /dev/null +++ b/tests/baselines/reference/project/specifyExcludeWithOutUsingRelativePath/amd/OutDir/a.d.ts @@ -0,0 +1 @@ +declare var test: number; diff --git a/tests/baselines/reference/project/specifyExcludeWithOutUsingRelativePath/amd/OutDir/a.js b/tests/baselines/reference/project/specifyExcludeWithOutUsingRelativePath/amd/OutDir/a.js new file mode 100644 index 0000000000000..e757934f20cc5 --- /dev/null +++ b/tests/baselines/reference/project/specifyExcludeWithOutUsingRelativePath/amd/OutDir/a.js @@ -0,0 +1 @@ +var test = 10; diff --git a/tests/baselines/reference/project/specifyExcludeWithOutUsingRelativePath/amd/specifyExcludeWithOutUsingRelativePath.json b/tests/baselines/reference/project/specifyExcludeWithOutUsingRelativePath/amd/specifyExcludeWithOutUsingRelativePath.json new file mode 100644 index 0000000000000..fee8481a6961d --- /dev/null +++ b/tests/baselines/reference/project/specifyExcludeWithOutUsingRelativePath/amd/specifyExcludeWithOutUsingRelativePath.json @@ -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" + ] +} \ No newline at end of file diff --git a/tests/baselines/reference/project/specifyExcludeWithOutUsingRelativePath/node/OutDir/a.d.ts b/tests/baselines/reference/project/specifyExcludeWithOutUsingRelativePath/node/OutDir/a.d.ts new file mode 100644 index 0000000000000..4c0b8989316ef --- /dev/null +++ b/tests/baselines/reference/project/specifyExcludeWithOutUsingRelativePath/node/OutDir/a.d.ts @@ -0,0 +1 @@ +declare var test: number; diff --git a/tests/baselines/reference/project/specifyExcludeWithOutUsingRelativePath/node/OutDir/a.js b/tests/baselines/reference/project/specifyExcludeWithOutUsingRelativePath/node/OutDir/a.js new file mode 100644 index 0000000000000..e757934f20cc5 --- /dev/null +++ b/tests/baselines/reference/project/specifyExcludeWithOutUsingRelativePath/node/OutDir/a.js @@ -0,0 +1 @@ +var test = 10; diff --git a/tests/baselines/reference/project/specifyExcludeWithOutUsingRelativePath/node/specifyExcludeWithOutUsingRelativePath.json b/tests/baselines/reference/project/specifyExcludeWithOutUsingRelativePath/node/specifyExcludeWithOutUsingRelativePath.json new file mode 100644 index 0000000000000..fee8481a6961d --- /dev/null +++ b/tests/baselines/reference/project/specifyExcludeWithOutUsingRelativePath/node/specifyExcludeWithOutUsingRelativePath.json @@ -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" + ] +} \ No newline at end of file diff --git a/tests/baselines/reference/project/specifyExcludeWithOutUsingRelativePathWithAllowJS/amd/OutDir/a.js b/tests/baselines/reference/project/specifyExcludeWithOutUsingRelativePathWithAllowJS/amd/OutDir/a.js new file mode 100644 index 0000000000000..e757934f20cc5 --- /dev/null +++ b/tests/baselines/reference/project/specifyExcludeWithOutUsingRelativePathWithAllowJS/amd/OutDir/a.js @@ -0,0 +1 @@ +var test = 10; diff --git a/tests/baselines/reference/project/specifyExcludeWithOutUsingRelativePathWithAllowJS/amd/specifyExcludeWithOutUsingRelativePathWithAllowJS.json b/tests/baselines/reference/project/specifyExcludeWithOutUsingRelativePathWithAllowJS/amd/specifyExcludeWithOutUsingRelativePathWithAllowJS.json new file mode 100644 index 0000000000000..a5f096dfc29ca --- /dev/null +++ b/tests/baselines/reference/project/specifyExcludeWithOutUsingRelativePathWithAllowJS/amd/specifyExcludeWithOutUsingRelativePathWithAllowJS.json @@ -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" + ] +} \ No newline at end of file diff --git a/tests/baselines/reference/project/specifyExcludeWithOutUsingRelativePathWithAllowJS/node/OutDir/a.js b/tests/baselines/reference/project/specifyExcludeWithOutUsingRelativePathWithAllowJS/node/OutDir/a.js new file mode 100644 index 0000000000000..e757934f20cc5 --- /dev/null +++ b/tests/baselines/reference/project/specifyExcludeWithOutUsingRelativePathWithAllowJS/node/OutDir/a.js @@ -0,0 +1 @@ +var test = 10; diff --git a/tests/baselines/reference/project/specifyExcludeWithOutUsingRelativePathWithAllowJS/node/specifyExcludeWithOutUsingRelativePathWithAllowJS.json b/tests/baselines/reference/project/specifyExcludeWithOutUsingRelativePathWithAllowJS/node/specifyExcludeWithOutUsingRelativePathWithAllowJS.json new file mode 100644 index 0000000000000..a5f096dfc29ca --- /dev/null +++ b/tests/baselines/reference/project/specifyExcludeWithOutUsingRelativePathWithAllowJS/node/specifyExcludeWithOutUsingRelativePathWithAllowJS.json @@ -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" + ] +} \ No newline at end of file