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

Upgrade to yarn berry #1

Open
wants to merge 2 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: 4 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
/.yarn/** linguist-vendored
/.yarn/releases/* binary
/.yarn/plugins/**/* binary
/.pnp.* binary linguist-generated
9 changes: 9 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -46,3 +46,12 @@ coverage
# Don't want to include the lock files for these examples
# since they can be downloaded and reused
examples/*/*.lock

# Yarn berry
.pnp.*
.yarn/*
!.yarn/patches
!.yarn/plugins
!.yarn/releases
!.yarn/sdks
!.yarn/versions
28 changes: 28 additions & 0 deletions .yarn/plugins/@yarnpkg/plugin-workspace-tools.cjs

Large diffs are not rendered by default.

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

Large diffs are not rendered by default.

7 changes: 7 additions & 0 deletions .yarnrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
nodeLinker: node-modules

plugins:
- path: .yarn/plugins/@yarnpkg/plugin-workspace-tools.cjs
spec: "@yarnpkg/plugin-workspace-tools"

yarnPath: .yarn/releases/yarn-3.5.0.cjs
24 changes: 12 additions & 12 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,23 +1,22 @@
{
"name": "react-md",
"name": "react-md-monorepo",
"private": true,
"version": "2.4.0",
"description": "The mono-repo for react-md",
"main": "index.js",
"scripts": {
"prepare": "husky install",
"cz": "cz",
"release": "dev-utils release",
"sandbox": "dev-utils sandbox",
"sassdoc": "dev-utils sassdoc",
"release": "yarn workspace @react-md/dev-utils dev-utils release",
"sandbox": "yarn workspace @react-md/dev-utils dev-utils sandbox",
"sassdoc": "yarn workspace @react-md/dev-utils dev-utils sassdoc",
"start": "yarn workspace documentation start-dev",
"dev": "npm-run-all -p watch start",
"setup": "npm-run-all build-dev-utils force-install build \"sandbox --empty\"",
"force-install": "yarn --force",
"styles": "dev-utils styles",
"variables": "dev-utils variables",
"run-indexer": "dev-utils doc-index",
"generate-typedoc": "dev-utils typedoc",
"setup": "npm-run-all build-dev-utils build \"sandbox --empty\"",
"styles": "yarn workspace @react-md/dev-utils dev-utils styles",
"variables": "yarn workspace @react-md/dev-utils dev-utils variables",
"run-indexer": "yarn workspace @react-md/dev-utils dev-utils doc-index",
"generate-typedoc": "yarn workspace @react-md/dev-utils dev-utils typedoc",
"build-docs-meta": "npm-run-all sandbox sassdoc run-indexer generate-typedoc",
"build-docs": "yarn workspace documentation build",
"build-website": "npm-run-all build-docs-meta build-docs",
Expand All @@ -39,7 +38,7 @@
"clean": "dev-utils clean",
"clean-dev-utils": "yarn workspace @react-md/dev-utils clean",
"clean-all": "npm-run-all clean clean-dev-utils",
"watch": "dev-utils watch"
"watch": "yarn workspace @react-md/dev-utils dev-utils watch"
},
"repository": {
"type": "git",
Expand Down Expand Up @@ -110,5 +109,6 @@
"commitizen": {
"path": "cz-conventional-changelog"
}
}
},
"packageManager": "[email protected]"
}
1 change: 1 addition & 0 deletions packages/autocomplete/src/useAutoComplete.ts
Original file line number Diff line number Diff line change
Expand Up @@ -393,6 +393,7 @@ export function useAutoComplete({
break;
case "Enter":
if (visible && focusedIndex >= 0) {
event.preventDefault();
event.stopPropagation();
handleAutoComplete(focusedIndex);
hide();
Expand Down
4 changes: 1 addition & 3 deletions packages/dev-utils/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,7 @@
"version": "2.9.1",
"description": "Common build utilities for react-md. Contains helpers for building, watching, testing, etc",
"private": true,
"bin": {
"dev-utils": "./bin/cli.js"
},
"bin": "./bin/cli.js",
"scripts": {
"clean": "rimraf bin dist",
"executable": "node executable.js",
Expand Down
2 changes: 1 addition & 1 deletion packages/documentation/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"private": true,
"scripts": {
"prebuild": "node updateProdEnv.js",
"run-indexer": "dev-utils doc-index",
"run-indexer": "yarn workspace @react-md/dev-utils dev-utils doc-index",
"dev": "cross-env NEXT_TELEMETRY_DISABLED=1 next dev",
"build": "cross-env NEXT_TELEMETRY_DISABLED=1 next build",
"start": "cross-env NEXT_TELEMETRY_DISABLED=1 NODE_ENV=production next start",
Expand Down
37,156 changes: 21,673 additions & 15,483 deletions yarn.lock

Large diffs are not rendered by default.