Skip to content
This repository has been archived by the owner on Mar 13, 2024. It is now read-only.

Commit

Permalink
fix: imports
Browse files Browse the repository at this point in the history
  • Loading branch information
Pixselve committed Jan 31, 2024
1 parent 5d3d0c6 commit 727ae0a
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 9 deletions.
8 changes: 6 additions & 2 deletions packages/server/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
import { SOCKET_EVENTS, TPS, PlayerMoveDTO } from '@viper-vortex/shared';
import {
SOCKET_EVENTS,
TPS,
PlayerMoveDTO,
orbsToPacket,
} from '@viper-vortex/shared';
import { Server } from 'socket.io';
import { Player } from './lib/Player.js';
import { Scene } from './lib/Scene.js';
import { SEND_SCORES_INTERVAL } from './lib/constants.js';
import { orbsToPacket } from '@viper-vortex/shared/dist/protocol';

const io = new Server({
cors: {
Expand Down
2 changes: 1 addition & 1 deletion packages/server/src/lib/Orb.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import {
randomDarkColor,
colors,
} from '@viper-vortex/shared';
import { uid } from './utils';
import { uid } from './utils.js';

export class Orb {
public readonly id: string;
Expand Down
7 changes: 4 additions & 3 deletions packages/shared/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
export * from "./constants.js";
export * from "./types.js";
export * from "./utils.js";
export * from './constants.js';
export * from './types.js';
export * from './utils.js';
export * from './protocol.js';
4 changes: 2 additions & 2 deletions packages/shared/src/protocol.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { View } from 'structurae';
import { colors } from './utils';
import { OrbDTO } from './types';
import { colors } from './utils.js';
import { OrbDTO } from './types.js';

const view = new View();

Expand Down
2 changes: 1 addition & 1 deletion packages/shared/src/utils.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { PlayerDTO } from './types';
import { PlayerDTO } from './types.js';

export const colors = [
'#FF0000',
Expand Down

0 comments on commit 727ae0a

Please sign in to comment.