From 2f2e5f46a3b25897f1a4a59daa1346b5d577ddb8 Mon Sep 17 00:00:00 2001 From: ghiscoding Date: Wed, 27 Jan 2021 23:12:04 -0500 Subject: [PATCH] fix(build): decrease tsc target to es2017 instead of es2020 - had too many issues showing up with es2020, possibly because we can't target es5 with it? not sure, we can always come back to a newer version later --- packages/common/package.json | 4 ++-- packages/common/tsconfig.build.json | 4 ++-- packages/common/tsconfig.json | 2 +- packages/composite-editor-component/package.json | 4 ++-- packages/composite-editor-component/tsconfig.build.json | 4 ++-- packages/composite-editor-component/tsconfig.json | 4 ++-- packages/empty-warning-component/package.json | 4 ++-- packages/empty-warning-component/tsconfig.build.json | 4 ++-- packages/empty-warning-component/tsconfig.json | 4 ++-- packages/excel-export/package.json | 4 ++-- packages/excel-export/tsconfig.build.json | 4 ++-- packages/excel-export/tsconfig.json | 4 ++-- packages/graphql/package.json | 4 ++-- packages/graphql/tsconfig.build.json | 4 ++-- packages/graphql/tsconfig.json | 4 ++-- packages/odata/package.json | 4 ++-- packages/odata/tsconfig.build.json | 4 ++-- packages/odata/tsconfig.json | 4 ++-- packages/text-export/package.json | 4 ++-- packages/text-export/tsconfig.build.json | 4 ++-- packages/text-export/tsconfig.json | 4 ++-- packages/vanilla-bundle/tsconfig.build.json | 2 +- tsconfig.json | 4 ++-- 23 files changed, 44 insertions(+), 44 deletions(-) diff --git a/packages/common/package.json b/packages/common/package.json index 215633354..4047d8274 100644 --- a/packages/common/package.json +++ b/packages/common/package.json @@ -25,7 +25,7 @@ "prebundle": "npm-run-all delete:dist", "postbundle": "npm-run-all sass:build sass:copy", "bundle:commonjs": "tsc --project tsconfig.build.json --outDir dist/commonjs --module commonjs", - "bundle:esm": "cross-env tsc --project tsconfig.build.json --outDir dist/esm --module esnext --target es2020", + "bundle:esm": "cross-env tsc --project tsconfig.build.json --outDir dist/esm --module esnext --target es2017", "delete:dist": "cross-env rimraf --maxBusyTries=10 dist", "package:add-browser-prop": "cross-env node ../change-package-browser.js --add-browser=true --folder-name=common", "package:remove-browser-prop": "cross-env node ../change-package-browser.js --remove-browser=true --folder-name=common", @@ -90,4 +90,4 @@ "node": ">=14.15.0", "npm": ">=6.14.8" } -} +} \ No newline at end of file diff --git a/packages/common/tsconfig.build.json b/packages/common/tsconfig.build.json index 8748fdc33..5f99607bc 100644 --- a/packages/common/tsconfig.build.json +++ b/packages/common/tsconfig.build.json @@ -2,9 +2,9 @@ "compilerOptions": { "module": "esnext", "moduleResolution": "node", - "target": "es2020", + "target": "es2017", "lib": [ - "es2020", + "es2017", "dom" ], "types": [ diff --git a/packages/common/tsconfig.json b/packages/common/tsconfig.json index 24d9b70ef..368dd4425 100644 --- a/packages/common/tsconfig.json +++ b/packages/common/tsconfig.json @@ -5,7 +5,7 @@ "rootDir": "src", "declarationDir": "dist/esm", "outDir": "dist/esm", - "target": "es2020", + "target": "es2017", "module": "esnext", "sourceMap": true, "noImplicitReturns": true, diff --git a/packages/composite-editor-component/package.json b/packages/composite-editor-component/package.json index e064a28d9..123432a25 100644 --- a/packages/composite-editor-component/package.json +++ b/packages/composite-editor-component/package.json @@ -20,7 +20,7 @@ "dev:watch": "run-p build:watch", "bundle": "run-p bundle:commonjs bundle:esm", "bundle:commonjs": "tsc --project tsconfig.build.json --outDir dist/commonjs --module commonjs", - "bundle:esm": "cross-env tsc --project tsconfig.build.json --outDir dist/esm --module esnext --target es2020", + "bundle:esm": "cross-env tsc --project tsconfig.build.json --outDir dist/esm --module esnext --target es2017", "prebundle": "npm-run-all delete:dist", "delete:dist": "cross-env rimraf --maxBusyTries=10 dist", "package:add-browser-prop": "cross-env node ../change-package-browser.js --add-browser=true --folder-name=composite-editor-component", @@ -47,4 +47,4 @@ "npm-run-all": "^4.1.5", "rimraf": "^3.0.2" } -} +} \ No newline at end of file diff --git a/packages/composite-editor-component/tsconfig.build.json b/packages/composite-editor-component/tsconfig.build.json index ff76a7800..29b846244 100644 --- a/packages/composite-editor-component/tsconfig.build.json +++ b/packages/composite-editor-component/tsconfig.build.json @@ -2,9 +2,9 @@ "compilerOptions": { "module": "esnext", "moduleResolution": "node", - "target": "es2020", + "target": "es2017", "lib": [ - "es2020", + "es2017", "dom" ], "typeRoots": [ diff --git a/packages/composite-editor-component/tsconfig.json b/packages/composite-editor-component/tsconfig.json index 24d9b70ef..157a939e5 100644 --- a/packages/composite-editor-component/tsconfig.json +++ b/packages/composite-editor-component/tsconfig.json @@ -5,12 +5,12 @@ "rootDir": "src", "declarationDir": "dist/esm", "outDir": "dist/esm", - "target": "es2020", + "target": "es2017", "module": "esnext", "sourceMap": true, "noImplicitReturns": true, "lib": [ - "es2020", + "es2017", "dom" ], "types": [ diff --git a/packages/empty-warning-component/package.json b/packages/empty-warning-component/package.json index 67bc12cf2..4e464e9ae 100644 --- a/packages/empty-warning-component/package.json +++ b/packages/empty-warning-component/package.json @@ -20,7 +20,7 @@ "dev:watch": "run-p build:watch", "bundle": "run-p bundle:commonjs bundle:esm", "bundle:commonjs": "tsc --project tsconfig.build.json --outDir dist/commonjs --module commonjs", - "bundle:esm": "cross-env tsc --project tsconfig.build.json --outDir dist/esm --module esnext --target es2020", + "bundle:esm": "cross-env tsc --project tsconfig.build.json --outDir dist/esm --module esnext --target es2017", "prebundle": "npm-run-all delete:dist", "delete:dist": "cross-env rimraf --maxBusyTries=10 dist", "package:add-browser-prop": "cross-env node ../change-package-browser.js --add-browser=true --folder-name=empty-warning-component", @@ -47,4 +47,4 @@ "npm-run-all": "^4.1.5", "rimraf": "^3.0.2" } -} +} \ No newline at end of file diff --git a/packages/empty-warning-component/tsconfig.build.json b/packages/empty-warning-component/tsconfig.build.json index ff76a7800..29b846244 100644 --- a/packages/empty-warning-component/tsconfig.build.json +++ b/packages/empty-warning-component/tsconfig.build.json @@ -2,9 +2,9 @@ "compilerOptions": { "module": "esnext", "moduleResolution": "node", - "target": "es2020", + "target": "es2017", "lib": [ - "es2020", + "es2017", "dom" ], "typeRoots": [ diff --git a/packages/empty-warning-component/tsconfig.json b/packages/empty-warning-component/tsconfig.json index 24d9b70ef..157a939e5 100644 --- a/packages/empty-warning-component/tsconfig.json +++ b/packages/empty-warning-component/tsconfig.json @@ -5,12 +5,12 @@ "rootDir": "src", "declarationDir": "dist/esm", "outDir": "dist/esm", - "target": "es2020", + "target": "es2017", "module": "esnext", "sourceMap": true, "noImplicitReturns": true, "lib": [ - "es2020", + "es2017", "dom" ], "types": [ diff --git a/packages/excel-export/package.json b/packages/excel-export/package.json index 6d83463a2..28c112d7a 100644 --- a/packages/excel-export/package.json +++ b/packages/excel-export/package.json @@ -19,7 +19,7 @@ "dev": "run-s build sass:build sass:copy", "dev:watch": "run-p build:watch", "bundle:commonjs": "tsc --project tsconfig.build.json --outDir dist/commonjs --module commonjs", - "bundle:esm": "cross-env tsc --project tsconfig.build.json --outDir dist/esm --module esnext --target es2020", + "bundle:esm": "cross-env tsc --project tsconfig.build.json --outDir dist/esm --module esnext --target es2017", "bundle": "run-p bundle:commonjs bundle:esm", "prebundle": "npm-run-all delete:dist", "delete:dist": "cross-env rimraf --maxBusyTries=10 dist", @@ -47,4 +47,4 @@ "npm-run-all": "^4.1.5", "rimraf": "^3.0.2" } -} +} \ No newline at end of file diff --git a/packages/excel-export/tsconfig.build.json b/packages/excel-export/tsconfig.build.json index ddd0819a4..012a1c630 100644 --- a/packages/excel-export/tsconfig.build.json +++ b/packages/excel-export/tsconfig.build.json @@ -2,9 +2,9 @@ "compilerOptions": { "module": "esnext", "moduleResolution": "node", - "target": "es2020", + "target": "es2017", "lib": [ - "es2020", + "es2017", "dom" ], "typeRoots": [ diff --git a/packages/excel-export/tsconfig.json b/packages/excel-export/tsconfig.json index 5f9e59797..e72a9aaef 100644 --- a/packages/excel-export/tsconfig.json +++ b/packages/excel-export/tsconfig.json @@ -5,12 +5,12 @@ "rootDir": "src", "declarationDir": "dist/esm", "outDir": "dist/esm", - "target": "es2020", + "target": "es2017", "module": "esnext", "sourceMap": true, "noImplicitReturns": true, "lib": [ - "es2020", + "es2017", "dom" ], "types": [ diff --git a/packages/graphql/package.json b/packages/graphql/package.json index c631f4fda..2d5a0b6ed 100644 --- a/packages/graphql/package.json +++ b/packages/graphql/package.json @@ -20,7 +20,7 @@ "dev:watch": "run-p build:watch", "bundle": "run-p bundle:commonjs bundle:esm", "bundle:commonjs": "tsc --project tsconfig.build.json --outDir dist/commonjs --module commonjs", - "bundle:esm": "cross-env tsc --project tsconfig.build.json --outDir dist/esm --module esnext --target es2020", + "bundle:esm": "cross-env tsc --project tsconfig.build.json --outDir dist/esm --module esnext --target es2017", "prebundle": "npm-run-all delete:dist", "delete:dist": "cross-env rimraf --maxBusyTries=10 dist", "package:add-browser-prop": "cross-env node ../change-package-browser.js --add-browser=true --folder-name=graphql", @@ -43,4 +43,4 @@ "devDependencies": { "moment-mini": "^2.24.0" } -} +} \ No newline at end of file diff --git a/packages/graphql/tsconfig.build.json b/packages/graphql/tsconfig.build.json index 8748fdc33..5f99607bc 100644 --- a/packages/graphql/tsconfig.build.json +++ b/packages/graphql/tsconfig.build.json @@ -2,9 +2,9 @@ "compilerOptions": { "module": "esnext", "moduleResolution": "node", - "target": "es2020", + "target": "es2017", "lib": [ - "es2020", + "es2017", "dom" ], "types": [ diff --git a/packages/graphql/tsconfig.json b/packages/graphql/tsconfig.json index 24d9b70ef..157a939e5 100644 --- a/packages/graphql/tsconfig.json +++ b/packages/graphql/tsconfig.json @@ -5,12 +5,12 @@ "rootDir": "src", "declarationDir": "dist/esm", "outDir": "dist/esm", - "target": "es2020", + "target": "es2017", "module": "esnext", "sourceMap": true, "noImplicitReturns": true, "lib": [ - "es2020", + "es2017", "dom" ], "types": [ diff --git a/packages/odata/package.json b/packages/odata/package.json index 81e112a46..e53ff02b8 100644 --- a/packages/odata/package.json +++ b/packages/odata/package.json @@ -20,7 +20,7 @@ "dev:watch": "run-p build:watch", "bundle": "run-p bundle:commonjs bundle:esm", "bundle:commonjs": "tsc --project tsconfig.build.json --outDir dist/commonjs --module commonjs", - "bundle:esm": "cross-env tsc --project tsconfig.build.json --outDir dist/esm --module esnext --target es2020", + "bundle:esm": "cross-env tsc --project tsconfig.build.json --outDir dist/esm --module esnext --target es2017", "prebundle": "npm-run-all delete:dist", "delete:dist": "cross-env rimraf --maxBusyTries=10 dist", "package:add-browser-prop": "cross-env node ../change-package-browser.js --add-browser=true --folder-name=odata", @@ -40,4 +40,4 @@ "dependencies": { "@slickgrid-universal/common": "^0.10.0" } -} +} \ No newline at end of file diff --git a/packages/odata/tsconfig.build.json b/packages/odata/tsconfig.build.json index 8748fdc33..5f99607bc 100644 --- a/packages/odata/tsconfig.build.json +++ b/packages/odata/tsconfig.build.json @@ -2,9 +2,9 @@ "compilerOptions": { "module": "esnext", "moduleResolution": "node", - "target": "es2020", + "target": "es2017", "lib": [ - "es2020", + "es2017", "dom" ], "types": [ diff --git a/packages/odata/tsconfig.json b/packages/odata/tsconfig.json index 24d9b70ef..157a939e5 100644 --- a/packages/odata/tsconfig.json +++ b/packages/odata/tsconfig.json @@ -5,12 +5,12 @@ "rootDir": "src", "declarationDir": "dist/esm", "outDir": "dist/esm", - "target": "es2020", + "target": "es2017", "module": "esnext", "sourceMap": true, "noImplicitReturns": true, "lib": [ - "es2020", + "es2017", "dom" ], "types": [ diff --git a/packages/text-export/package.json b/packages/text-export/package.json index 5f21dc759..c3e1d57ad 100644 --- a/packages/text-export/package.json +++ b/packages/text-export/package.json @@ -20,7 +20,7 @@ "dev:watch": "run-p build:watch", "bundle": "run-p bundle:commonjs bundle:esm", "bundle:commonjs": "tsc --project tsconfig.build.json --outDir dist/commonjs --module commonjs", - "bundle:esm": "cross-env tsc --project tsconfig.build.json --outDir dist/esm --module esnext --target es2020", + "bundle:esm": "cross-env tsc --project tsconfig.build.json --outDir dist/esm --module esnext --target es2017", "prebundle": "npm-run-all delete:dist", "delete:dist": "cross-env rimraf --maxBusyTries=10 dist", "package:add-browser-prop": "cross-env node ../change-package-browser.js --add-browser=true --folder-name=text-export", @@ -47,4 +47,4 @@ "npm-run-all": "^4.1.5", "rimraf": "^3.0.2" } -} +} \ No newline at end of file diff --git a/packages/text-export/tsconfig.build.json b/packages/text-export/tsconfig.build.json index 8748fdc33..5f99607bc 100644 --- a/packages/text-export/tsconfig.build.json +++ b/packages/text-export/tsconfig.build.json @@ -2,9 +2,9 @@ "compilerOptions": { "module": "esnext", "moduleResolution": "node", - "target": "es2020", + "target": "es2017", "lib": [ - "es2020", + "es2017", "dom" ], "types": [ diff --git a/packages/text-export/tsconfig.json b/packages/text-export/tsconfig.json index 24d9b70ef..157a939e5 100644 --- a/packages/text-export/tsconfig.json +++ b/packages/text-export/tsconfig.json @@ -5,12 +5,12 @@ "rootDir": "src", "declarationDir": "dist/esm", "outDir": "dist/esm", - "target": "es2020", + "target": "es2017", "module": "esnext", "sourceMap": true, "noImplicitReturns": true, "lib": [ - "es2020", + "es2017", "dom" ], "types": [ diff --git a/packages/vanilla-bundle/tsconfig.build.json b/packages/vanilla-bundle/tsconfig.build.json index 9df7f2c8d..f155580a2 100644 --- a/packages/vanilla-bundle/tsconfig.build.json +++ b/packages/vanilla-bundle/tsconfig.build.json @@ -4,7 +4,7 @@ "moduleResolution": "node", "target": "es2017", "lib": [ - "es2020", + "es2017", "dom" ], "typeRoots": [ diff --git a/tsconfig.json b/tsconfig.json index e96dd488a..bedb35198 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -3,9 +3,9 @@ "experimentalDecorators": true, "esModuleInterop": true, "module": "commonjs", - "target": "es2020", + "target": "es2017", "lib": [ - "es2020", + "es2017", "dom" ], "resolveJsonModule": true