Skip to content

Commit

Permalink
fix: move to jsr, remove old npm compat
Browse files Browse the repository at this point in the history
  • Loading branch information
ClaudiuCeia committed Aug 14, 2024
1 parent a0cdebe commit fc17ed7
Show file tree
Hide file tree
Showing 6 changed files with 40 additions and 76 deletions.
41 changes: 0 additions & 41 deletions .github/workflows/codeql.yml

This file was deleted.

29 changes: 0 additions & 29 deletions build.ts

This file was deleted.

5 changes: 4 additions & 1 deletion deno.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
{
"name": "@claudiu-ceia/combine",
"version": "0.1.0",
"exports": "./mod.ts"
"exports": "./mod.ts",
"imports": {
"@std/assert": "jsr:@std/assert@^1.0.2"
}
}
31 changes: 31 additions & 0 deletions deno.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions src/combinators.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { assert } from "https://deno.land/[email protected]/testing/asserts.ts";
import { failure, Parser, Result, success } from "./Parser.ts";
import { assert } from "@std/assert";
import { failure, type Parser, type Result, success } from "./Parser.ts";
import { map } from "./utility.ts";

/**
Expand Down Expand Up @@ -35,7 +35,7 @@ type ArrayUnion<T extends unknown[]> = T extends [infer Head, ...infer Tail]

type UnionParser<T extends unknown[]> = Parser<ArrayUnion<T>>;

// const foo: UnionParser<[string, number]> =
// const foo: UnionParser<[string, number]> =
/**
* Used for sequential combinators, such that:
*
Expand Down
4 changes: 2 additions & 2 deletions src/language.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// deno-lint-ignore-file no-explicit-any
import { Parser } from "./Parser.ts";
import type { Parser } from "./Parser.ts";
import { lazy } from "./utility.ts";

export type BoundDefinition<T extends UnboundDefinition<any>> = {
Expand All @@ -18,7 +18,7 @@ export const createLanguage = <
T extends BoundDefinition<any> = UntypedLanguage
>(
map: UnboundDefinition<T>
) => {
): BoundDefinition<UnboundDefinition<T>> => {
const LanguageDefinition = class LanguageDefinitionClass {
constructor() {
const bound: Partial<BoundDefinition<T>> = {};
Expand Down

0 comments on commit fc17ed7

Please sign in to comment.