changed files depending on the old folder "app" to the new folder "src"

This commit is contained in:
2025-10-20 16:41:14 +02:00
parent 272c9519b9
commit d8e2027efa
4 changed files with 9 additions and 9 deletions

View File

@@ -1,6 +1,6 @@
#!/bin/bash #!/bin/bash
crontab -l > mycron crontab -l > mycron
echo "0 8 * * * bun run ./app/app.ts --today > /dev/null 2>&1" >> mycron echo "0 8 * * * bun run ./src/app.ts --today > /dev/null 2>&1" >> mycron
echo "0 * * * * bun run ./app/app.ts --all > /dev/null 2>&1" >> mycron echo "0 * * * * bun run ./src/app.ts > /dev/null 2>&1" >> mycron
crontab mycron crontab mycron
rm mycron rm mycron

View File

@@ -1,17 +1,17 @@
{ {
"name": "eventcalender", "name": "eventcalender",
"module": "index.ts", "module": "./src/app.ts",
"type": "module", "type": "module",
"private": true, "private": true,
"devDependencies": { "devDependencies": {
"@types/bun": "^1.3.0" "@types/bun": "^1.3.0"
}, },
"scripts": { "scripts": {
"dev": "bun run ./app/app.ts", "dev": "bun run ./src/app.ts",
"dev:init": "bun run ./app/app.ts --init", "dev:init": "bun run ./src/app.ts --init",
"db:init": "bun run ./run/db_init.ts", "db:init": "bun run ./run/db_init.ts",
"db:deleteall": "bun run ./run/db_deleteall.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": { "peerDependencies": {
"typescript": "^5" "typescript": "^5"

View File

@@ -1,4 +1,4 @@
import * as db from "../app/sql"; import * as db from "../src/sql";
const query = db.db.query("DELETE FROM events;"); const query = db.db.query("DELETE FROM events;");
query.run(); query.run();

View File

@@ -1,5 +1,5 @@
import { Event } from "../app/component/event/events"; import { Event } from "../src/component/event/events";
import * as db from "../app/sql"; import * as db from "../src/sql";
import { Database } from "bun:sqlite"; import { Database } from "bun:sqlite";
export function init ( db: Database ) { export function init ( db: Database ) {