Skip to content

Commit

Permalink
chore: Update dependencies to use rusty-motors packages
Browse files Browse the repository at this point in the history
  • Loading branch information
drazisil committed May 13, 2024
1 parent fa0c3fb commit 3c93907
Show file tree
Hide file tree
Showing 63 changed files with 917 additions and 500 deletions.
7 changes: 5 additions & 2 deletions apps/main/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,11 @@
"license": "AGPL-3.0",
"dependencies": {
"@sentry/node": "^7.114.0",
"@sentry/profiling-node": "^7.114.0"
"@sentry/profiling-node": "^7.114.0",
"rusty-motors-gateway": "^1.0.0",
"rusty-motors-shared": "^1.0.0",
"tsx": "^4.10.2",
"typescript": "^5.4.5"
},
"devDependencies": {},
"description": ""
}
19 changes: 19 additions & 0 deletions nx.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"$schema": "./node_modules/nx/schemas/nx-schema.json",
"targetDefaults": {
"check": {
"cache": true
},
"lint": {
"cache": true
},
"format": {
"cache": true
},
"test": {
"cache": true
}
},
"defaultBase": "main",
"nxCloudAccessToken": "MWE5ZDAyNTQtM2JiNC00ZmIyLWI5MDEtYzFkYjhiMzgwMGMyfHJlYWQtd3JpdGU="
}
16 changes: 13 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,17 @@
"type": "git",
"url": "[email protected]:drazisil/mcos.git"
},
"dependencies": {},
"dependencies": {
"rusty-motors-shared": "^1.0.0",
"ts-node": "^10.9.2",
"typescript": "^5.4.5"
},
"description": "This is a game server, being written from scratch, for a very old and long dead game. The owners of said game have shown no interest in bringing it back, but even so all names of their IP have been avoided to prevent issues.",
"license": "AGPL-3.0",
"private": true,
"scripts": {},
"scripts": {
"start": "node --openssl-legacy-provider --env-file=.env --loader ts-node/esm ./apps/main/server.ts"
},
"type": "module",
"workspaces": [
"apps/main",
Expand All @@ -24,5 +30,9 @@
"packages/shard",
"packages/shared",
"packages/shared-packets",
"schema" ]
"schema"
],
"devDependencies": {
"nx": "19.0.2"
}
}
22 changes: 22 additions & 0 deletions packages/cli/vite.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
import { defineConfig } from "vitest/config";

export default defineConfig({
test: {
coverage: {
enabled: true,
all: true,
exclude: [
"src/**/*.spec.ts",
"src/**/*.test.ts",
"bin/**/*.ts",
"ecosystem.config.js",
"migrate.ts",
"packages/**/*.d.ts",
],
reporter: ["lcov", "text", "cobertura"],
},
reporters: ["junit", "default", "hanging-process"],
outputFile: "mcos.junit.xml",
pool: "forks",
},
});
8 changes: 7 additions & 1 deletion packages/connection/index.ts
Original file line number Diff line number Diff line change
@@ -1 +1,7 @@
export { Connection } from "./src/Connection.js";
export {
Connection,
createCommandEncryptionPair,
createDataEncryptionPair,
handleServerSocketError,
verifyLegacyCipherSupport,
} from './src/Connection.js';
2 changes: 1 addition & 1 deletion packages/connection/test/Connection.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { describe, expect, it, vi } from "vitest";
import {
createCommandEncryptionPair,
verifyLegacyCipherSupport,
} from "../src/Connection";
} from "rusty-motors-connection";
import { McosEncryptionPair } from "rusty-motors-shared";

vi.mock("@sentry/node", () => ({
Expand Down
22 changes: 22 additions & 0 deletions packages/connection/vite.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
import { defineConfig } from "vitest/config";

export default defineConfig({
test: {
coverage: {
enabled: true,
all: true,
exclude: [
"src/**/*.spec.ts",
"src/**/*.test.ts",
"bin/**/*.ts",
"ecosystem.config.js",
"migrate.ts",
"packages/**/*.d.ts",
],
reporter: ["lcov", "text", "cobertura"],
},
reporters: ["junit", "default", "hanging-process"],
outputFile: "mcos.junit.xml",
pool: "forks",
},
});
Loading

0 comments on commit 3c93907

Please sign in to comment.