Skip to content

Commit

Permalink
Fix deps when used as a library
Browse files Browse the repository at this point in the history
  • Loading branch information
alexgleason authored and roonie007 committed Jul 10, 2023
1 parent 5805ebe commit 8a372d0
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 8 deletions.
4 changes: 0 additions & 4 deletions deno.jsonc
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,5 @@
"semiColons": true,
"singleQuote": true,
"useTabs": false
},
"imports": {
"$std/": "https://deno.land/[email protected]/",
"zod": "https://deno.land/x/[email protected]/mod.ts"
}
}
2 changes: 2 additions & 0 deletions deps.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
export { deepMerge } from 'https://deno.land/[email protected]/collections/deep_merge.ts';
export { z } from 'https://deno.land/x/[email protected]/mod.ts';
2 changes: 2 additions & 0 deletions deps_test.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
export { afterAll, beforeAll, describe, it } from 'https://deno.land/[email protected]/testing/bdd.ts';
export { assertEquals, assertExists } from 'https://deno.land/[email protected]/testing/asserts.ts';
3 changes: 1 addition & 2 deletions src/schema.test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { afterAll, beforeAll, describe, it } from '$std/testing/bdd.ts';
import { assertEquals, assertExists } from '$std/testing/asserts.ts';
import { assertEquals, assertExists, afterAll, beforeAll, describe, it } from '../deps_test.ts';
import { d, Dongoose } from '../mod.ts';

const schema = {
Expand Down
3 changes: 1 addition & 2 deletions src/schema.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { deepMerge } from '$std/collections/deep_merge.ts';
import { z } from 'zod';
import { deepMerge, z } from '../deps.ts';

// Define the options for the Dongoose function
interface DongooseOptions<T> {
Expand Down

0 comments on commit 8a372d0

Please sign in to comment.