mirror of
https://github.com/balena-io/etcher.git
synced 2025-07-19 17:26:34 +00:00
User regular stream in lzma-native instead of readable-stream
Changelog-entry: User regular stream in lzma-native instead of readable-stream Change-type: patch
This commit is contained in:
parent
482c29bc2a
commit
f8e21e2338
@ -154,16 +154,24 @@ const commonConfig = {
|
|||||||
replace: 'bindings',
|
replace: 'bindings',
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
// remove node-pre-gyp magic from lzma-native
|
replace(
|
||||||
replace(/node_modules\/lzma-native\/index\.js$/, {
|
/node_modules\/lzma-native\/index\.js$/,
|
||||||
search: 'require(binding_path)',
|
// remove node-pre-gyp magic from lzma-native
|
||||||
replace: () => {
|
{
|
||||||
return `require('./${path.posix.join(
|
search: 'require(binding_path)',
|
||||||
LZMA_BINDINGS_FOLDER,
|
replace: () => {
|
||||||
'lzma_native.node',
|
return `require('./${path.posix.join(
|
||||||
)}')`;
|
LZMA_BINDINGS_FOLDER,
|
||||||
|
'lzma_native.node',
|
||||||
|
)}')`;
|
||||||
|
},
|
||||||
},
|
},
|
||||||
}),
|
// use regular stream module instead of readable-stream
|
||||||
|
{
|
||||||
|
search: "var stream = require('readable-stream');",
|
||||||
|
replace: "var stream = require('stream');",
|
||||||
|
},
|
||||||
|
),
|
||||||
// remove node-pre-gyp magic from usb
|
// remove node-pre-gyp magic from usb
|
||||||
replace(/node_modules\/@balena.io\/usb\/usb\.js$/, {
|
replace(/node_modules\/@balena.io\/usb\/usb\.js$/, {
|
||||||
search: 'require(binding_path)',
|
search: 'require(binding_path)',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user