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

Update Angular workspace types and add update script #866

Merged
merged 3 commits into from
Dec 2, 2024

Conversation

davidlj95
Copy link
Contributor

Seems Angular CLI workspace file angular.json types has been updated with some additions around. This adds the new types using the same json-schema-to-typescript approach.

Adds a small shell script to help updating that file in the future. Let me know if JS is preffered. I'm more used to writing shell scripts, but can give try writing one using Node.js / bun's compatible child_process.exec

@webpro
Copy link
Collaborator

webpro commented Dec 2, 2024

Fantastic! Tried the Bash script, flawless. We could rewrite to TS, but personally I really don't mind Bash. LFG.

Copy link

pkg-pr-new bot commented Dec 2, 2024

Open in Stackblitz

npm i https://pkg.pr.new/knip@866

commit: b85b5de

Copy link
Collaborator

@webpro webpro left a comment

Choose a reason for hiding this comment

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

Noticed Knip itself complains about unused exports 😜 so added suggestions how we could deal with it, other ideas also welcome of course

packages/knip/src/plugins/angular/update-types.sh Outdated Show resolved Hide resolved
packages/knip/src/plugins/angular/update-types.sh Outdated Show resolved Hide resolved
@webpro
Copy link
Collaborator

webpro commented Dec 2, 2024

Thanks a lot David, very grateful for this 🙏

@webpro webpro merged commit 9074440 into webpro-nl:main Dec 2, 2024
23 checks passed
@davidlj95 davidlj95 deleted the update-angular-workspace-types branch December 2, 2024 09:52
@webpro
Copy link
Collaborator

webpro commented Dec 2, 2024

🚀 This pull request is included in v5.38.4. See Release 5.38.4 for release notes.

Using Knip in a commercial project? Please consider becoming a sponsor.

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