Skip to content

Conversation

@FelipeTrost
Copy link
Contributor

@FelipeTrost FelipeTrost commented Sep 13, 2024

Summary

Added a build step that adds types for the modules in the engine with yarn build-engine-types.
The modules in the monorepo are treated as npm packages, and the typescript language server doesn't perform inference on them, so this build step allows typescript to infer types for the modules the best it can.
In the future, we could also entirely build the packages that use typescript if it's needed with not much effort.

Note

You have to run yarn build before running yarn build-engine-types this dependency can be fixed, and I plan to do it in the future.

Details

Every module has a tsconfig.json that specifies where the types should go, all the tsconfig.json inside the src/engine folder extend the tsconfig.json in the root folder of the repo.
In order to cache builds I used turbo, which also can generate a dependency graph with yarn turbo run build --graph=graph.pdf

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@FelipeTrost FelipeTrost marked this pull request as draft September 13, 2024 20:37
@github-actions

This comment has been minimized.

@FelipeTrost FelipeTrost marked this pull request as ready for review September 14, 2024 10:57
@github-actions

This comment has been minimized.

@OhKai
Copy link
Contributor

OhKai commented Sep 20, 2024

As discussed on Monday, I think it would be good if we could automate this with a post-install and post-merge hook combo.

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@github-actions
Copy link

CLOUDRUN ACTIONS

✅ Successfully created Preview Deployment.

https://pr-381---ms-server-staging-c4f6qdpj7q-ew.a.run.app

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.

3 participants