Chore: Migrate yarn from v1 to v2 (#39082)

* Chore: Migrate yarn from v1 to v2

Co-authored-by: Hugo Häggmark <hugo.haggmark@gmail.com>
This commit is contained in:
kay delaney
2021-10-08 15:19:10 +01:00
committed by GitHub
co-authored by Hugo Häggmark
parent 1b2a1a9621
commit b2e94d0733
41 changed files with 34840 additions and 24788 deletions
+35 -16
View File
@@ -20,7 +20,7 @@
"lint": "yarn run lint:ts && yarn run lint:sass",
"lint:ts": "eslint . --ext .js,.tsx,.ts --cache",
"lint:sass": "yarn run sass-lint -c public/sass/.sass-lint.yml 'public/sass/**/*.scss, packages/**/*.scss' -v -i '**/node_modules/**/*.scss'",
"test:ci": "mkdir -p reports/junit && export JEST_JUNIT_OUTPUT_DIR=reports/junit && jest --ci --reporters=default --reporters=jest-junit -w ${TEST_MAX_WORKERS:-100%}",
"test:ci": "mkdir -p reports/junit && JEST_JUNIT_OUTPUT_DIR=reports/junit jest --ci --reporters=default --reporters=jest-junit -w ${TEST_MAX_WORKERS:-100%}",
"lint:fix": "yarn lint --fix",
"packages:build": "lerna run clean && lerna run build --ignore @grafana-plugins/input-datasource",
"packages:docsExtract": "rm -rf ./reports/docs && lerna run docsExtract",
@@ -36,12 +36,9 @@
"precommit": "yarn run lint-staged",
"prettier:check": "prettier --list-different \"**/*.{ts,tsx,scss,md,mdx}\"",
"prettier:write": "prettier --list-different \"**/*.{ts,tsx,scss,js,md,mdx}\" --write",
"prestart": "yarn themes:generate",
"prestart:hot": "yarn themes:generate",
"prestart:noTsCheck": "yarn themes:generate",
"start": "webpack --progress --color --watch --env noTsCheck=0 --config scripts/webpack/webpack.dev.js",
"start:hot": "webpack serve --progress --color --config scripts/webpack/webpack.hot.js",
"start:noTsCheck": "webpack --progress --color --watch --env noTsCheck=1 --config scripts/webpack/webpack.dev.js",
"start": "yarn themes:generate && webpack --progress --color --watch --env noTsCheck=0 --config scripts/webpack/webpack.dev.js",
"start:hot": "yarn themes:generate && webpack serve --progress --color --config scripts/webpack/webpack.hot.js",
"start:noTsCheck": "yarn themes:generate && webpack --progress --color --watch --env noTsCheck=1 --config scripts/webpack/webpack.dev.js",
"stats": "webpack --mode production --config scripts/webpack/webpack.prod.js --profile --json > compilation-stats.json",
"storybook": "yarn workspace @grafana/ui storybook --ci",
"storybook:build": "yarn workspace @grafana/ui storybook:build",
@@ -85,7 +82,10 @@
"@emotion/eslint-plugin": "11.2.0",
"@grafana/api-documenter": "7.11.2",
"@grafana/api-extractor": "7.10.1",
"@grafana/e2e": "workspace:*",
"@grafana/eslint-config": "2.5.0",
"@grafana/toolkit": "workspace:*",
"@grafana/tsconfig": "^1.0.0-rc1",
"@kusto/monaco-kusto": "3.2.7",
"@pmmmwh/react-refresh-webpack-plugin": "^0.5.0-rc.6",
"@testing-library/jest-dom": "5.11.5",
@@ -117,6 +117,7 @@
"@types/papaparse": "5.2.0",
"@types/pluralize": "^0.0.29",
"@types/prismjs": "1.16.0",
"@types/rc-time-picker": "^3",
"@types/react": "16.9.9",
"@types/react-beautiful-dnd": "13.1.1",
"@types/react-dom": "16.9.9",
@@ -152,6 +153,7 @@
"copy-webpack-plugin": "9.0.1",
"css-loader": "6.2.0",
"css-minimizer-webpack-plugin": "^3.0.2",
"cypress": "8.4.1",
"enzyme": "3.11.0",
"enzyme-to-json": "3.4.4",
"es-abstract": "1.18.0-next.1",
@@ -178,10 +180,11 @@
"html-webpack-plugin": "5.3.2",
"http-server": "13.0.1",
"husky": "4.2.1",
"iconscout-unicons-tarball": "https://github.com/grafana/icons/tarball/9728be621a4e7d891611149c9cd179e793f790a7",
"iconscout-unicons-tarball": "https://github.com/grafana/icons/tarball/63056cd833ba7ee4e94904492b3a8c0cabc38d28",
"jest": "26.6.3",
"jest-canvas-mock": "2.3.0",
"jest-date-mock": "1.0.8",
"jest-junit": "^6.4.0",
"jest-matcher-utils": "26.0.0",
"lerna": "^4.0.0",
"lint-staged": "10.0.7",
@@ -211,6 +214,7 @@
"terser-webpack-plugin": "5.1.4",
"testing-library-selector": "^0.1.3",
"ts-jest": "26.4.4",
"ts-loader": "8.0.11",
"ts-node": "9.0.0",
"tslib": "2.3.1",
"typescript": "4.4.3",
@@ -227,7 +231,13 @@
"@emotion/css": "11.1.3",
"@emotion/react": "11.1.5",
"@grafana/aws-sdk": "0.0.3",
"@grafana/data": "workspace:*",
"@grafana/e2e-selectors": "workspace:*",
"@grafana/runtime": "workspace:*",
"@grafana/schema": "workspace:*",
"@grafana/slate-react": "0.22.10-grafana",
"@grafana/ui": "workspace:*",
"@jaegertracing/jaeger-ui-components": "workspace:*",
"@opentelemetry/api": "1.0.2",
"@opentelemetry/exporter-collector": "0.23.0",
"@opentelemetry/semantic-conventions": "0.23.0",
@@ -281,6 +291,7 @@
"memoize-one": "5.1.1",
"moment": "2.29.1",
"moment-timezone": "0.5.33",
"monaco-editor": "0.27.0",
"monaco-promql": "^1.7.2",
"mousetrap": "1.6.5",
"mousetrap-global-bind": "1.1.0",
@@ -290,6 +301,9 @@
"prismjs": "1.25.0",
"prop-types": "15.7.2",
"rc-cascader": "1.5.0",
"rc-drawer": "4.4.0",
"rc-slider": "9.6.4",
"rc-time-picker": "^3.7.3",
"re-resizable": "^6.2.0",
"react": "17.0.1",
"react-beautiful-dnd": "13.1.0",
@@ -297,6 +311,8 @@
"react-dom": "17.0.1",
"react-grid-layout": "1.2.5",
"react-highlight-words": "0.17.0",
"react-hook-form": "7.5.3",
"react-inlinesvg": "2.3.0",
"react-loadable": "5.5.0",
"react-popper": "2.2.4",
"react-redux": "7.2.5",
@@ -312,7 +328,7 @@
"redux-thunk": "2.3.0",
"regenerator-runtime": "0.13.3",
"reselect": "4.0.0",
"rst2html": "github:thoward/rst2html#990cb89",
"rst2html": "github:thoward/rst2html#990cb89f2a300cdd9151790be377c4c0840df809",
"rxjs": "7.3.0",
"search-query-parser": "1.5.4",
"semver": "^7.1.3",
@@ -321,21 +337,23 @@
"tether": "1.4.7",
"tether-drop": "https://github.com/torkelo/drop",
"tinycolor2": "1.4.1",
"uplot": "1.6.16",
"uuid": "8.3.0",
"visjs-network": "4.25.0",
"whatwg-fetch": "3.1.0"
},
"resolutions": {
"underscore": "1.12.1"
"underscore": "1.12.1",
"@types/slate": "0.47.2",
"@microsoft/api-extractor-model": "7.10.3",
"@rushstack/node-core-library": "3.34.3",
"@rushstack/rig-package": "0.2.4",
"@rushstack/ts-command-line": "4.7.3"
},
"workspaces": {
"packages": [
"packages/*",
"plugins-bundled/internal/*"
],
"nohoist": [
"**/@types/*",
"**/@types/*/**"
]
},
"engines": {
@@ -343,6 +361,7 @@
},
"volta": {
"node": "14.16.0",
"yarn": "1.22.5"
}
"yarn": "3.1.0-rc.5"
},
"packageManager": "yarn@3.1.0-rc.5"
}