Skip to content

Commit

Permalink
Update yarn to 4.4.1
Browse files Browse the repository at this point in the history
- Use corepack
- Add hardlinks-global field
- Deduplicate
  • Loading branch information
tiziodcaio committed Sep 15, 2024
1 parent fc5ef50 commit 832e8f1
Show file tree
Hide file tree
Showing 90 changed files with 168,630 additions and 127,550 deletions.
1 change: 1 addition & 0 deletions .codesandbox/ci.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"packages": ["packages/react", "packages/react-dom", "packages/scheduler"],
"installCommand": "install-berry",
"buildCommand": "download-build-in-codesandbox-ci",
"node": "18",
"publishDirectory": {
Expand Down
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# Third party
**/node_modules
.yarn

# Not written by hand
packages/react-art/npm/lib
Expand Down
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,12 @@ chrome-user-data
.vscode
*.swp
*.swo
**/.pnp.*
**/.yarn/*
!**/.yarn/patches
!**/.yarn/plugins
!**/.yarn/sdks
!**/.yarn/versions

packages/react-devtools-core/dist
packages/react-devtools-extensions/chrome/build
Expand Down
2 changes: 2 additions & 0 deletions .yarnrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
nodeLinker: node-modules
nmMode: hardlinks-global
4 changes: 0 additions & 4 deletions compiler/apps/playground/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,5 @@
"monaco-editor-webpack-plugin": "^7.1.0",
"postcss": "^8.4.31",
"tailwindcss": "^3.2.4"
},
"resolutions": {
"./**/@babel/parser": "7.7.4",
"./**/@babel/types": "7.7.4"
}
}
11 changes: 4 additions & 7 deletions compiler/crates/react_napi/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,13 @@
"main": "dist/index.js",
"license": "MIT",
"files": [
"src"
"src"
],
"private": true,
"scripts": {
"build": "napi build --platform --release --js-package-name @react/forget-napi --js dist/index.js --dts dist/index.d.ts && mv *.node dist/"
},
"dependencies": {
"build": "napi build --platform --release --js-package-name @react/forget-napi --js dist/index.js --dts dist/index.d.ts && mv *.node dist/"
},
"devDependencies": {
"@napi-rs/cli": "^2.15.2"
"@napi-rs/cli": "^2.15.2"
}
}

}
27 changes: 21 additions & 6 deletions compiler/crates/react_napi/yarn.lock
Original file line number Diff line number Diff line change
@@ -1,8 +1,23 @@
# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
# yarn lockfile v1
# This file is generated by running "yarn install" inside your project.
# Manual changes might be lost - proceed with caution!

__metadata:
version: 8
cacheKey: 10c0

"@napi-rs/cli@^2.15.2":
version "2.16.3"
resolved "https://registry.yarnpkg.com/@napi-rs/cli/-/cli-2.16.3.tgz#6943d0614bbb4900a97b18ae074f735864f78c4b"
integrity sha512-3mLNPlbbOhpbIUKicLrJtIearlHXUuXL3UeueYyRRplpVMNkdn8xCyzY6PcYZi3JXR8bmCOiWgkVmLnrSL7DKw==
"@napi-rs/cli@npm:^2.15.2":
version: 2.16.3
resolution: "@napi-rs/cli@npm:2.16.3"
bin:
napi: scripts/index.js
checksum: 10c0/9531d1aeb9bf40529c873b73c3dc5277ca28ff3bc97779f736732ef50b2de0719167e11397d193a1dd674d54c823c2b5fd3970c0cda9ea9e68444c1c2c29bded
languageName: node
linkType: hard

"@react/forget-napi@workspace:.":
version: 0.0.0-use.local
resolution: "@react/forget-napi@workspace:."
dependencies:
"@napi-rs/cli": "npm:^2.15.2"
languageName: unknown
linkType: soft
3 changes: 1 addition & 2 deletions compiler/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,5 @@
},
"resolutions": {
"react-is": "19.0.0-beta-b498834eab-20240506"
},
"packageManager": "[email protected]"
}
}
3 changes: 0 additions & 3 deletions compiler/packages/babel-plugin-react-compiler/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,6 @@
"ts-node": "^10.9.2"
},
"resolutions": {
"./**/@babel/parser": "7.7.4",
"./**/@babel/plugin-syntax-flow": "7.7.4",
"./**/@babel/types": "7.7.4",
"@babel/core": "7.2.0",
"@babel/generator": "7.2.0",
"@babel/traverse": "7.7.4"
Expand Down
5 changes: 1 addition & 4 deletions compiler/packages/react-compiler-healthcheck/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@
"name": "react-compiler-healthcheck",
"version": "0.0.0-experimental-ab3118d-20240725",
"description": "Health check script to test violations of the rules of react.",
"bin": {
"react-compiler-healthcheck": "dist/index.js"
},
"bin": "dist/index.js",
"scripts": {
"build": "rimraf dist && rollup --config --bundleConfigAsCjs",
"test": "echo 'no tests'"
Expand All @@ -19,7 +17,6 @@
"zod": "^3.22.4",
"zod-validation-error": "^3.0.3"
},
"devDependencies": {},
"engines": {
"node": "^14.17.0 || ^16.0.0 || >= 18.0.0"
},
Expand Down
2 changes: 0 additions & 2 deletions compiler/packages/snap/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,6 @@
"rimraf": "^3.0.2"
},
"resolutions": {
"./**/@babel/parser": "7.7.4",
"./**/@babel/types": "7.7.4",
"@babel/preset-flow": "7.22.5"
}
}
Loading

0 comments on commit 832e8f1

Please sign in to comment.