Skip to content

Commit

Permalink
feat: use jsr and node packages
Browse files Browse the repository at this point in the history
  • Loading branch information
kodemon committed Jul 25, 2024
1 parent e5037a0 commit 36873ae
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 7 deletions.
5 changes: 3 additions & 2 deletions deno.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,14 @@
"./json-rpc": "./json-rpc.ts"
},
"imports": {
"@std/assert": "jsr:@std/assert@^1.0.0",
"@std/testing": "jsr:@std/testing@^0.225.3",
"@valkyr/json-rpc": "jsr:@valkyr/[email protected]",
"case/": "https://deno.land/x/case@2.2.0/",
"change-case": "npm:change-case@5.4.4",
"dot-prop": "npm:[email protected]",
"prettier": "npm:[email protected]",
"zod": "npm:[email protected]",
"zod-to-ts": "npm:[email protected]",
"std/": "https://deno.land/[email protected]/",
"~libraries/": "./libraries/",
"~utilities/": "./utilities/"
},
Expand Down
23 changes: 23 additions & 0 deletions deno.lock

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

3 changes: 1 addition & 2 deletions printer/methods.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import camelCase from "case/camelCase.ts";
import pascalCase from "case/pascalCase.ts";
import { camelCase, pascalCase } from "change-case";
import { ZodObject, type ZodTypeAny } from "zod";

import type { Method } from "../libraries/method.ts";
Expand Down
2 changes: 1 addition & 1 deletion printer/types.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import pascalCase from "case/pascalCase.ts";
import { pascalCase } from "change-case";
import { printNode, zodToTs } from "zod-to-ts";

import type { Method } from "~libraries/method.ts";
Expand Down
4 changes: 2 additions & 2 deletions tests/api.test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { assertEquals, assertRejects } from "std/assert/mod.ts";
import { it } from "std/testing/bdd.ts";
import { assertEquals, assertRejects } from "@std/assert";
import { it } from "@std/testing/bdd";

import { BadRequestError } from "../mod.ts";
import { api } from "./mocks/client.ts";
Expand Down

0 comments on commit 36873ae

Please sign in to comment.