fix: make sure include paths are correct

This commit is contained in:
Andy Burke 2025-08-08 17:40:56 -07:00
parent 18b58ba94a
commit df8291bfc7
3 changed files with 3 additions and 3 deletions

View file

@ -1,7 +1,7 @@
{
"name": "@andyburke/serverus",
"description": "A flexible HTTP server for mixed content. Throw static files, markdown, Typescript and (hopefully, eventually) more into a directory and serverus can serve it up a bit more like old-school CGI.",
"version": "0.11.4",
"version": "0.11.5",
"license": "MIT",
"exports": {
".": "./serverus.ts",

View file

@ -4,7 +4,7 @@
*/
import * as path from '@std/path';
import { md_to_html } from '@andyburke/serverus/handlers/markdown';
import { md_to_html } from './markdown.ts';
// https://stackoverflow.com/a/75205316
const replaceAsync = async (str: string, regex: RegExp, asyncFn: (match: any, ...args: any) => Promise<any>) => {

View file

@ -8,7 +8,7 @@ import { walk } from '@std/fs';
import { delay } from '@std/async/delay';
import * as path from '@std/path';
import { getCookies } from '@std/http/cookie';
import { PRECHECK } from '@andyburke/serverus/server';
import { PRECHECK } from '../server.ts';
/** A `PRECHECK_TABLE` maps from HTTP methods to an array of `PRECHECK`s to be run. */
export type PRECHECKS_TABLE = Record<'GET' | 'POST' | 'PUT' | 'DELETE' | 'PATCH', PRECHECK[]>;