This commit is contained in:
Seth Trowbridge 2024-06-12 15:51:50 -04:00
parent 18edf05f93
commit 5b1646cf40
3 changed files with 3 additions and 3 deletions

View File

@ -1,5 +1,5 @@
{
"name": "@ttf/deploy-bundler",
"name": "@ttf/wasm-bundle",
"version": "0.1.0",
"exports": "./mod.ts",
"imports": {

2
mod.ts
View File

@ -31,7 +31,7 @@ const resolvePlugin:ESBuild.Plugin = {
await ESBuild.initialize({ worker: false });
export type ImportMap = Parameters<typeof Mapper.importmapPlugin>[0];
export type BuildOptions = ESBuild.BuildOptions;
export default async function(buildOptions={} as BuildOptions, importMap:ImportMap|false = false)
export default async function(buildOptions={} as BuildOptions, importMap:ImportMap|false = false):Promise<ESBuild.BuildResult<ESBuild.BuildOptions>>
{
if(importMap === false)
{

View File

@ -10,7 +10,7 @@ if(Deno.mainModule == import.meta.url)
}
type ServeArgs = {path?:string, html?:string, port?:string|number};
function serve(settings:ServeArgs)
function serve(settings:ServeArgs):void
{
let basePath = "";
const SetDirectory =(inPath:string)=>{