Skip to content

Commit

Permalink
Improve naming
Browse files Browse the repository at this point in the history
  • Loading branch information
0x80 committed Mar 30, 2024
1 parent fc8fd51 commit d67b020
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/lib/manifest/helpers/adapt-internal-package-manifests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,18 +24,18 @@ export async function adaptInternalPackageManifests(
const { manifest, rootRelativeDir } = packagesRegistry[packageName];

/** Dev dependencies and scripts are never included for internal deps */
const inputManifest = omit(manifest, ["scripts", "devDependencies"]);
const strippedManifest = omit(manifest, ["scripts", "devDependencies"]);

const outputManifest =
packageManager.name === "pnpm" && !forceNpm
? /**
* For PNPM the output itself is a workspace so we can preserve the specifiers
* with "workspace:*" in the output manifest.
*/
inputManifest
strippedManifest
: /** For other package managers we replace the links to internal dependencies */
adaptManifestInternalDeps({
manifest: inputManifest,
manifest: strippedManifest,
packagesRegistry,
parentRootRelativeDir: rootRelativeDir,
});
Expand Down

0 comments on commit d67b020

Please sign in to comment.