Chore: Update to yarn 4 (#77156)

* update to yarn 4

* update project to yarn 4

* update tetherdrop archive

* update sdks

* change puppeteer image to official node 20 one

* revert previous, use grafana/docker-puppeteer:pre-node-20 instead

* okay, try original docker image, but use npx instead of yarn for wait-on

* remove wait-on from deps as we use it via npx now

* yarn dedupe

* remove logs from drone

* empty commit testing yarn cache :)

* comment explaining why no -y
pull/77296/head
Josh Hunt 2 years ago committed by GitHub
parent 661e1e2fff
commit 75005a8482
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      .drone.yml
  2. BIN
      .yarn/cache/tether-drop-https-3382d2649f-178c3afb88.zip
  3. BIN
      .yarn/cache/tether-drop-https-3382d2649f-a10a7337d5.zip
  4. 546
      .yarn/plugins/@yarnpkg/plugin-interactive-tools.cjs
  5. 9
      .yarn/plugins/@yarnpkg/plugin-typescript.cjs
  6. 874
      .yarn/releases/yarn-3.6.4.cjs
  7. 893
      .yarn/releases/yarn-4.0.0.cjs
  8. 10
      .yarn/sdks/eslint/package.json
  9. 20
      .yarn/sdks/prettier/index.js
  10. 5
      .yarn/sdks/prettier/package.json
  11. 6
      .yarn/sdks/typescript/lib/typescript.js
  12. 6
      .yarn/sdks/typescript/package.json
  13. 10
      .yarnrc.yml
  14. 3
      package.json
  15. 3
      scripts/drone/steps/lib.star
  16. 17725
      yarn.lock

@ -685,7 +685,7 @@ steps:
include:
- packages/grafana-ui/**
- commands:
- yarn wait-on http://$HOST:$PORT
- npx wait-on@7.0.1 http://$HOST:$PORT
- pa11y-ci --config .pa11yci-pr.conf.js
depends_on:
- grafana-server
@ -1936,7 +1936,7 @@ steps:
include:
- packages/grafana-ui/**
- commands:
- yarn wait-on http://$HOST:$PORT
- npx wait-on@7.0.1 http://$HOST:$PORT
- pa11y-ci --config .pa11yci.conf.js --json > pa11y-ci-results.json
depends_on:
- grafana-server
@ -4670,6 +4670,6 @@ kind: secret
name: gcr_credentials
---
kind: signature
hmac: 64de498d74f13b64f233fe5d37751903a0efb03b3cab28e046797dc80d390965
hmac: 920b57d70a96a29872ce77dc83ca26e2d141ba37627eee58c9d3beebf9ec4055
...

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

@ -2,5 +2,13 @@
"name": "eslint",
"version": "8.52.0-sdk",
"main": "./lib/api.js",
"type": "commonjs"
"type": "commonjs",
"bin": {
"eslint": "./bin/eslint.js"
},
"exports": {
"./package.json": "./package.json",
".": "./lib/api.js",
"./use-at-your-own-risk": "./lib/unsupported-api.js"
}
}

@ -1,20 +0,0 @@
#!/usr/bin/env node
const {existsSync} = require(`fs`);
const {createRequire} = require(`module`);
const {resolve} = require(`path`);
const relPnpApiPath = "../../../.pnp.cjs";
const absPnpApiPath = resolve(__dirname, relPnpApiPath);
const absRequire = createRequire(absPnpApiPath);
if (existsSync(absPnpApiPath)) {
if (!process.versions.pnp) {
// Setup the environment to be able to require prettier
require(absPnpApiPath).setup();
}
}
// Defer to the real prettier your application uses
module.exports = absRequire(`prettier`);

@ -1,6 +1,7 @@
{
"name": "prettier",
"version": "3.0.0-sdk",
"main": "./index.js",
"type": "commonjs"
"main": "./index.cjs",
"type": "commonjs",
"bin": "./bin/prettier.cjs"
}

@ -11,10 +11,10 @@ const absRequire = createRequire(absPnpApiPath);
if (existsSync(absPnpApiPath)) {
if (!process.versions.pnp) {
// Setup the environment to be able to require typescript/lib/typescript.js
// Setup the environment to be able to require typescript
require(absPnpApiPath).setup();
}
}
// Defer to the real typescript/lib/typescript.js your application uses
module.exports = absRequire(`typescript/lib/typescript.js`);
// Defer to the real typescript your application uses
module.exports = absRequire(`typescript`);

@ -2,5 +2,9 @@
"name": "typescript",
"version": "4.8.4-sdk",
"main": "./lib/typescript.js",
"type": "commonjs"
"type": "commonjs",
"bin": {
"tsc": "./bin/tsc",
"tsserver": "./bin/tsserver"
}
}

@ -1,3 +1,7 @@
compressionLevel: mixed
enableGlobalCache: false
enableTelemetry: false
nodeLinker: pnp
@ -28,14 +32,10 @@ packageExtensions:
react-dom: 17.0.1
plugins:
- path: .yarn/plugins/@yarnpkg/plugin-typescript.cjs
spec: '@yarnpkg/plugin-typescript'
- path: .yarn/plugins/@yarnpkg/plugin-interactive-tools.cjs
spec: '@yarnpkg/plugin-interactive-tools'
- path: .yarn/plugins/@yarnpkg/plugin-outdated.cjs
spec: 'https://mskelton.dev/yarn-outdated/v2'
yarnPath: .yarn/releases/yarn-3.6.4.cjs
yarnPath: .yarn/releases/yarn-4.0.0.cjs
# Uncomment the following lines if you want to use Verdaccio local npm registry. Read more at packages/README.md
# npmScopes:
# grafana:

@ -228,7 +228,6 @@
"ts-jest": "29.1.1",
"ts-node": "10.9.1",
"typescript": "4.8.4",
"wait-on": "7.0.1",
"webpack": "5.89.0",
"webpack-bundle-analyzer": "4.9.0",
"webpack-cli": "5.1.4",
@ -444,7 +443,7 @@
"engines": {
"node": ">= 20"
},
"packageManager": "yarn@3.6.4",
"packageManager": "yarn@4.0.0",
"dependenciesMeta": {
"prettier@3.0.0": {
"unplugged": true

@ -614,7 +614,8 @@ def test_a11y_frontend_step(ver_mode, port = 3001):
Drone step.
"""
commands = [
"yarn wait-on http://$HOST:$PORT",
# Note - this runs in a container running node 14, which does not support the -y option to npx
"npx wait-on@7.0.1 http://$HOST:$PORT",
]
failure = "ignore"
if ver_mode == "pr":

17725
yarn.lock

File diff suppressed because it is too large Load Diff
Loading…
Cancel
Save