File tree Expand file tree Collapse file tree 4 files changed +11
-3
lines changed Expand file tree Collapse file tree 4 files changed +11
-3
lines changed Original file line number Diff line number Diff line change 5
5
## What it changes
6
6
7
7
- Sets [ enablePrePostScripts] ( https://pnpm.io/cli/run#enableprepostscripts ) to ` false ` .
8
+ - Sets [ hoistPattern] ( https://pnpm.io/settings#hoistpattern ) to an empty array, disabling hoisting.
9
+ - Sets [ ignorePatchFailures] ( https://pnpm.io/settings#ignorepatchfailures ) to ` false ` .
8
10
- Sets [ optimisticRepeatInstall] ( https://pnpm.io/settings#optimisticrepeatinstall ) to ` true ` .
9
11
- Sets [ resolutionMode] ( https://pnpm.io/settings#resolutionmode ) to ` lowest-direct ` .
10
12
- Sets [ verifyDepsBeforeRun] ( https://pnpm.io/settings#verifydepsbeforerun ) to ` install ` .
Original file line number Diff line number Diff line change 4
4
"description" : " Improved defaults for pnpm" ,
5
5
"main" : " index.js" ,
6
6
"scripts" : {
7
- "test" : " echo \" Error: no test specified \" && exit 1 "
7
+ "test" : " pnpm install "
8
8
},
9
9
"keywords" : [],
10
10
"license" : " MIT" ,
11
- "packageManager" : " pnpm@10.8 .0"
11
+ "packageManager" : " pnpm@10.10 .0"
12
12
}
Original file line number Diff line number Diff line change
1
+ pnpmfile : pnpmfile.cjs
Original file line number Diff line number Diff line change 1
1
module . exports = {
2
2
hooks : {
3
3
updateConfig ( config ) {
4
- return Object . assign ( config , {
4
+ Object . assign ( config , {
5
5
enablePrePostScripts : false ,
6
+ ignorePatchFailures : false ,
6
7
optimisticRepeatInstall : true ,
7
8
resolutionMode : 'lowest-direct' ,
8
9
verifyDepsBeforeRun : 'install' ,
9
10
} )
11
+ if ( config . hoistPattern ?. length === 1 && config . hoistPattern [ 0 ] === '*' ) {
12
+ config . hoistPattern = [ ]
13
+ }
14
+ return config
10
15
}
11
16
}
12
17
}
You can’t perform that action at this time.
0 commit comments