@@ -2,43 +2,44 @@ namespace ts {
22 /* @internal */
33 export const compileOnSaveCommandLineOption : CommandLineOption = { name : "compileOnSave" , type : "boolean" } ;
44
5- const commandLineLibMap = createMapFromTemplate ( {
5+ // NOTE: The order here is important to default lib ordering
6+ const commandLineLibMap = createMapFromEntries ( [
67 // JavaScript only
7- "es5" : "lib.es5.d.ts" ,
8- "es6" : "lib.es2015.d.ts" ,
9- "es2015" : "lib.es2015.d.ts" ,
10- "es7" : "lib.es2016.d.ts" ,
11- "es2016" : "lib.es2016.d.ts" ,
12- "es2017" : "lib.es2017.d.ts" ,
13- "es2018" : "lib.es2018.d.ts" ,
14- "esnext" : "lib.esnext.d.ts" ,
8+ [ "es5" , "lib.es5.d.ts" ] ,
9+ [ "es6" , "lib.es2015.d.ts" ] ,
10+ [ "es2015" , "lib.es2015.d.ts" ] ,
11+ [ "es7" , "lib.es2016.d.ts" ] ,
12+ [ "es2016" , "lib.es2016.d.ts" ] ,
13+ [ "es2017" , "lib.es2017.d.ts" ] ,
14+ [ "es2018" , "lib.es2018.d.ts" ] ,
15+ [ "esnext" , "lib.esnext.d.ts" ] ,
1516 // Host only
16- "dom" : "lib.dom.d.ts" ,
17- "dom.iterable" : "lib.dom.iterable.d.ts" ,
18- "webworker" : "lib.webworker.d.ts" ,
19- "scripthost" : "lib.scripthost.d.ts" ,
17+ [ "dom" , "lib.dom.d.ts" ] ,
18+ [ "dom.iterable" , "lib.dom.iterable.d.ts" ] ,
19+ [ "webworker" , "lib.webworker.d.ts" ] ,
20+ [ "scripthost" , "lib.scripthost.d.ts" ] ,
2021 // ES2015 Or ESNext By-feature options
21- "es2015.core" : "lib.es2015.core.d.ts" ,
22- "es2015.collection" : "lib.es2015.collection.d.ts" ,
23- "es2015.generator" : "lib.es2015.generator.d.ts" ,
24- "es2015.iterable" : "lib.es2015.iterable.d.ts" ,
25- "es2015.promise" : "lib.es2015.promise.d.ts" ,
26- "es2015.proxy" : "lib.es2015.proxy.d.ts" ,
27- "es2015.reflect" : "lib.es2015.reflect.d.ts" ,
28- "es2015.symbol" : "lib.es2015.symbol.d.ts" ,
29- "es2015.symbol.wellknown" : "lib.es2015.symbol.wellknown.d.ts" ,
30- "es2016.array.include" : "lib.es2016.array.include.d.ts" ,
31- "es2017.object" : "lib.es2017.object.d.ts" ,
32- "es2017.sharedmemory" : "lib.es2017.sharedmemory.d.ts" ,
33- "es2017.string" : "lib.es2017.string.d.ts" ,
34- "es2017.intl" : "lib.es2017.intl.d.ts" ,
35- "es2017.typedarrays" : "lib.es2017.typedarrays.d.ts" ,
36- "es2018.intl" : "lib.es2018.intl.d.ts" ,
37- "es2018.promise" : "lib.es2018.promise.d.ts" ,
38- "es2018.regexp" : "lib.es2018.regexp.d.ts" ,
39- "esnext.array" : "lib.esnext.array.d.ts" ,
40- "esnext.asynciterable" : "lib.esnext.asynciterable.d.ts" ,
41- } ) ;
22+ [ "es2015.core" , "lib.es2015.core.d.ts" ] ,
23+ [ "es2015.collection" , "lib.es2015.collection.d.ts" ] ,
24+ [ "es2015.generator" , "lib.es2015.generator.d.ts" ] ,
25+ [ "es2015.iterable" , "lib.es2015.iterable.d.ts" ] ,
26+ [ "es2015.promise" , "lib.es2015.promise.d.ts" ] ,
27+ [ "es2015.proxy" , "lib.es2015.proxy.d.ts" ] ,
28+ [ "es2015.reflect" , "lib.es2015.reflect.d.ts" ] ,
29+ [ "es2015.symbol" , "lib.es2015.symbol.d.ts" ] ,
30+ [ "es2015.symbol.wellknown" , "lib.es2015.symbol.wellknown.d.ts" ] ,
31+ [ "es2016.array.include" , "lib.es2016.array.include.d.ts" ] ,
32+ [ "es2017.object" , "lib.es2017.object.d.ts" ] ,
33+ [ "es2017.sharedmemory" , "lib.es2017.sharedmemory.d.ts" ] ,
34+ [ "es2017.string" , "lib.es2017.string.d.ts" ] ,
35+ [ "es2017.intl" , "lib.es2017.intl.d.ts" ] ,
36+ [ "es2017.typedarrays" , "lib.es2017.typedarrays.d.ts" ] ,
37+ [ "es2018.intl" , "lib.es2018.intl.d.ts" ] ,
38+ [ "es2018.promise" , "lib.es2018.promise.d.ts" ] ,
39+ [ "es2018.regexp" , "lib.es2018.regexp.d.ts" ] ,
40+ [ "esnext.array" , "lib.esnext.array.d.ts" ] ,
41+ [ "esnext.asynciterable" , "lib.esnext.asynciterable.d.ts" ] ,
42+ ] ) ;
4243
4344 // Internally we add some additional lib references that we only support when used as part of a
4445 // "lib" reference directive. They are not available on the command line or in tsconfig.json.
0 commit comments