message: 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
diff: @@ -154,8 +154,10 @@ const commonConfig = {
  replace: 'bindings',
  },
  ),
  + replace(
  + /node_modules\/lzma-native\/index\.js$/,
  // remove node-pre-gyp magic from lzma-native
  - replace(/node_modules\/lzma-native\/index\.js$/, {
  + {
  search: 'require(binding_path)',
  replace: () => {
  return `require('./${path.posix.join(
  @@ -163,7 +165,13 @@ const commonConfig = {
  '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
  replace(/node_modules\/@balena.io\/usb\/usb\.js$/, {
  search: 'require(binding_path)',
  