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", "version": "0.1.0",
"exports": "./mod.ts", "exports": "./mod.ts",
"imports": { "imports": {

2
mod.ts
View File

@ -31,7 +31,7 @@ const resolvePlugin:ESBuild.Plugin = {
await ESBuild.initialize({ worker: false }); await ESBuild.initialize({ worker: false });
export type ImportMap = Parameters<typeof Mapper.importmapPlugin>[0]; export type ImportMap = Parameters<typeof Mapper.importmapPlugin>[0];
export type BuildOptions = ESBuild.BuildOptions; 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) if(importMap === false)
{ {

View File

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