From d8e2027efaa97e75c082421b1aa0f1903b48c554 Mon Sep 17 00:00:00 2001 From: chiko Date: Mon, 20 Oct 2025 16:41:14 +0200 Subject: [PATCH] changed files depending on the old folder "app" to the new folder "src" --- entrypoint.sh | 4 ++-- package.json | 8 ++++---- run/db_deleteall.ts | 2 +- run/db_init.ts | 4 ++-- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/entrypoint.sh b/entrypoint.sh index d3d8520..f3fc625 100644 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -1,6 +1,6 @@ #!/bin/bash crontab -l > mycron -echo "0 8 * * * bun run ./app/app.ts --today > /dev/null 2>&1" >> mycron -echo "0 * * * * bun run ./app/app.ts --all > /dev/null 2>&1" >> mycron +echo "0 8 * * * bun run ./src/app.ts --today > /dev/null 2>&1" >> mycron +echo "0 * * * * bun run ./src/app.ts > /dev/null 2>&1" >> mycron crontab mycron rm mycron \ No newline at end of file diff --git a/package.json b/package.json index 23a04eb..dea8da3 100644 --- a/package.json +++ b/package.json @@ -1,17 +1,17 @@ { "name": "eventcalender", - "module": "index.ts", + "module": "./src/app.ts", "type": "module", "private": true, "devDependencies": { "@types/bun": "^1.3.0" }, "scripts": { - "dev": "bun run ./app/app.ts", - "dev:init": "bun run ./app/app.ts --init", + "dev": "bun run ./src/app.ts", + "dev:init": "bun run ./src/app.ts --init", "db:init": "bun run ./run/db_init.ts", "db:deleteall": "bun run ./run/db_deleteall.ts", - "build": "bun build ./app/app.ts --compile --outfile ./build/77th_event_calendar_notification" + "build": "bun build ./src/app.ts --compile --outfile ./build/77th_event_calendar_notification" }, "peerDependencies": { "typescript": "^5" diff --git a/run/db_deleteall.ts b/run/db_deleteall.ts index 8a73b8d..1966777 100644 --- a/run/db_deleteall.ts +++ b/run/db_deleteall.ts @@ -1,4 +1,4 @@ -import * as db from "../app/sql"; +import * as db from "../src/sql"; const query = db.db.query("DELETE FROM events;"); query.run(); \ No newline at end of file diff --git a/run/db_init.ts b/run/db_init.ts index 7c00847..d811769 100644 --- a/run/db_init.ts +++ b/run/db_init.ts @@ -1,5 +1,5 @@ -import { Event } from "../app/component/event/events"; -import * as db from "../app/sql"; +import { Event } from "../src/component/event/events"; +import * as db from "../src/sql"; import { Database } from "bun:sqlite"; export function init ( db: Database ) {