Chore: Set tsconfig target to ES6 (#44842)

* chore(tsconfig): update grafana/tsconfig to 1.2.0 for outputting es6

* rewrote the unsubscription part to use first().

* test: update failing tests to work with es6 output

* removed bug where we dispatch a promise instead of an array of ritch history.

Co-authored-by: Marcus Andersson <marcus.andersson@grafana.com>
This commit is contained in:
Jack Westbrook
2022-02-10 14:37:39 +01:00
committed by GitHub
parent 57ecabf319
commit 979907e9dd
13 changed files with 42 additions and 50 deletions

View File

@@ -42,7 +42,7 @@
"xss": "1.0.10"
},
"devDependencies": {
"@grafana/tsconfig": "^1.0.0-rc1",
"@grafana/tsconfig": "^1.2.0-rc1",
"@rollup/plugin-commonjs": "21.0.1",
"@rollup/plugin-json": "4.1.0",
"@rollup/plugin-node-resolve": "13.1.3",

View File

@@ -34,7 +34,7 @@
},
"types": "src/index.ts",
"dependencies": {
"@grafana/tsconfig": "^1.0.0-rc1",
"@grafana/tsconfig": "^1.2.0-rc1",
"tslib": "2.3.1",
"typescript": "4.4.4"
}

View File

@@ -49,7 +49,7 @@
"@babel/preset-env": "7.16.11",
"@cypress/webpack-preprocessor": "5.11.0",
"@grafana/e2e-selectors": "8.5.0-pre",
"@grafana/tsconfig": "^1.0.0-rc1",
"@grafana/tsconfig": "^1.2.0-rc1",
"@mochajs/json-file-reporter": "^1.2.0",
"babel-loader": "8.2.3",
"blink-diff": "1.0.13",

View File

@@ -35,7 +35,7 @@
"tslib": "2.3.1"
},
"devDependencies": {
"@grafana/tsconfig": "^1.0.0-rc1",
"@grafana/tsconfig": "^1.2.0-rc1",
"@rollup/plugin-commonjs": "21.0.1",
"@rollup/plugin-node-resolve": "13.1.3",
"@testing-library/dom": "8.11.3",

View File

@@ -22,7 +22,7 @@
"typecheck": "tsc --noEmit"
},
"devDependencies": {
"@grafana/tsconfig": "^1.0.0-rc1",
"@grafana/tsconfig": "^1.2.0-rc1",
"@rollup/plugin-commonjs": "21.0.1",
"@rollup/plugin-json": "4.1.0",
"@rollup/plugin-node-resolve": "13.1.3",

View File

@@ -30,7 +30,7 @@
"@babel/preset-env": "7.13.12",
"@grafana/data": "8.5.0-pre",
"@grafana/eslint-config": "2.5.2",
"@grafana/tsconfig": "^1.0.0-rc1",
"@grafana/tsconfig": "^1.2.0-rc1",
"@grafana/ui": "8.5.0-pre",
"@jest/core": "26.6.3",
"@rushstack/eslint-patch": "1.0.6",

View File

@@ -95,7 +95,7 @@
},
"devDependencies": {
"@babel/core": "7.17.0",
"@grafana/tsconfig": "^1.0.0-rc1",
"@grafana/tsconfig": "^1.2.0-rc1",
"@mdx-js/react": "1.6.22",
"@rollup/plugin-commonjs": "21.0.1",
"@rollup/plugin-image": "2.1.1",

View File

@@ -9,7 +9,7 @@
"typecheck": "tsc --noEmit"
},
"devDependencies": {
"@grafana/tsconfig": "^1.0.0-rc1",
"@grafana/tsconfig": "^1.2.0-rc1",
"@types/classnames": "^2.2.7",
"@types/deep-freeze": "^0.1.1",
"@types/grafana__slate-react": "npm:@types/slate-react@0.22.5",