One Version
-- One Version is a strict dependency conformance tool for monorepos, - managing dependencies across repos has never been easier! -
-- This tool ensures that all workspaces in your monorepo are using the - same version of a dependency, and also an (opt-in) strict versioning - strategy to ensure that all dependencies are pinned to an exact - version. -
+ return ( +One Version
++ One Version is a strict dependency conformance tool for monorepos, managing dependencies across repos has + never been easier! +
++ This tool ensures that all workspaces in your monorepo are using the same version of a dependency, and also an + (opt-in) strict versioning strategy to ensure that all dependencies are pinned to an exact version. +
-Installation
-
- Install
bun install one-version
- yarn add one-version
- pnpm install one-version
- npm install one-version
- --- Notably!
-one-version should be installed at - the root of your monorepo. -
Usage:
-
- Once you've installed
- {`{
+
+
+
+
+
Installation
+
+ Install
bun install one-version
+ yarn add one-version
+ pnpm install one-version
+ npm install one-version
+ +++ Notably!
+one-version should be installed at the root of your monorepo. +
Usage:
+
+ Once you've installed
+ {`{
"scripts": {
"one-version:check": "one-version check"
}
}`}
-
-
- You can now run
Configuration:
-
-
-
- You can configure
+ You can now run
Configuration:
+
+
+
+ You can configure
- {`{
+
+ {`{
"$schema": "https://one-version.vercel.app/schema.json",
// one of: "bun", "yarn-berry", "yarn-classic", "pnpm", "npm"
// by default it will try to detect the package manager based on the presence of a lockfile
@@ -178,62 +160,59 @@ export default function Home() {
// meaning no ranges (\`^\`, \`~\`, \`.x\`, etc.) are allowed
"versionStrategy": "pin"
}`}
-
-
Background and Inspiration:
-
- This package is a spiritual fork of the{" "}
-
-
- That package still works fine, but hasn't been maintained in some
- time - and also doesn't support either{" "}
-
- Both this package and the original implement a version of
- Google's
--- For every dependency in [a] repository, there must be only one - version of that dependency to choose - - 1 - -
-
- [1] -{" "} - - Software Engineering At Google - {" "} - - Winters, Manshreck and Wright, 2020, p. 341 -
-