From 5b1646cf40f0b156d192ff57071e24cb53ca46a7 Mon Sep 17 00:00:00 2001 From: Seth Trowbridge Date: Wed, 12 Jun 2024 15:51:50 -0400 Subject: [PATCH] misc --- deno.json | 2 +- mod.ts | 2 +- serve.tsx | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/deno.json b/deno.json index 3ba0237..432c3c4 100644 --- a/deno.json +++ b/deno.json @@ -1,5 +1,5 @@ { - "name": "@ttf/deploy-bundler", + "name": "@ttf/wasm-bundle", "version": "0.1.0", "exports": "./mod.ts", "imports": { diff --git a/mod.ts b/mod.ts index 76e56a9..bd13d7c 100644 --- a/mod.ts +++ b/mod.ts @@ -31,7 +31,7 @@ const resolvePlugin:ESBuild.Plugin = { await ESBuild.initialize({ worker: false }); export type ImportMap = Parameters[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> { if(importMap === false) { diff --git a/serve.tsx b/serve.tsx index ee64a6f..b516f21 100644 --- a/serve.tsx +++ b/serve.tsx @@ -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)=>{