Skip to content

Commit

Permalink
Merge pull request #1232 from microsoft/ts-compile-to-es5
Browse files Browse the repository at this point in the history
Change TS output to ES6 for all libraries
  • Loading branch information
Stevenic authored Oct 22, 2019
2 parents a0db677 + 688c9bf commit ad7a319
Show file tree
Hide file tree
Showing 13 changed files with 26 additions and 13 deletions.
3 changes: 2 additions & 1 deletion libraries/botbuilder-ai/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"compilerOptions": {
"target": "ESNext",
"target": "es6",
"lib": ["es2015"],
"module": "commonjs",
"declaration": true,
"sourceMap": true,
Expand Down
3 changes: 2 additions & 1 deletion libraries/botbuilder-applicationinsights/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"compilerOptions": {
"target": "ESNext",
"target": "es6",
"lib": ["es2015"],
"module": "commonjs",
"declaration": true,
"sourceMap": true,
Expand Down
3 changes: 2 additions & 1 deletion libraries/botbuilder-azure/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"compilerOptions": {
"target": "ESNext",
"target": "es6",
"lib": ["es2015"],
"module": "commonjs",
"declaration": true,
"sourceMap": true,
Expand Down
1 change: 1 addition & 0 deletions libraries/botbuilder-core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
},
"devDependencies": {
"@types/mocha": "^2.2.47",
"@types/node": "^12.6.9",
"mocha": "^5.2.0",
"nyc": "^11.4.1",
"source-map-support": "^0.5.3",
Expand Down
2 changes: 1 addition & 1 deletion libraries/botbuilder-core/src/testAdapter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* Licensed under the MIT License.
*/
// tslint:disable-next-line:no-require-imports
import assert = require('assert');
import assert from 'assert';
import { Activity, ActivityTypes, ConversationReference, ResourceResponse, TokenResponse } from 'botframework-schema';
import { BotAdapter } from './botAdapter';
import { TurnContext } from './turnContext';
Expand Down
6 changes: 4 additions & 2 deletions libraries/botbuilder-core/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
{
"compilerOptions": {
"target": "ESNext",
"module": "commonjs",
"declaration": true,
"esModuleInterop": true,
"sourceMap": true,
"module": "commonjs",
"outDir": "./lib",
"rootDir": "./src",
"target": "es6",
"lib": [ "es2015", "dom" ],
"types" : ["node"]
},
"include": [
Expand Down
3 changes: 2 additions & 1 deletion libraries/botbuilder-dialogs/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"compilerOptions": {
"target": "ESNext",
"target": "es6",
"lib": ["es2015", "dom"],
"module": "commonjs",
"declaration": true,
"sourceMap": true,
Expand Down
3 changes: 2 additions & 1 deletion libraries/botbuilder-testing/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"compilerOptions": {
"target": "ESNext",
"target": "es6",
"lib": ["es2015"],
"module": "commonjs",
"declaration": true,
"sourceMap": true,
Expand Down
3 changes: 2 additions & 1 deletion libraries/botbuilder/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"compilerOptions": {
"target": "ESNext",
"target": "es6",
"lib": ["es2015", "dom"],
"module": "commonjs",
"declaration": true,
"sourceMap": true,
Expand Down
3 changes: 2 additions & 1 deletion libraries/botframework-config/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"compilerOptions": {
"target": "ESNext",
"target": "es6",
"lib": ["es2015"],
"module": "commonjs",
"declaration": true,
"sourceMap": true,
Expand Down
3 changes: 2 additions & 1 deletion libraries/botframework-connector/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"compilerOptions": {
"target": "ESNext",
"target": "es6",
"lib": ["es2015", "dom"],
"module": "commonjs",
"strict": false,
"declaration": true,
Expand Down
3 changes: 2 additions & 1 deletion libraries/botframework-schema/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"compilerOptions": {
"target": "ESNext",
"target": "es6",
"lib": ["es2015"],
"module": "commonjs",
"declaration": true,
"sourceMap": true,
Expand Down
3 changes: 2 additions & 1 deletion libraries/botframework-streaming/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"compilerOptions": {
"target": "ESNext",
"target": "es6",
"lib": ["es2015", "dom"],
"module": "commonjs",
"declaration": true,
"sourceMap": true,
Expand Down

0 comments on commit ad7a319

Please sign in to comment.