Merge pull request #1164 from spotify/rugvip/nowarn
packages/cli: avoid duplicate dependency warning in E2E test
This commit is contained in:
@@ -143,6 +143,7 @@ export async function installWithLocalDeps(dir: string) {
|
||||
// Add to both resolutions and dependencies, or transitive dependencies will still be fetched from the registry.
|
||||
pkgJson.dependencies[`@backstage/${name}`] = `file:${pkgPath}`;
|
||||
pkgJson.resolutions[`@backstage/${name}`] = `file:${pkgPath}`;
|
||||
delete pkgJson.devDependencies[`@backstage/${name}`];
|
||||
|
||||
await fs
|
||||
.writeJSON(pkgJsonPath, pkgJson, { encoding: 'utf8', spaces: 2 })
|
||||
|
||||
Reference in New Issue
Block a user