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

feat: accept deno.json as an argument #136

Merged
merged 11 commits into from
Mar 5, 2024
Merged

feat: accept deno.json as an argument #136

merged 11 commits into from
Mar 5, 2024

Conversation

hasundue
Copy link
Owner

@hasundue hasundue commented Mar 5, 2024

  • chore(task): rename all task as pre-commit
  • test(cli): refactor test implementation
  • feat(mod)!: add cwd options to collect
  • feat(mod): accept deno.json as an argument
  • test(registries): add registry - in test names
  • feat(cli): accept deno.json as an argument
  • test: add jsr: imports in some test cases
  • chore(cli): do not print paths when unnecessary
  • docs(readme): update outputs of examples

hasundue added 9 commits March 4, 2024 22:47
BRAKING CHANGE: `findImportMap` option is abandoned. `collect` automatically
finds `deno.json` or `deno.jsonc` in the current working directory or its
parent directories.
`collect` now accepts JSON files including import maps, such as `deno.json` and `deno.jsonc`
as an argument.
Now Molt can update URLs in `deno.json` (import maps) directly, without reading actual code.
@hasundue hasundue linked an issue Mar 5, 2024 that may be closed by this pull request
@hasundue hasundue changed the title 131 accept deno json feat: accept deno.json as an argument Mar 5, 2024
Copy link

codecov bot commented Mar 5, 2024

Codecov Report

Attention: Patch coverage is 93.02326% with 6 lines in your changes are missing coverage. Please review.

Project coverage is 87.24%. Comparing base (3215249) to head (2082cf4).

Files Patch % Lines
lib/update.ts 90.62% 6 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #136      +/-   ##
==========================================
- Coverage   87.39%   87.24%   -0.15%     
==========================================
  Files          18       18              
  Lines         825      886      +61     
  Branches      125      136      +11     
==========================================
+ Hits          721      773      +52     
- Misses        104      113       +9     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@hasundue hasundue force-pushed the 131-accept-deno-json branch 2 times, most recently from 4d7d449 to 5edcc5f Compare March 5, 2024 05:04
@hasundue hasundue force-pushed the 131-accept-deno-json branch 2 times, most recently from cbc9347 to 2082cf4 Compare March 5, 2024 05:18
@hasundue hasundue merged commit fdaf957 into main Mar 5, 2024
7 checks passed
@hasundue hasundue deleted the 131-accept-deno-json branch March 5, 2024 05:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

Accept deno.json as an argument to update import maps directly
1 participant