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

fix: Remove Feast UI TypeScript dependencies from peerDependencies and dependencies #4554

Merged

Conversation

peruukki
Copy link
Contributor

What this PR does / why we need it:

Two commits to clean up the Feast UI dependencies or peerDependencies:

  1. Move @types packages from dependencies to devDependencies and remove them from peerDependencies:
    • Type declaration files are only used during development and not included in the runtime code, so they should be in devDependencies. The DefinitelyTyped docs also include --save-dev in installation commands for this.
    • We also shouldn't require dependent projects to install them by including them in peerDependencies; the projects don't necessarily use TypeScript.
  2. Remove typescript from peerDependencies for similar reasons: it's only used during development and the dependent project is free to use whichever version of TypeScript or even not use it.

Which issue(s) this PR fixes:

This is related to #3785 and partially resolves it, but I wouldn't close the issue still with this. I think there are still other packages in peerDependencies that don't need to, but I wanted to improve the situation with the TypeScript related ones separately with this PR.

Type declaration files are only used during development and not included
in the runtime code, so they should be in devDependencies. We also
shouldn't require dependent projects to install them by including them in
peerDependencies.

Signed-off-by: Harri Lehtola <peruukki@hotmail.com>
TypeScript is a development dependency, so there is no need to require it
from dependent projects via peer dependencies.

Signed-off-by: Harri Lehtola <peruukki@hotmail.com>
@peruukki peruukki changed the title fix: Move Feast UI TypeScript dependencies to devDependencies and remove them from peerDependencies fix: Remove Feast UI TypeScript dependencies from peerDependencies and dependencies Sep 21, 2024
@shuchu
Copy link
Collaborator

shuchu commented Sep 22, 2024

probably you need the npm website access? https://www.npmjs.com/package/@feast-dev/feast-ui

@franciscojavierarceo franciscojavierarceo merged commit e781e16 into feast-dev:master Sep 22, 2024
22 checks passed
tmihalac pushed a commit to tmihalac/feast that referenced this pull request Sep 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants