Skip to content
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
change to lib.es3.full.d.ts
  • Loading branch information
saschanaz committed May 26, 2017
commit 1bd6420b08e8f01c48961da6e1ffe1bca8784d77
4 changes: 2 additions & 2 deletions Gulpfile.ts
Original file line number Diff line number Diff line change
Expand Up @@ -164,8 +164,8 @@ const librarySourceMap = [
{ target: "lib.esnext.d.ts", sources: ["header.d.ts", "esnext.d.ts"] },

// JavaScript + all host library
{ target: "lib.d.ts", sources: ["header.d.ts", "es3.d.ts"].concat(hostsLibrarySources) },
{ target: "lib.es5.full.d.ts", sources: ["header.d.ts", "es5.d.ts"].concat(hostsLibrarySources) },
{ target: "lib.es3.full.d.ts", sources: ["header.d.ts", "es3.d.ts"].concat(hostsLibrarySources) },
{ target: "lib.d.ts", sources: ["header.d.ts", "es5.d.ts"].concat(hostsLibrarySources) },
{ target: "lib.es6.d.ts", sources: ["header.d.ts", "es5.d.ts"].concat(es2015LibrarySources, hostsLibrarySources, "dom.iterable.d.ts") },
{ target: "lib.es2016.full.d.ts", sources: ["header.d.ts", "es2016.d.ts"].concat(es2015LibrarySources, hostsLibrarySources, "dom.iterable.d.ts") },
{ target: "lib.es2017.full.d.ts", sources: ["header.d.ts", "es2017.d.ts"].concat(es2015LibrarySources, hostsLibrarySources, "dom.iterable.d.ts") },
Expand Down
4 changes: 2 additions & 2 deletions Jakefile.js
Original file line number Diff line number Diff line change
Expand Up @@ -207,8 +207,8 @@ var librarySourceMap = [
{ target: "lib.esnext.d.ts", sources: ["header.d.ts", "esnext.d.ts"] },

// JavaScript + all host library
{ target: "lib.d.ts", sources: ["header.d.ts", "es3.d.ts"].concat(hostsLibrarySources) },
{ target: "lib.es5.full.d.ts", sources: ["header.d.ts", "es5.d.ts"].concat(hostsLibrarySources) },
{ target: "lib.es3.full.d.ts", sources: ["header.d.ts", "es3.d.ts"].concat(hostsLibrarySources) },
{ target: "lib.d.ts", sources: ["header.d.ts", "es5.d.ts"].concat(hostsLibrarySources) },
{ target: "lib.es6.d.ts", sources: ["header.d.ts", "es5.d.ts"].concat(es2015LibrarySources, hostsLibrarySources, "dom.iterable.d.ts") },
{ target: "lib.es2016.full.d.ts", sources: ["header.d.ts", "es2016.d.ts"].concat(hostsLibrarySources, "dom.iterable.d.ts") },
{ target: "lib.es2017.full.d.ts", sources: ["header.d.ts", "es2017.d.ts"].concat(hostsLibrarySources, "dom.iterable.d.ts") },
Expand Down
4 changes: 2 additions & 2 deletions src/compiler/utilities.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4309,9 +4309,9 @@ namespace ts {
case ScriptTarget.ES2015:
return "lib.es6.d.ts"; // We don't use lib.es2015.full.d.ts due to breaking change.
case ScriptTarget.ES5:
return "lib.es5.full.d.ts";
default:
return "lib.d.ts";
default:
return "lib.es3.full.d.ts";
}
}

Expand Down
4 changes: 2 additions & 2 deletions src/harness/harness.ts
Original file line number Diff line number Diff line change
Expand Up @@ -831,7 +831,7 @@ namespace Harness {
const carriageReturnLineFeed = "\r\n";
const lineFeed = "\n";

export const defaultLibFileName = "lib.d.ts";
export const defaultLibFileName = "lib.es3.full.d.ts";
export const es2015DefaultLibFileName = "lib.es2015.d.ts";

// Cache of lib files from "built/local"
Expand Down Expand Up @@ -867,7 +867,7 @@ namespace Harness {
return "lib.es5.d.ts";

default:
return defaultLibFileName;
return "lib.es3.d.ts";
}
}

Expand Down
4 changes: 2 additions & 2 deletions src/harness/unittests/tsserverProjectSystem.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,11 @@ namespace ts.projectSystem {

export const { content: libFileContent } = Harness.getDefaultLibraryFile(Harness.IO);
export const libFile: FileOrFolder = {
path: "/a/lib/lib.d.ts",
path: "/a/lib/lib.es3.full.d.ts",
content: libFileContent
};
export const es5LibFile: FileOrFolder = {
path: "/a/lib/lib.es5.full.d.ts",
path: "/a/lib/lib.d.ts",
content: libFileContent
};

Expand Down
2 changes: 1 addition & 1 deletion tests/cases/compiler/metadataOfEventAlias.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// @experimentalDecorators: true
// @emitDecoratorMetadata: true
// @target: es5
// @includeBuiltFile: lib.d.ts
// @includeBuiltFile: lib.es3.full.d.ts

// @filename: event.ts
export interface Event { title: string };
Expand Down
8 changes: 4 additions & 4 deletions tests/cases/fourslash/server/projectInfo01.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@
////console.log("nothing");

goTo.file("a.ts")
verify.ProjectInfo(["lib.es5.full.d.ts", "lib.es3.d.ts", "a.ts"])
verify.ProjectInfo(["lib.d.ts", "lib.es3.d.ts", "a.ts"])
goTo.file("b.ts")
verify.ProjectInfo(["lib.es5.full.d.ts", "lib.es3.d.ts", "a.ts", "b.ts"])
verify.ProjectInfo(["lib.d.ts", "lib.es3.d.ts", "a.ts", "b.ts"])
goTo.file("c.ts")
verify.ProjectInfo(["lib.es5.full.d.ts", "lib.es3.d.ts", "a.ts", "b.ts", "c.ts"])
verify.ProjectInfo(["lib.d.ts", "lib.es3.d.ts", "a.ts", "b.ts", "c.ts"])
goTo.file("d.ts")
verify.ProjectInfo(["lib.es5.full.d.ts", "lib.es3.d.ts", "d.ts"])
verify.ProjectInfo(["lib.d.ts", "lib.es3.d.ts", "d.ts"])

2 changes: 1 addition & 1 deletion tests/cases/fourslash/server/projectInfo02.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@
////{ "files": ["a.ts", "b.ts"] }

goTo.file("a.ts")
verify.ProjectInfo(["lib.d.ts", "a.ts", "b.ts"])
verify.ProjectInfo(["lib.es3.full.d.ts", "a.ts", "b.ts"])
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@
////{ "files": ["a.ts", "c.ts", "b.ts"] }

goTo.file("a.ts");
verify.ProjectInfo(["lib.d.ts", "a.ts", "b.ts"])
verify.ProjectInfo(["lib.es3.full.d.ts", "a.ts", "b.ts"])