fix: make sure include paths are correct
This commit is contained in:
parent
18b58ba94a
commit
df8291bfc7
3 changed files with 3 additions and 3 deletions
|
@ -1,7 +1,7 @@
|
||||||
{
|
{
|
||||||
"name": "@andyburke/serverus",
|
"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.",
|
"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",
|
"license": "MIT",
|
||||||
"exports": {
|
"exports": {
|
||||||
".": "./serverus.ts",
|
".": "./serverus.ts",
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import * as path from '@std/path';
|
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
|
// https://stackoverflow.com/a/75205316
|
||||||
const replaceAsync = async (str: string, regex: RegExp, asyncFn: (match: any, ...args: any) => Promise<any>) => {
|
const replaceAsync = async (str: string, regex: RegExp, asyncFn: (match: any, ...args: any) => Promise<any>) => {
|
||||||
|
|
|
@ -8,7 +8,7 @@ import { walk } from '@std/fs';
|
||||||
import { delay } from '@std/async/delay';
|
import { delay } from '@std/async/delay';
|
||||||
import * as path from '@std/path';
|
import * as path from '@std/path';
|
||||||
import { getCookies } from '@std/http/cookie';
|
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. */
|
/** 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[]>;
|
export type PRECHECKS_TABLE = Record<'GET' | 'POST' | 'PUT' | 'DELETE' | 'PATCH', PRECHECK[]>;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue