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

Get Directus version directly via filesystem from directus package #18164

Merged
merged 3 commits into from Apr 17, 2023

Conversation

paescuj
Copy link
Member

@paescuj paescuj commented Apr 13, 2023

Fetch current Directus version directly (via filesystem, not export) from the package.json file of the directus package and expose it as a Vite constant to the app.

Gets rid of the current cyclic dependency setup:

 WARN  There are cyclic workspace dependencies: directus/directus/api, directus/directus/app, directus/directus/directus

@paescuj paescuj requested review from a team, br41nslug, nickrum, connorwinston and rijkvanzanten and removed request for a team April 13, 2023 11:42
@paescuj paescuj marked this pull request as draft April 13, 2023 12:01
@paescuj paescuj changed the title Get Directus version from env / git Get Directus version directly via filesystem from directus package Apr 15, 2023
@paescuj paescuj marked this pull request as ready for review April 15, 2023 20:08
Copy link
Member

@rijkvanzanten rijkvanzanten left a comment

Choose a reason for hiding this comment

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

Simple & effective, love it

Copy link
Member

@connorwinston connorwinston left a comment

Choose a reason for hiding this comment

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

LGTM!

@paescuj paescuj merged commit 73d5499 into main Apr 17, 2023
6 checks passed
@paescuj paescuj deleted the get-directus-version branch April 17, 2023 08:09
hanneskuettner pushed a commit to hanneskuettner/directus that referenced this pull request Apr 18, 2023
@rijkvanzanten rijkvanzanten added this to the Next Release milestone Apr 20, 2023
meditadvisors pushed a commit to ciso360ai/directus-mod that referenced this pull request May 13, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 1, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants