Merge pull request #1164 from spotify/rugvip/nowarn

packages/cli: avoid duplicate dependency warning in E2E test
This commit is contained in:
Patrik Oldsberg
2020-06-06 12:53:51 +02:00
committed by GitHub
+1
View File
@@ -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 })