{ "tasks": { "chatbot:patient": "deno task run:trusted chatbot/chatbot.ts patient", "chatbot:pharmacist": "mkdir -p temp_files && deno task run:trusted chatbot/chatbot.ts pharmacist", "build": "NO_EXTERNAL_CONNECT=1 vite build", "vite": "vite", "proxy": "NO_MONKEY_PATCH_CONSOLE=1 deno task run:trusted proxy.ts", "start": "./scripts/dev.sh", "dev": "./scripts/dev.sh", "start:docker": "docker compose up -d", "start:beep": "./scripts/watch_and_beep.sh '(Error|error)' deno start", "rebuild": "rm -rf /_fresh && rm -rf node_modules && deno task lock:reset && deno task build", "web": "./scripts/web.sh", "db:codegen": "./db/codegen.sh", "db:local": "./db/local.sh", "db:docker": "./db/docker.sh", "db:migrate": "deno task run:trusted db/migrate.ts", "db:seed": "deno task run:trusted db/seed/run.ts", "db:drop": "deno task run:trusted db/drop.ts", "db:dump": "deno task run:trusted db/dump.ts", "db:rebuild": "deno task db:migrate to snomed_inferred && deno task db:migrate latest && deno task db:seed load && deno task db:codegen", "db:reset": "deno task run:trusted ./db/reset.ts", "db:restore": "deno task run:trusted db/restore.ts", "db:recreate": "deno task run:trusted db/recreate.ts", "db:create": "deno task run:trusted db/create.ts", "db:demo": "deno task db:local reset && deno task run:trusted ./scripts/add_dummy_data.ts", "db:stage:snomed": "deno task db:drop && deno task db:create && deno task db:migrate to snomed_inferred && deno task db:seed load 01_icd10 && deno task db:seed load 02_snomed_base && deno task db:seed load 03_snomed_inferred && rm -f ./db/dumps/snomed && deno task db:dump > ./db/dumps/snomed", "db:dummy": "deno task run:trusted ./scripts/add_dummy_data.ts", "events:processor": "deno task run:trusted events/processor.ts", "heroku": "deno task run:trusted ./scripts/heroku.ts", "docker": "./scripts/docker.sh", "local": "./scripts/local.sh", "prod": "./scripts/prod.sh", "compile": "DENO_TLS_CA_STORE=system deno compile -A --unsafely-ignore-certificate-errors --unstable --target x86_64-unknown-linux-gnu", "compile:chatbot": "deno task compile --output binaries/chatbot chatbot/chatbot.ts", "compile:web": "deno task compile --output binaries/web main.ts", "lock:reset": "./scripts/lock_reset.sh", "repl": "DENO_TLS_CA_STORE=system deno repl -A --unsafely-ignore-certificate-errors --unstable-temporal --env --eval-file=repl.ts", "run:trusted": "DENO_TLS_CA_STORE=system deno run -A --unstable-temporal --env --unsafely-ignore-certificate-errors", "switch:prod": "cp .env.prod .env", "switch:local": "cp .env.local .env", "switch:docker": "cp .env.docker .env", "test": "./scripts/test.sh", "test:chatbot": "./scripts/test_chatbot.sh", "test:one": "rm -f test_server.log && deno task db:migrate:check && DENO_TLS_CA_STORE=system IS_TEST=true deno test -A --unstable-temporal --env --unsafely-ignore-certificate-errors", "test:watch": "./scripts/watch_and_beep.sh FAILED deno task test --watch", "tmux": "./scripts/tmux.sh", "preview": "deno serve -A _fresh/server.js", "check": "deno fmt --check && deno lint && find . -name '*.ts' -o -name '*.tsx' | grep -v node_modules | xargs deno check", "check:ignoretest": "deno fmt --check && deno lint && find . -name '*.ts' -o -name '*.tsx' | grep -v node_modules | grep -v '.test.ts' | xargs deno check" }, "compilerOptions": { "jsx": "react-jsx", "jsxImportSource": "preact" }, "fmt": { "indentWidth": 2, "semiColons": false, "singleQuote": true, "proseWrap": "preserve", "include": ["**/*.ts", "**/*.tsx"] }, "lint": { "rules": { "include": ["no-unused-vars"], "tags": ["fresh", "recommended"] } }, "imports": { "@headlessui/react": "https://esm.sh/*@headlessui/react@1.7.17?alias=react:preact/compat,react-dom:preact/compat,client-only:preact/compat", "@preact/signals": "npm:@preact/signals@^2.3.2", "@std/cli": "jsr:@std/cli@^0.224.7", "@tailwindcss/forms": "npm:@tailwindcss/forms@0.5.7", "awesome-phonenumber": "npm:awesome-phonenumber@7.2.0", "cheerio": "https://esm.sh/cheerio@1.0.0", "client-only": "https://esm.sh/v135/client-only@0.0.1/", "csv": "https://deno.land/x/csv@v0.8.0/mod.ts", "fast-levenshtein": "npm:fast-levenshtein@3.0.0", "fast-xml-parser": "npm:fast-xml-parser@4.3.4", "kysely": "npm:kysely@0.28.8", "natural": "npm:natural@6.10.4", "pg": "npm:pg@8.16.0", "pg-cursor": "npm:pg-cursor@2.15.3", "preact": "npm:preact@^10.27.2", "preact/": "npm:/preact@^10.27.2/", "prompt": "jsr:@cliffy/prompt@1.0.0-rc.7", "react": "npm:/preact@^10.27.2/compat", "redis": "https://deno.land/x/redis@v0.25.5/mod.ts", "redlock": "https://deno.land/x/redlock@v1.0/mod.ts", "react-sparklines": "npm:react-sparklines@1.7.0", "spinners": "https://raw.githubusercontent.com/will-weiss/spinners/refs/heads/master/mod.ts", "std/": "https://deno.land/std@0.224.0/", "sql-formatter": "npm:sql-formatter@15.6.9", "tailwind-merge": "npm:tailwind-merge@^2.6.0", "zod": "npm:zod@3.23.8", "fresh": "jsr:@fresh/core@2.1.4", "@fresh/plugin-vite": "jsr:@fresh/plugin-vite@^1.0.7", "vite": "npm:vite@^7.1.3", "tailwindcss": "npm:tailwindcss@4.1.10", "tailwindcss/plugin": "npm:/tailwindcss@4.1.10/plugin.js", "@tailwindcss/vite": "npm:@tailwindcss/vite@^4.1.12" }, "exclude": ["**/_fresh/*"], "nodeModulesDir": "auto" }