MCPcopy
hub / github.com/vercel/next-forge / updateInternalDependencies

Function updateInternalDependencies

scripts/initialize.ts:165–180  ·  view source on GitHub ↗
(projectDir: string)

Source from the content-addressed store, hash-verified

163};
164
165const updateInternalDependencies = async (projectDir: string) => {
166 const rootPackageJsonPath = join(projectDir, "package.json");
167 await updateInternalPackageDependencies(rootPackageJsonPath);
168
169 const workspaceDirs = ["apps", "packages"];
170
171 for (const dir of workspaceDirs) {
172 const dirPath = join(projectDir, dir);
173 const packages = await readdir(dirPath);
174
175 for (const pkg of packages) {
176 const path = join(dirPath, pkg, "package.json");
177 await updateInternalPackageDependencies(path);
178 }
179 }
180};
181
182const getName = async () => {
183 const value = await text({

Callers 1

initializeFunction · 0.85

Calls 1

Tested by

no test coverage detected