forked from redwoodjs/redwood
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Upgrade Framework to Yarn v3 (redwoodjs#3154)
* setup and install yarn berry * futz'n to get it work'n * upgrade @babel/parser * trying to run eslint to from tasks/framework-tools * upgrade to yarn v3.0.0 * upgrade all task projects * e2e install fix * fix lint and tooling scripts * lint fix * changes per review comments * fix test * use yarn cache GH workflow * upgrade cypress * fix local cypress run-e2e * stashed: experimenting with execa process * enable preferInteractive I ran yarn dlx doctor (something like that), and we're relying on hoisting an awful lot. preferInteractive will help us clean things up as we add deps. * Update yarn v3.0.2 yarn dlx @yarnpkgs/doctor wasn't working for me with yarn v3.0.1 and the version of the workspace plugin we had * Revert "stashed: experimenting with execa process" This reverts commit fe20ee1. * update yarn.lock files * build:test-project working 🚀 remove comment * use demandCommand instead * draft code for subDir check * Add SubDir check * add Yarn TypeScript plugin * remove cross-env from yarn scripts * GH Actions: fix command, add (update) yarn caching * update yarn.lock * fix yarn cache on CI * added yarn constraints plugin * CI fix another CI fix attempt CI: trying more things might be the one nope * Update global declaration for useAuth * Move auth global type augmentation to ambient.d.ts * Also update web tsconfig to use ambient * Also do ambient type thingies for router * misc TS fixes and lint cleanup * CI: add yarn constraints and dedupe checks * allow package scripts build and test * fix dependency constraintes dedupe * update yarn.lock * fix build TS and codemod package errors * update yarn.lock * use jscodeshift in root * remove jscodeshift from root package.json * align loose option for babel plugins * add yarn seciton to contributing * add babel plugin * update contributing toc * update Yarn section in CONTRIBUTING * add yarn cache to GH Workflow publish canary * move dep to devDep per comment review Co-authored-by: jtoar <dominic.saadi@hey.com> Co-authored-by: Daniel Choudhury <dannychoudhury@gmail.com>
- Loading branch information
1 parent
21f2a49
commit 82c3e6a
Showing
54 changed files
with
45,304 additions
and
34,805 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
compressionLevel: 0 | ||
|
||
enableGlobalCache: true | ||
|
||
nmMode: hardlinks-local | ||
|
||
nodeLinker: node-modules | ||
|
||
plugins: | ||
- path: .yarn/plugins/@yarnpkg/plugin-workspace-tools.cjs | ||
spec: "@yarnpkg/plugin-workspace-tools" | ||
- path: .yarn/plugins/@yarnpkg/plugin-typescript.cjs | ||
spec: "@yarnpkg/plugin-typescript" | ||
- path: .yarn/plugins/@yarnpkg/plugin-constraints.cjs | ||
spec: "@yarnpkg/plugin-constraints" | ||
|
||
preferInteractive: true | ||
|
||
yarnPath: .yarn/releases/yarn-3.0.2.cjs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
% Yarn Constraints https://yarnpkg.com/features/constraints | ||
% check with "yarn constraints" (fix w/ "yarn constraints --fix") | ||
% reference for other constraints: https://github.com/babel/babel/blob/main/constraints.pro | ||
|
||
% Enforces that a dependency doesn't appear in both `dependencies` and `devDependencies` | ||
gen_enforced_dependency(WorkspaceCwd, DependencyIdent, null, 'devDependencies') :- | ||
workspace_has_dependency(WorkspaceCwd, DependencyIdent, _, 'devDependencies'), | ||
workspace_has_dependency(WorkspaceCwd, DependencyIdent, _, 'dependencies'). | ||
|
||
% Prevent two workspaces from depending on conflicting versions of a same dependency | ||
gen_enforced_dependency(WorkspaceCwd, DependencyIdent, DependencyRange2, DependencyType) :- | ||
workspace_has_dependency(WorkspaceCwd, DependencyIdent, DependencyRange, DependencyType), | ||
workspace_has_dependency(OtherWorkspaceCwd, DependencyIdent, DependencyRange2, DependencyType2), | ||
DependencyRange \= DependencyRange2. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.