mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-05 08:11:30 -06:00
When same named .d.ts and .js files are present and tscconfig contains .d.ts file
This commit is contained in:
parent
9daf635e5e
commit
70d3de4668
@ -0,0 +1,12 @@
|
||||
{
|
||||
"scenario": "Verify when same named .ts and .js file exists in the folder but .ts file is specified in tsconfig.json",
|
||||
"projectRoot": "tests/cases/projects/jsFileCompilation",
|
||||
"baselineCheck": true,
|
||||
"declaration": true,
|
||||
"project": "SameNameDTsSpecified",
|
||||
"resolvedInputFiles": [
|
||||
"lib.d.ts",
|
||||
"SameNameDTsSpecified/a.d.ts"
|
||||
],
|
||||
"emittedFiles": []
|
||||
}
|
||||
@ -0,0 +1,12 @@
|
||||
{
|
||||
"scenario": "Verify when same named .ts and .js file exists in the folder but .ts file is specified in tsconfig.json",
|
||||
"projectRoot": "tests/cases/projects/jsFileCompilation",
|
||||
"baselineCheck": true,
|
||||
"declaration": true,
|
||||
"project": "SameNameDTsSpecified",
|
||||
"resolvedInputFiles": [
|
||||
"lib.d.ts",
|
||||
"SameNameDTsSpecified/a.d.ts"
|
||||
],
|
||||
"emittedFiles": []
|
||||
}
|
||||
@ -0,0 +1,7 @@
|
||||
{
|
||||
"scenario": "Verify when same named .ts and .js file exists in the folder but .ts file is specified in tsconfig.json",
|
||||
"projectRoot": "tests/cases/projects/jsFileCompilation",
|
||||
"baselineCheck": true,
|
||||
"declaration": true,
|
||||
"project": "SameNameDTsSpecified"
|
||||
}
|
||||
1
tests/cases/projects/jsFileCompilation/SameNameDTsSpecified/a.d.ts
vendored
Normal file
1
tests/cases/projects/jsFileCompilation/SameNameDTsSpecified/a.d.ts
vendored
Normal file
@ -0,0 +1 @@
|
||||
declare var test: number;
|
||||
@ -0,0 +1 @@
|
||||
var test1 = 10; // Shouldnt get compiled
|
||||
@ -0,0 +1 @@
|
||||
{ "files": [ "a.d.ts" ] }
|
||||
Loading…
x
Reference in New Issue
Block a user