Skip to content

Commit

Permalink
server restart on file save no longer default on run dev and debug, f…
Browse files Browse the repository at this point in the history
…ixed some warnings
  • Loading branch information
xXDMOGXx committed Nov 19, 2024
1 parent 9113b97 commit d14acd3
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"type": "node",
"request": "launch",
"name": "Debug ChessBot Server",
"runtimeExecutable": "nodemon",
"runtimeExecutable": "ts-node",
"program": "${workspaceFolder}/src/server/main.ts",
"restart": true,
"console": "integratedTerminal",
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
"version": "0.0.0",
"workspaces": ["src/client", "src/server"],
"scripts": {
"dev": "nodemon src/server/main.ts",
"dev": "ts-node src/server/main.ts",
"devup": "nodemon src/server/main.ts",
"debug": "nodemon --inspect src/server/main.ts",
"start": "NODE_ENV=production ts-node ./src/server/main.ts",
"build": "vite build",
Expand Down
3 changes: 1 addition & 2 deletions src/server/robot/path-materializer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,6 @@ function moveMainPiece(move: GridMove): MovePiece {
/**
* Te easiest move to get to the dead zone
*/
//TODO: Change the move to Grid that way we can move off the board.
function moveToDeadZone(origin: GridIndices): GridMove {
const aboveMove = {
from: origin,
Expand Down Expand Up @@ -417,7 +416,7 @@ function findGridIndicesInArray(
array: GridIndices[],
obj: GridIndices,
): number {
return array.findIndex((o) => o.i == obj.i && o.j == obj.j);
return array.findIndex((o) => o.i === obj.i && o.j === obj.j);
}

function returnToHome(from: GridIndices, id: string): SequentialCommandGroup {
Expand Down

0 comments on commit d14acd3

Please sign in to comment.