From 551c6e52466a566c184eaae56b960dd4c02521e2 Mon Sep 17 00:00:00 2001 From: SimonFJ20 Date: Thu, 26 Sep 2024 01:41:32 +0200 Subject: [PATCH] manual port + cache --- deno.jsonc | 2 +- main.ts | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/deno.jsonc b/deno.jsonc index cd465d9..3badee1 100644 --- a/deno.jsonc +++ b/deno.jsonc @@ -6,7 +6,7 @@ "tasks": { "check": "deno check main.ts", "dev": "deno run -A --unstable-ffi --env main.ts", - "compile": "deno compile --allow-net --allow-read --allow-env --allow-write --allow-ffi --allow-run --unstable-ffi --env main.ts", + "compile": "deno compile --allow-net --allow-read --allow-env --allow-write --allow-ffi --allow-run --unstable-ffi --output bunker --include 'https://deno.land/x/bcrypt@v0.4.1/src/worker.ts' main.ts", "reset-db": "rm -rf bunker.db && sqlite3 bunker.db '.read database.sql'" } } diff --git a/main.ts b/main.ts index 36232fe..725d1ab 100644 --- a/main.ts +++ b/main.ts @@ -1,7 +1,6 @@ import * as sqlite from "jsr:@db/sqlite@0.11"; import * as oak from "jsr:@oak/oak@14"; import * as bcrypt from "https://deno.land/x/bcrypt@v0.4.1/mod.ts"; -import * as _bcrypt_worker from "https://deno.land/x/bcrypt@v0.4.1/src/worker.ts"; type User = { id: number;