fix: don't copy optional dependencies from the store (#7255)

close #7046
This commit is contained in:
Zoltan Kochan
2023-10-31 12:31:50 +02:00
committed by GitHub
parent 3eeb16fdc6
commit cfc017ee38
19 changed files with 179 additions and 8 deletions

View 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
}