Skip to content

Commit

Permalink
Move entry file to src directory
Browse files Browse the repository at this point in the history
  • Loading branch information
zuisong authored and gitbutler-client committed Feb 15, 2024
1 parent d7e1fdf commit c474d05
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 9 deletions.
8 changes: 4 additions & 4 deletions build.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ import * as esbuild from "esbuild"
*/
const config = {
entryPoints: [
"./main_bun.ts",
"./main_cloudflare-workers.ts",
"./main_deno.ts",
"./main_node.ts",
"./src/main_bun.ts",
"./src/main_cloudflare-workers.ts",
"./src/main_deno.ts",
"./src/main_node.ts",
],
bundle: true,
outdir: "dist",
Expand Down
2 changes: 0 additions & 2 deletions main_cloudflare-workers.ts

This file was deleted.

2 changes: 1 addition & 1 deletion main_bun.ts → src/main_bun.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { app } from "./src/app.ts"
import { app } from "./app.ts"

class PolyfillTextDecoderStream
extends TransformStream<Uint8Array, string>
Expand Down
2 changes: 2 additions & 0 deletions src/main_cloudflare-workers.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
import { app } from "./app.ts"
app.fire()
2 changes: 1 addition & 1 deletion main_deno.ts → src/main_deno.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { app } from "./src/app.ts"
import { app } from "./app.ts"

// @ts-ignore supress warning
Deno.serve({ port: 8000 }, app.fetch)
2 changes: 1 addition & 1 deletion main_node.ts → src/main_node.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { serve } from "@hono/node-server"
import { app } from "./src/app.ts"
import { app } from "./app.ts"
console.log("Listening on http://localhost:8000/")
serve({
fetch: app.fetch,
Expand Down

0 comments on commit c474d05

Please sign in to comment.