Skip to content

Commit

Permalink
chore: don't include router yet
Browse files Browse the repository at this point in the history
  • Loading branch information
MKRhere committed Sep 30, 2022
1 parent 93847e9 commit a578f5b
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 13 deletions.
12 changes: 4 additions & 8 deletions build_npm.ts
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
2 changes: 1 addition & 1 deletion hyper/mod.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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";
6 changes: 2 additions & 4 deletions scripts/util/hypertyper.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// hypertyper ⚡️

import { EvenUnion, UnionToIntersection } from "./types.ts";
import { EvenUnion } from "./types.ts";

export const eol = "\n";

Expand Down Expand Up @@ -45,9 +45,7 @@ export function* concat<T>(...xs: Iterable<T>[]) {
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";
Expand Down

0 comments on commit a578f5b

Please sign in to comment.