Skip to content

Commit

Permalink
Include correct folder
Browse files Browse the repository at this point in the history
  • Loading branch information
Arilith committed Feb 22, 2025
1 parent 1a286d6 commit e7f21d5
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 51 deletions.
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ COPY . .
# [optional] tests & build
ENV NODE_ENV=production
RUN bun test
RUN bun run build
RUN bun run build:ts

FROM base AS test
COPY --from=prerelease /usr/src/app/src src
Expand All @@ -36,6 +36,7 @@ ENTRYPOINT [ "bun", "test" ]
FROM base AS release
COPY --from=install /temp/prod/node_modules node_modules
COPY --from=prerelease /usr/src/app/src src
COPY --from=prerelease /usr/src/app/publish publish
COPY --from=prerelease /usr/src/app/package.json .

# run the app
Expand Down
1 change: 0 additions & 1 deletion docker-compose.test.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
version: '3'
services:
database:
image: postgis/postgis
Expand Down
36 changes: 0 additions & 36 deletions src/Models/General/File.ts

This file was deleted.

10 changes: 1 addition & 9 deletions src/Services/FeedManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@
*/
import {TrainUpdateCollection} from "../Models/TrainUpdateCollection";

import {File} from "../Models/General/File";

import {TripIdWithDate} from "../Interfaces/TVVManager";

import {transit_realtime} from "../Compiled/compiled";
Expand Down Expand Up @@ -96,13 +94,7 @@ export class FeedManager implements IFeedManager {
}

private saveToFile(buffer: Buffer, fileName: string): void {
const file: File = new File(
'./publish/',
fileName,
buffer
);

file.saveSync();
Bun.write(`./publish/${fileName}`, buffer);

console.log(`[FeedManager] Saved updates to ${fileName}`);
}
Expand Down
2 changes: 1 addition & 1 deletion src/Shared
6 changes: 3 additions & 3 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@
"allowJs": true,

// Bundler mode
"moduleResolution": "bundler",
"allowImportingTsExtensions": true,
"verbatimModuleSyntax": true,
"moduleResolution": "node",
// "allowImportingTsExtensions": true,
// "verbatimModuleSyntax": true,
"noEmit": true,

// Best practices
Expand Down

0 comments on commit e7f21d5

Please sign in to comment.