From a578f5bf6a2b423445fcae4fe7e0047c07f71bba Mon Sep 17 00:00:00 2001 From: Muthu Kumar Date: Fri, 30 Sep 2022 17:35:08 +0530 Subject: [PATCH] chore: don't include router yet --- build_npm.ts | 12 ++++-------- hyper/mod.ts | 2 +- scripts/util/hypertyper.ts | 6 ++---- 3 files changed, 7 insertions(+), 13 deletions(-) diff --git a/build_npm.ts b/build_npm.ts index 8d90a13..54acb22 100644 --- a/build_npm.ts +++ b/build_npm.ts @@ -1,15 +1,11 @@ -import { build } from "https://deno.land/x/dnt/mod.ts"; +import { build } from "https://deno.land/x/dnt@0.30.0/mod.ts"; import { version } from "./version.ts"; await build({ entryPoints: ["./mod.ts"], - outDir: "./npm", - shims: { - deno: true, - }, - compilerOptions: { - target: "ES2015", - }, + outDir: "./npm/hyper", + shims: { deno: "dev" }, + compilerOptions: { target: "ES2019" }, package: { // package.json properties name: "@hyperactive/hyper", diff --git a/hyper/mod.ts b/hyper/mod.ts index 250c6b7..72723cd 100644 --- a/hyper/mod.ts +++ b/hyper/mod.ts @@ -7,4 +7,4 @@ export * from "./render/html.ts"; export * from "./render/dom.ts"; export * from "./domutils.ts"; export * from "./history.ts"; -export * from "./router.ts"; +// export * from "./router.ts"; diff --git a/scripts/util/hypertyper.ts b/scripts/util/hypertyper.ts index a2d2117..02d132f 100644 --- a/scripts/util/hypertyper.ts +++ b/scripts/util/hypertyper.ts @@ -1,6 +1,6 @@ // hypertyper ⚡️ -import { EvenUnion, UnionToIntersection } from "./types.ts"; +import { EvenUnion } from "./types.ts"; export const eol = "\n"; @@ -45,9 +45,7 @@ export function* concat(...xs: Iterable[]) { for (const x of xs) yield* x; } -type ImportSpec = EvenUnion< - UnionToIntersection<{ imports: (string | [string, string])[] } | { default: string } | { all: string }> ->; +type ImportSpec = EvenUnion<{ imports: (string | [string, string])[] } & { default: string } & { all: string }>; function* _imports(path: string, { imports, default: def, all }: ImportSpec) { yield "import";