mirror of
https://github.com/pnpm/pnpm.git
synced 2026-03-22 09:01:45 -04:00
fix: don't copy optional dependencies from the store (#7255)
close #7046
This commit is contained in:
4
exec/files-include-install-scripts/src/index.ts
Normal file
4
exec/files-include-install-scripts/src/index.ts
Normal file
@@ -0,0 +1,4 @@
|
||||
export function filesIncludeInstallScripts (filesIndex: Record<string, unknown>): boolean {
|
||||
return filesIndex['binding.gyp'] != null ||
|
||||
Object.keys(filesIndex).some((filename) => !(filename.match(/^[.]hooks[\\/]/) == null)) // TODO: optimize this
|
||||
}
|
||||
Reference in New Issue
Block a user