mirror of
https://github.com/pnpm/pnpm.git
synced 2025-12-25 08:08:14 -05:00
fix: run user pnpmfiles after plugin pnpmfiles (#9732)
This commit is contained in:
6
.changeset/itchy-plums-report.md
Normal file
6
.changeset/itchy-plums-report.md
Normal file
@@ -0,0 +1,6 @@
|
||||
---
|
||||
"@pnpm/cli-utils": patch
|
||||
"pnpm": patch
|
||||
---
|
||||
|
||||
Run user defined pnpmfiles after pnpmfiles of plugins.
|
||||
@@ -41,7 +41,7 @@ export async function getConfig (
|
||||
const pnpmfiles = config.pnpmfile == null ? [] : Array.isArray(config.pnpmfile) ? config.pnpmfile : [config.pnpmfile]
|
||||
if (config.configDependencies) {
|
||||
const configModulesDir = path.join(config.lockfileDir ?? config.rootProjectManifestDir, 'node_modules/.pnpm-config')
|
||||
pnpmfiles.push(...calcPnpmfilePathsOfPluginDeps(configModulesDir, config.configDependencies))
|
||||
pnpmfiles.unshift(...calcPnpmfilePathsOfPluginDeps(configModulesDir, config.configDependencies))
|
||||
}
|
||||
const { hooks, resolvedPnpmfilePaths } = requireHooks(config.lockfileDir ?? config.dir, {
|
||||
globalPnpmfile: config.globalPnpmfile,
|
||||
|
||||
Reference in New Issue
Block a user