From fd5434567402c7fb1d58f411bae439d7c436ce1b Mon Sep 17 00:00:00 2001 From: Golwhit Date: Mon, 29 Dec 2025 17:57:48 -0600 Subject: [PATCH] Prism-Notes migration: copy scaffold, update package metadata, add npm-based deps, switch startup to Bun.serve with custom logs, and ignore env/deps via .gitignore --- .gitignore | 14 ++++++++++++++ server.ts | 10 +++++++--- tsconfig.json | 2 +- 3 files changed, 22 insertions(+), 4 deletions(-) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..d2d05a8 --- /dev/null +++ b/.gitignore @@ -0,0 +1,14 @@ +# Dependencies +/node_modules/ + +# Environment +.env + +# OS/editor noise +.DS_Store +Thumbs.db +*.log + +# Bun/NPM cache artifacts +bun.lock +npm-debug.log* diff --git a/server.ts b/server.ts index 33e9f7d..ab7e89c 100644 --- a/server.ts +++ b/server.ts @@ -127,9 +127,13 @@ app.get('/', async (c) => { }); const PORT = Number(process.env.PORT || 5500); -console.log(`PBandGraph server running at http://localhost:${PORT}`); -export default { +// Start Bun server manually to avoid Bun's auto startup banner +const server = Bun.serve({ port: PORT, fetch: app.fetch, -}; +}); + +// Custom startup notes +console.log(`Prism Notes server running at http://localhost:${PORT}`); +console.log('Prism Notes API ready (health: /health)'); diff --git a/tsconfig.json b/tsconfig.json index 6f0efe0..f2df822 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -4,7 +4,7 @@ "module": "ESNext", "lib": ["ESNext", "DOM", "DOM.Iterable"], "types": ["bun-types", "node", "bun"], - "moduleResolution": "bundler", + "moduleResolution": "node", "allowImportingTsExtensions": true, "moduleDetection": "force", "noEmit": true,