Skip to content

Commit

Permalink
fix: use empty catalogs in deprecated @pnpm/make-dedicated-lockfile
Browse files Browse the repository at this point in the history
  • Loading branch information
gluxon committed Jun 25, 2024
1 parent 6c60aee commit 0c499ff
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion packages/make-dedicated-lockfile/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,12 @@ export async function makeDedicatedLockfile (lockfileDir: string, projectDir: st
await writeWantedLockfile(projectDir, dedicatedLockfile)

const { manifest, writeProjectManifest } = await readProjectManifest(projectDir)
const publishManifest = await createExportableManifest(projectDir, manifest)
const publishManifest = await createExportableManifest(projectDir, manifest, {
// Since @pnpm/make-dedicated-lockfile is deprecated, avoid supporting new
// features like pnpm catalogs. Passing in an empty catalog object
// intentionally.
catalogs: {},
})
await writeProjectManifest(publishManifest)

const modulesDir = path.join(projectDir, 'node_modules')
Expand Down

0 comments on commit 0c499ff

Please sign in to comment.