Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: how we import dependencies when importing Zoic #63

Merged
merged 3 commits into from
Jan 23, 2025

Conversation

unkn0wn-root
Copy link
Collaborator

Linked issue/ticket

Description

When users import our lib., Deno cannot resolve dependencies defined in deno.json since it lacks context about dependency sources so import {...} from oak will not be resolved by Deno.

This PR uses deps.ts instead of deno.json which acts as the single entry point for all external module imports.

Reproduction steps

Checklist

  • I've followed the Contributing guidelines
  • I've titled my PR according to the Conventional Commits spec
  • I've added tests that fail without this PR but pass with it
  • I've linted, tested, and commented my code
  • I've updated documentation (if appropriate)

deno.json will not work if we import zoic.ts directly so instead use deps.ts
where we define all external dependencies as exports
@unkn0wn-root unkn0wn-root self-assigned this Jan 23, 2025
@unkn0wn-root unkn0wn-root added the enhancement New feature or request label Jan 23, 2025
@hankthetank27 hankthetank27 merged commit 3c6ab75 into main Jan 23, 2025
2 checks passed
@hankthetank27 hankthetank27 deleted the export_deps branch January 23, 2025 18:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants