modulify everything

This commit is contained in:
Elijah R 2024-06-25 21:17:38 -04:00
parent 9f4c652164
commit 7a1fc4bafd
8 changed files with 1653 additions and 19 deletions

4
.gitignore vendored
View file

@ -11,3 +11,7 @@
#!.yarn/cache
.pnp.*
.parcel-cache/
dist/
node_modules/

View file

@ -1,8 +1,28 @@
{
"name": "collab-vm-1.2-binary-protocol",
"author": "Computernewb Development Team",
"description": "Common schema for the CollabVM 1.2 Binary Protocol",
"license": "MIT",
"type": "module",
"packageManager": "yarn@4.2.2"
"name": "@cvmts/collab-vm-1.2-binary-protocol",
"version": "1.0.0",
"description": "Common schema for the CollabVM 1.2 Binary Protocol",
"exports": "./dist/index.js",
"types": "./dist/index.d.ts",
"type": "module",
"scripts": {
"build": "parcel build src/index.ts --target node --target types"
},
"author": "",
"license": "MIT",
"targets": {
"types": {},
"node": {
"context": "node",
"isLibrary": true,
"outputFormat": "esmodule"
}
},
"devDependencies": {
"@parcel/packager-ts": "2.12.0",
"@parcel/transformer-typescript-types": "2.12.0",
"parcel": "^2.12.0",
"typescript": ">=3.0.0"
},
"packageManager": "yarn@1.22.22+sha512.a6b2f7906b721bba3d67d4aff083df04dad64c399707841b7acf00f6b133b7ac24255f2652fa22ae3534329dc6180534e98d17432037ff6fd140556e2bb3137e"
}

View file

@ -1,4 +1,4 @@
export default class CollabVMCapabilities {
export class CollabVMCapabilities {
// Support for JPEG screen rects in binary msgpack format
bin: boolean;

View file

@ -1,4 +1,4 @@
import CollabVMRectMessage from "./CollabVMRectMessage.js";
import { CollabVMRectMessage } from "./CollabVMRectMessage.js";
export interface CollabVMProtocolMessage {
type: CollabVMProtocolMessageType;

View file

@ -1,4 +1,4 @@
export default interface CollabVMRectMessage {
export interface CollabVMRectMessage {
x: number;
y: number;
data: Uint8Array;

3
src/index.ts Normal file
View file

@ -0,0 +1,3 @@
export * from "./CollabVMProtocolMessage.js";
export * from "./CollabVMRectMessage.js";
export * from "./CollabVMCapabilities.js";

10
tsconfig.json Normal file
View file

@ -0,0 +1,10 @@
// This is the base tsconfig the entire cvmts project uses
{
"compilerOptions": {
"target": "ES2022",
"module": "ES2022",
"moduleResolution": "Node",
"allowSyntheticDefaultImports": true,
"strict": true,
}
}

1617
yarn.lock

File diff suppressed because it is too large Load diff