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

Move PackageJson to AppSpec #2506

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

Move PackageJson to AppSpec #2506

wants to merge 3 commits into from

Conversation

sodic
Copy link
Contributor

@sodic sodic commented Feb 12, 2025

I had this on my refactoring list. PackageJson is a part of the AppSpec but was in ExternalConfig, which means AppSpec depended on ExternalConfig.

I've reversed that, and now AppSpec is the proper source of truth.

If we went full enterprise, we'd have two different types and a validator: one for the AppSpec, one for the Parser, and a validator that maps one into the other. But I thought that was too much at this point.

Comment on lines +81 to +83
kebabToCamelCase kebabCaseStr = case wordsBy (== '-') kebabCaseStr of
[] -> ""
(firstWord : otherWords) -> concat $ firstWord : map toUpperFirst otherWords
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Has nothing to do with the PR, but I couldn't resist.

@sodic sodic self-assigned this Feb 18, 2025
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.

2 participants