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

Add support for deno.jsonc #229

Merged
merged 8 commits into from
Aug 8, 2022
Merged

Add support for deno.jsonc #229

merged 8 commits into from
Aug 8, 2022

Conversation

kidonng
Copy link
Contributor

@kidonng kidonng commented Aug 7, 2022

Resolve #211

See #209 (comment)

This is how it currently looks when calling lume import-map with deno.jsonc, not sure if this is the best approach:

image

ci.ts Show resolved Hide resolved
core/utils.ts Outdated Show resolved Hide resolved
@oscarotero
Copy link
Member

oscarotero commented Aug 7, 2022

Ok, the solution of showing the required changes but not apply them looks good.
I've let some comments

@kidonng kidonng marked this pull request as draft August 8, 2022 03:17
cli/upgrade.ts Show resolved Hide resolved
@kidonng kidonng marked this pull request as ready for review August 8, 2022 03:32

console.log(brightGreen("Deno configuration file saved:"), "deno.json");
if (await exists("deno.jsonc")) {
promptConfigUpdate({ importMap: config.importMap, tasks: config.tasks });
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It would be nice to show the deno.jsonc warning only if there's something to change. Most of the time, the upgrade or import-map commands only update the import_map.json file.

@oscarotero oscarotero merged commit e5349c3 into lumeland:master Aug 8, 2022
@oscarotero
Copy link
Member

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support deno.jsonc for Deno config file
2 participants