Migrate to pnpm (#11358)
parent
c7dd3d3a8e
commit
12afb2efdc
@ -0,0 +1,2 @@
|
||||
ignore-workspace-cycles=true
|
||||
enable-pre-post-scripts=true
|
@ -1,37 +0,0 @@
|
||||
# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
|
||||
# yarn lockfile v1
|
||||
|
||||
|
||||
"@babel/runtime@^7.7.6":
|
||||
version "7.17.7"
|
||||
resolved "https://registry.yarnpkg.com/@babel/runtime/-/runtime-7.17.7.tgz#a5f3328dc41ff39d803f311cfe17703418cf9825"
|
||||
integrity sha512-L6rvG9GDxaLgFjg41K+5Yv9OMrU98sWe+Ykmc6FDJW/+vYZMhdOMKkISgzptMaERHvS2Y2lw9MDRm2gHhlQQoA==
|
||||
dependencies:
|
||||
regenerator-runtime "^0.13.4"
|
||||
|
||||
history@^5.2.0:
|
||||
version "5.3.0"
|
||||
resolved "https://registry.yarnpkg.com/history/-/history-5.3.0.tgz#1548abaa245ba47992f063a0783db91ef201c73b"
|
||||
integrity sha512-ZqaKwjjrAYUYfLG+htGaIIZ4nioX2L70ZUMIFysS3xvBsSG4x/n1V6TXV3N8ZYNuFGlDirFg32T7B6WOUPDYcQ==
|
||||
dependencies:
|
||||
"@babel/runtime" "^7.7.6"
|
||||
|
||||
react-router-dom@^6.2.2:
|
||||
version "6.2.2"
|
||||
resolved "https://registry.yarnpkg.com/react-router-dom/-/react-router-dom-6.2.2.tgz#f1a2c88365593c76b9612ae80154a13fcb72e442"
|
||||
integrity sha512-AtYEsAST7bDD4dLSQHDnk/qxWLJdad5t1HFa1qJyUrCeGgEuCSw0VB/27ARbF9Fi/W5598ujvJOm3ujUCVzuYQ==
|
||||
dependencies:
|
||||
history "^5.2.0"
|
||||
react-router "6.2.2"
|
||||
|
||||
react-router@6.2.2:
|
||||
version "6.2.2"
|
||||
resolved "https://registry.yarnpkg.com/react-router/-/react-router-6.2.2.tgz#495e683a0c04461eeb3d705fe445d6cf42f0c249"
|
||||
integrity sha512-/MbxyLzd7Q7amp4gDOGaYvXwhEojkJD5BtExkuKmj39VEE0m3l/zipf6h2WIB2jyAO0lI6NGETh4RDcktRm4AQ==
|
||||
dependencies:
|
||||
history "^5.2.0"
|
||||
|
||||
regenerator-runtime@^0.13.4:
|
||||
version "0.13.9"
|
||||
resolved "https://registry.yarnpkg.com/regenerator-runtime/-/regenerator-runtime-0.13.9.tgz#8925742a98ffd90814988d7566ad30ca3b263b52"
|
||||
integrity sha512-p3VT+cOEgxFsRRA9X4lkI1E+k2/CtnKtU4gcxyaCUreilL/vqI6CdZ3wxVUx3UOUg+gnUOQQcRI7BmSI656MYA==
|
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,6 @@
|
||||
packages:
|
||||
- "packages/react-router"
|
||||
- "packages/react-router-dom"
|
||||
- "packages/react-router-dom-v5-compat"
|
||||
- "packages/react-router-native"
|
||||
- "packages/router"
|
@ -1,23 +0,0 @@
|
||||
import * as path from "path";
|
||||
import { createRequire } from "node:module";
|
||||
|
||||
// Changesets assumes that an internal peer dependency's version range should
|
||||
// include the version of that package in our repo. This normally makes sense,
|
||||
// but the compat package has a peer dependency on react-router-dom v4 or v5, so
|
||||
// we need to:
|
||||
// - Avoid validity checks for peer dependencies (done via patch package)
|
||||
// - Reset the automatic version updates resulting from yarn changeset version
|
||||
// (done via a simple node script)
|
||||
|
||||
const require = createRequire(import.meta.url);
|
||||
const jsonfile = require("jsonfile");
|
||||
|
||||
let file = path.join(
|
||||
process.cwd(),
|
||||
"packages/react-router-dom-v5-compat/package.json"
|
||||
);
|
||||
let json = await jsonfile.readFile(file);
|
||||
json.peerDependencies["react-router-dom"] = "4 || 5";
|
||||
await jsonfile.writeFile(file, json, { spaces: 2 });
|
||||
|
||||
console.log("Patched peerDependencies for react-router-dom-v5-compat");
|
Loading…
Reference in New Issue