Enable baseline check and declaration emit for --noResolve case of files

This commit is contained in:
Sheetal Nandi 2014-11-19 13:08:57 -08:00
parent e5b004899c
commit 6d4e670c18
11 changed files with 47 additions and 3 deletions

View file

@ -0,0 +1,7 @@
/// <reference path="../src/ts/foo/foo.ts" />
// This is bar.ts
var bar = (function () {
function bar() {
}
return bar;
})();

View file

@ -0,0 +1,2 @@
declare class bar {
}

View file

@ -0,0 +1,2 @@
declare class foo {
}

View file

@ -0,0 +1,6 @@
/// <reference path="../../../bar/bar.ts" />
var foo = (function () {
function foo() {
}
return foo;
})();

View file

@ -5,6 +5,8 @@
"foo.ts",
"../../../bar/bar.ts"
],
"declaration": true,
"baselineCheck": true,
"resolvedInputFiles": [
"lib.d.ts",
"foo.ts",
@ -12,6 +14,8 @@
],
"emittedFiles": [
"foo.js",
"../../../bar/bar.js"
"foo.d.ts",
"../../../bar/bar.js",
"../../../bar/bar.d.ts"
]
}

View file

@ -0,0 +1,7 @@
/// <reference path="../src/ts/foo/foo.ts" />
// This is bar.ts
var bar = (function () {
function bar() {
}
return bar;
})();

View file

@ -0,0 +1,2 @@
declare class bar {
}

View file

@ -0,0 +1,2 @@
declare class foo {
}

View file

@ -0,0 +1,6 @@
/// <reference path="../../../bar/bar.ts" />
var foo = (function () {
function foo() {
}
return foo;
})();

View file

@ -5,6 +5,8 @@
"foo.ts",
"../../../bar/bar.ts"
],
"declaration": true,
"baselineCheck": true,
"resolvedInputFiles": [
"lib.d.ts",
"foo.ts",
@ -12,6 +14,8 @@
],
"emittedFiles": [
"foo.js",
"../../../bar/bar.js"
"foo.d.ts",
"../../../bar/bar.js",
"../../../bar/bar.d.ts"
]
}

View file

@ -5,5 +5,7 @@
"foo.ts",
"../../../bar/bar.ts"
],
"noResolve": true
"noResolve": true,
"declaration": true,
"baselineCheck": true
}