fix(core): prevent max buffer issues with bunlock files (#25985)
Fixes #25978 #25965
This commit is contained in:
parent
901d17d273
commit
ed1f7a68ea
@ -55,7 +55,9 @@ export const createNodes: CreateNodes = [
|
|||||||
const lockFileContents =
|
const lockFileContents =
|
||||||
packageManager !== 'bun'
|
packageManager !== 'bun'
|
||||||
? readFileSync(lockFilePath).toString()
|
? readFileSync(lockFilePath).toString()
|
||||||
: execSync(`bun ${lockFilePath}`).toString();
|
: execSync(`bun ${lockFilePath}`, {
|
||||||
|
maxBuffer: 1024 * 1024 * 10,
|
||||||
|
}).toString();
|
||||||
const lockFileHash = getLockFileHash(lockFileContents);
|
const lockFileHash = getLockFileHash(lockFileContents);
|
||||||
|
|
||||||
if (!lockFileNeedsReprocessing(lockFileHash)) {
|
if (!lockFileNeedsReprocessing(lockFileHash)) {
|
||||||
@ -98,7 +100,9 @@ export const createDependencies: CreateDependencies = (
|
|||||||
const lockFileContents =
|
const lockFileContents =
|
||||||
packageManager !== 'bun'
|
packageManager !== 'bun'
|
||||||
? readFileSync(lockFilePath).toString()
|
? readFileSync(lockFilePath).toString()
|
||||||
: execSync(`bun ${lockFilePath}`).toString();
|
: execSync(`bun ${lockFilePath}`, {
|
||||||
|
maxBuffer: 1024 * 1024 * 10,
|
||||||
|
}).toString();
|
||||||
const lockFileHash = getLockFileHash(lockFileContents);
|
const lockFileHash = getLockFileHash(lockFileContents);
|
||||||
|
|
||||||
if (!lockFileNeedsReprocessing(lockFileHash)) {
|
if (!lockFileNeedsReprocessing(lockFileHash)) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user