Use workspace meshtastic packages (#749)

* refactor: updated web package.json to use workspace

* formatting fixes
This commit is contained in:
Dan Ditomaso
2025-07-28 18:18:46 -04:00
committed by GitHub
parent 56487d3832
commit 4dd911e73d
17 changed files with 130 additions and 172 deletions
+4 -4
View File
@@ -1,7 +1,7 @@
import { Socket } from "node:net";
import { Readable, Writable } from "node:stream";
import { Utils } from "@meshtastic/core";
import type { Types } from "@meshtastic/core";
import { Utils } from "@meshtastic/core";
export class TransportNode implements Types.Transport {
private readonly _toDevice: WritableStream<Uint8Array>;
@@ -45,9 +45,9 @@ export class TransportNode implements Types.Transport {
) as ReadableStream<Uint8Array>;
this._fromDevice = fromDeviceSource.pipeThrough(Utils.fromDeviceStream());
// Stream for data going FROM the application TO the Meshtastic device.
const toDeviceTransform = Utils.toDeviceStream;
this._toDevice = toDeviceTransform.writable;
// Stream for data going FROM the application TO the Meshtastic device.
const toDeviceTransform = Utils.toDeviceStream;
this._toDevice = toDeviceTransform.writable;
// The readable end of the transform is then piped to the Node.js socket.
// A similar assertion is needed here because `Writable.toWeb` also returns