fix: remove unused imports and variables from server files to resolve build errors.
All checks were successful
Build and Deploy / build (push) Successful in 1m32s
All checks were successful
Build and Deploy / build (push) Successful in 1m32s
This commit is contained in:
@@ -82,7 +82,7 @@ define(['./workbox-5a5d9309'], (function (workbox) { 'use strict';
|
||||
"revision": "3ca0b8505b4bec776b69afdba2768812"
|
||||
}, {
|
||||
"url": "index.html",
|
||||
"revision": "0.56865l1cj5s"
|
||||
"revision": "0.l4u3i9b5p1c"
|
||||
}], {});
|
||||
workbox.cleanupOutdatedCaches();
|
||||
workbox.registerRoute(new workbox.NavigationRoute(workbox.createHandlerBoundToURL("index.html"), {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
|
||||
import { StrictGameState, PlayerState, Phase, Step, StackObject } from './types';
|
||||
import { StrictGameState, Phase, Step } from './types';
|
||||
|
||||
export class RulesEngine {
|
||||
public state: StrictGameState;
|
||||
@@ -561,7 +561,7 @@ export class RulesEngine {
|
||||
}
|
||||
}
|
||||
|
||||
private cleanupStep(playerId: string) {
|
||||
private cleanupStep(_playerId: string) {
|
||||
// Remove damage, discard down to 7
|
||||
console.log(`Cleanup execution.`);
|
||||
Object.values(this.state.cards).forEach(c => {
|
||||
|
||||
@@ -4,12 +4,10 @@ import path from 'path';
|
||||
import { RoomManager } from './RoomManager';
|
||||
import { DraftManager } from './DraftManager';
|
||||
import { GameManager } from './GameManager';
|
||||
import { fileURLToPath } from 'url';
|
||||
|
||||
import { RedisClientManager } from './RedisClientManager';
|
||||
|
||||
// Handling __dirname in ESM
|
||||
const __filename = fileURLToPath(import.meta.url);
|
||||
const __dirname = path.dirname(__filename);
|
||||
|
||||
|
||||
// Store data in src/server/data so it persists (assuming not inside a dist that gets wiped, but user root)
|
||||
const DATA_DIR = path.resolve(process.cwd(), 'server-data');
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
|
||||
import fs from 'fs';
|
||||
|
||||
import path from 'path';
|
||||
import { fileURLToPath } from 'url';
|
||||
import { fileStorageManager } from '../managers/FileStorageManager';
|
||||
|
||||
Reference in New Issue
Block a user