Skip to content

Commit ad7a319

Browse files
authored
Merge pull request #1232 from microsoft/ts-compile-to-es5
Change TS output to ES6 for all libraries
2 parents a0db677 + 688c9bf commit ad7a319

File tree

13 files changed

+26
-13
lines changed

13 files changed

+26
-13
lines changed

libraries/botbuilder-ai/tsconfig.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"compilerOptions": {
3-
"target": "ESNext",
3+
"target": "es6",
4+
"lib": ["es2015"],
45
"module": "commonjs",
56
"declaration": true,
67
"sourceMap": true,

libraries/botbuilder-applicationinsights/tsconfig.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"compilerOptions": {
3-
"target": "ESNext",
3+
"target": "es6",
4+
"lib": ["es2015"],
45
"module": "commonjs",
56
"declaration": true,
67
"sourceMap": true,

libraries/botbuilder-azure/tsconfig.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"compilerOptions": {
3-
"target": "ESNext",
3+
"target": "es6",
4+
"lib": ["es2015"],
45
"module": "commonjs",
56
"declaration": true,
67
"sourceMap": true,

libraries/botbuilder-core/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
},
2626
"devDependencies": {
2727
"@types/mocha": "^2.2.47",
28+
"@types/node": "^12.6.9",
2829
"mocha": "^5.2.0",
2930
"nyc": "^11.4.1",
3031
"source-map-support": "^0.5.3",

libraries/botbuilder-core/src/testAdapter.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* Licensed under the MIT License.
77
*/
88
// tslint:disable-next-line:no-require-imports
9-
import assert = require('assert');
9+
import assert from 'assert';
1010
import { Activity, ActivityTypes, ConversationReference, ResourceResponse, TokenResponse } from 'botframework-schema';
1111
import { BotAdapter } from './botAdapter';
1212
import { TurnContext } from './turnContext';

libraries/botbuilder-core/tsconfig.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
11
{
22
"compilerOptions": {
3-
"target": "ESNext",
4-
"module": "commonjs",
53
"declaration": true,
4+
"esModuleInterop": true,
65
"sourceMap": true,
6+
"module": "commonjs",
77
"outDir": "./lib",
88
"rootDir": "./src",
9+
"target": "es6",
10+
"lib": [ "es2015", "dom" ],
911
"types" : ["node"]
1012
},
1113
"include": [

libraries/botbuilder-dialogs/tsconfig.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"compilerOptions": {
3-
"target": "ESNext",
3+
"target": "es6",
4+
"lib": ["es2015", "dom"],
45
"module": "commonjs",
56
"declaration": true,
67
"sourceMap": true,

libraries/botbuilder-testing/tsconfig.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"compilerOptions": {
3-
"target": "ESNext",
3+
"target": "es6",
4+
"lib": ["es2015"],
45
"module": "commonjs",
56
"declaration": true,
67
"sourceMap": true,

libraries/botbuilder/tsconfig.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"compilerOptions": {
3-
"target": "ESNext",
3+
"target": "es6",
4+
"lib": ["es2015", "dom"],
45
"module": "commonjs",
56
"declaration": true,
67
"sourceMap": true,

libraries/botframework-config/tsconfig.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"compilerOptions": {
3-
"target": "ESNext",
3+
"target": "es6",
4+
"lib": ["es2015"],
45
"module": "commonjs",
56
"declaration": true,
67
"sourceMap": true,

0 commit comments

Comments
 (0)