Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrades to Yarn 3 #630

Open
wants to merge 11 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,6 @@ lib
coverage
.idea/
**/.docusaurus/
profile*.json
profile*.json
.yarn/cache
.yarn/install-state.gz
2 changes: 1 addition & 1 deletion .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

npx lint-staged
yarn lint-staged
2 changes: 1 addition & 1 deletion .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"request": "launch",
"name": "Jest",
"skipFiles": ["<node_internals>/**"],
"program": "node_modules/jest/bin/jest.js",
"program": "scripts/node_modules/jest/bin/jest.js",
"outFiles": ["${workspaceFolder}/**/*.js"],
"args": ["--runInBand", "${fileBasenameNoExtension}"],
"sourceMaps": true
Expand Down
14 changes: 14 additions & 0 deletions .yarn/patches/node-fetch-npm-2.6.9-9fc9a54529.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
diff --git a/lib/index.js b/lib/index.js
index 337d6e52e5fc62c26f1f46ac115505fa8e327b5c..0eb6fca3837ef3edec25dfc25f5891a0c5911cd6 100644
--- a/lib/index.js
+++ b/lib/index.js
@@ -1181,8 +1181,7 @@ function isRequest(input) {
}

function isAbortSignal(signal) {
- const proto = signal && typeof signal === 'object' && Object.getPrototypeOf(signal);
- return !!(proto && proto.constructor.name === 'AbortSignal');
+ return typeof signal.aborted === "boolean" && typeof signal.removeEventListener === "function";
}

/**
873 changes: 873 additions & 0 deletions .yarn/releases/yarn-3.4.1.cjs

Large diffs are not rendered by default.

4 changes: 4 additions & 0 deletions .yarnrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
yarnPath: .yarn/releases/yarn-3.4.1.cjs
nodeLinker: pnpm
enableGlobalCache: true
enableMirror: true
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "patch",
"comment": "upgrading to yarn3 + pnpm",
"packageName": "@lage-run/cache",
"email": "[email protected]",
"dependentChangeType": "patch"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "patch",
"comment": "upgrading to yarn3 + pnpm",
"packageName": "@lage-run/cache-github-actions",
"email": "[email protected]",
"dependentChangeType": "patch"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "patch",
"comment": "upgrading to yarn3 + pnpm",
"packageName": "@lage-run/cli",
"email": "[email protected]",
"dependentChangeType": "patch"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "patch",
"comment": "changing package manager to yarn 3",
"packageName": "@lage-run/config",
"email": "[email protected]",
"dependentChangeType": "patch"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "patch",
"comment": "upgrading to yarn3 + pnpm",
"packageName": "@lage-run/format-hrtime",
"email": "[email protected]",
"dependentChangeType": "patch"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "patch",
"comment": "upgrading to yarn3 + pnpm",
"packageName": "@lage-run/hasher",
"email": "[email protected]",
"dependentChangeType": "patch"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "patch",
"comment": "upgrading to yarn3 + pnpm",
"packageName": "@lage-run/logger",
"email": "[email protected]",
"dependentChangeType": "patch"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "patch",
"comment": "upgrading to yarn3 + pnpm",
"packageName": "@lage-run/reporters",
"email": "[email protected]",
"dependentChangeType": "patch"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "patch",
"comment": "upgrading to yarn3 + pnpm",
"packageName": "@lage-run/scheduler",
"email": "[email protected]",
"dependentChangeType": "patch"
}
7 changes: 7 additions & 0 deletions change/lage-60318a04-55e2-40e2-955f-4b892b70a4a9.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "patch",
"comment": "upgrading to yarn3 + pnpm",
"packageName": "lage",
"email": "[email protected]",
"dependentChangeType": "patch"
}
9 changes: 8 additions & 1 deletion lage.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,10 @@ const fastGlob = require("fast-glob");
/** @type {import("@lage-run/cli/src/types/ConfigOptions").ConfigOptions} */
module.exports = {
pipeline: {
"lage#bundle": ["^^transpile", "types"],
"lage#bundle": {
outputs: ["dist/**"],
dependsOn: ["^^transpile", "types"]
},
types: {
type: "worker",
options: {
Expand All @@ -29,22 +32,26 @@ module.exports = {
options: {
worker: path.join(__dirname, "scripts/worker/jest.js"),
},
outputs: [],
dependsOn: ["build"],
},
lint: {
type: "worker",
outputs: [],
options: {
worker: path.join(__dirname, "scripts/worker/lint.js"),
},
},
depcheck: {
type: "worker",
outputs: [],
options: {
worker: path.join(__dirname, "scripts/worker/depcheck.js"),
},
},
"@lage-run/e2e-tests#test": {
type: "npmScript",
outputs: [],
dependsOn: ["^^transpile", "lage#bundle"],
},
},
Expand Down
16 changes: 9 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,7 @@
"gh-pages": "gh-pages",
"format": "prettier --config .prettierrc packages/**/*.ts **/*.json --write --ignore-path .gitignore",
"format:check": "prettier --config .prettierrc packages/**/*.ts **/*.json --check --ignore-path .gitignore",
"prepare": "husky install",
"postinstall": "patch-package"
"postinstall": "husky install"
},
"devDependencies": {
"@types/jest": "29.5.0",
Expand All @@ -44,11 +43,14 @@
"syncpack": "8.5.14"
},
"resolutions": {
"workspace-tools": "^0.32.0",
"typescript": "^5.0.3"
"node-fetch@^2.6.7": "patch:node-fetch@npm%3A2.6.9#./.yarn/patches/node-fetch-npm-2.6.9-9fc9a54529.patch",
"node-fetch@^2.6.0": "patch:node-fetch@npm%3A2.6.9#./.yarn/patches/node-fetch-npm-2.6.9-9fc9a54529.patch",
"typescript": "^5.0.3",
"workspace-tools": "^0.32.0"
},
"lint-staged": {
"*.ts": "prettier --config .prettierrc --write --ignore-path .gitignore",
"*.json": "prettier --config .prettierrc --write --ignore-path .gitignore"
}
"*.ts": "yarn prettier --config .prettierrc --write --ignore-path .gitignore",
"*.json": "yarn prettier --config .prettierrc --write --ignore-path .gitignore"
},
"packageManager": "[email protected]"
}
176 changes: 0 additions & 176 deletions packages/cache-github-actions/CHANGELOG.json

This file was deleted.

Loading