Skip to content

Commit

Permalink
delete importMap
Browse files Browse the repository at this point in the history
  • Loading branch information
gnlow committed Sep 17, 2023
1 parent a9cdf42 commit 3b60ed9
Show file tree
Hide file tree
Showing 13 changed files with 24 additions and 20 deletions.
5 changes: 0 additions & 5 deletions deno.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
{
"tasks": {
"build_npm": "deno run -A scripts/build_npm.ts"
},
"imports": {
"ts-pattern": "npm:[email protected]",
"iteruyo": "https://deno.land/x/[email protected]/mod.ts",
"std/assert": "https://deno.land/[email protected]/assert/mod.ts"
}
}
9 changes: 9 additions & 0 deletions deps.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
export {
match,
P,
} from "npm:[email protected]"
export { $ as Iter } from "https://deno.land/x/[email protected]/mod.ts"
export {
assertEquals,
assertNotEquals,
} from "https://deno.land/[email protected]/assert/mod.ts"
6 changes: 3 additions & 3 deletions src/expand.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import { Expr } from "./Expr.ts"
import { call, expandable } from "./func/mod.ts"

import { match, P } from "ts-pattern"
import { $ as Iter } from "iteruyo"
import { match, P } from "../deps.ts"
import { Iter } from "../deps.ts"
import { $, $a, $b, f } from "./util/mod.ts"
export * from "iteruyo"
export * from "../deps.ts"

class LazyArray<T> {
memory: T[] = []
Expand Down
2 changes: 1 addition & 1 deletion src/func/and.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Expr, any } from "../Expr.ts"

import { match } from "ts-pattern"
import { match } from "../../deps.ts"
import { $_ } from "../util/mod.ts"

export const and = (a: Expr, b: Expr): Expr =>
Expand Down
4 changes: 2 additions & 2 deletions src/func/call.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ import {
div,
} from "./math.ts"

import { match, P } from "ts-pattern"
import { f, $, $_, $a, $b } from "../util/mod.ts"
import { match, P } from "../../deps.ts"
import { $, $_, $a, $b } from "../util/mod.ts"

export const call = (query: Expr, expr: Expr): Expr => {
return match([query, expr])
Expand Down
2 changes: 1 addition & 1 deletion src/func/join.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Expr } from "../Expr.ts"

import { match } from "ts-pattern"
import { match } from "../../deps.ts"
import { f, str$a, str$b } from "../util/mod.ts"

export const join = (a: Expr, b: Expr): Expr =>
Expand Down
2 changes: 1 addition & 1 deletion src/func/math.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Expr } from "../Expr.ts"

import { match } from "ts-pattern"
import { match } from "../../deps.ts"
import { num$a, num$b } from "../util/mod.ts"

const math =
Expand Down
2 changes: 1 addition & 1 deletion src/func/or.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Expr, any } from "../Expr.ts"

import { match } from "ts-pattern"
import { match } from "../../deps.ts"
import { $_ } from "../util/mod.ts"

export const or = (a: Expr, b: Expr): Expr =>
Expand Down
2 changes: 1 addition & 1 deletion src/run.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Expr } from "./Expr.ts"
import { and, call } from "./func/mod.ts"

import { match, P } from "ts-pattern"
import { match, P } from "../deps.ts"
import { $, $a, $b } from "./util/mod.ts"

export const run = (expr: Expr): Expr => {
Expand Down
2 changes: 1 addition & 1 deletion src/util/select.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { P } from "ts-pattern"
import { P } from "../../deps.ts"

export const $ = P.select
export const $_ = $()
Expand Down
2 changes: 1 addition & 1 deletion test/arrow.test.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import {
assertEquals,
assertNotEquals,
} from "std/assert"
} from "../deps.ts"

import { call, any } from "../src/mod.ts"
import { f } from "../src/util/mod.ts"
Expand Down
2 changes: 1 addition & 1 deletion test/call.test.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import {
assertEquals,
assertNotEquals,
} from "std/assert"
} from "../deps.ts"

import { call, any } from "../src/mod.ts"
import { f } from "../src/util/mod.ts"
Expand Down
4 changes: 2 additions & 2 deletions test/expand.test.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { assertEquals } from "std/assert"
import { assertEquals } from "../deps.ts"

import { Expr, expand, $ as Iter, any } from "../src/mod.ts"
import { Expr, expand, Iter, any } from "../src/mod.ts"
import { f } from "../src/util/mod.ts"

Deno.test("Expand - Literal", () => {
Expand Down

0 comments on commit 3b60ed9

Please sign in to comment.