misc
This commit is contained in:
parent
18edf05f93
commit
5b1646cf40
@ -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
2
mod.ts
@ -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)
|
||||||
{
|
{
|
||||||
|
@ -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)=>{
|
||||||
|
Loading…
Reference in New Issue
Block a user