From 5179966c72caefa04529b11466a09d4e329ee2b6 Mon Sep 17 00:00:00 2001 From: Loc Nguyen Date: Tue, 5 Mar 2024 08:55:28 -0800 Subject: [PATCH] Add version to package in internal packages docs for yarn (#7626) ### Description Added the package version to the internal packages docs example. Without version in the shared internal package, Yarn will attempt to fetch from the npm registry leading to rabbitholes like this one: https://github.com/vercel/turbo/issues/6322 ### Testing Instructions Confirm docs load with new text. --- docs/pages/repo/docs/handbook/sharing-code/internal-packages.mdx | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/pages/repo/docs/handbook/sharing-code/internal-packages.mdx b/docs/pages/repo/docs/handbook/sharing-code/internal-packages.mdx index 09f79efff3eac..6ba3c07b83561 100644 --- a/docs/pages/repo/docs/handbook/sharing-code/internal-packages.mdx +++ b/docs/pages/repo/docs/handbook/sharing-code/internal-packages.mdx @@ -45,6 +45,7 @@ Create a `package.json`: ```json filename="packages/math-helpers/package.json" { "name": "math-helpers", + "version": "0.0.1", "dependencies": { // Use whatever version of TypeScript you're using "typescript": "latest"