Skip to content

Conversation

@liam-lloyd
Copy link
Member

This repo contains database migrations, and when it is deployed the first thing it does is attempt to run them. However, we recently changed the build script for this repo to use tsc instead of babel. Unlike babel, tsc ignores non-typescript files in its source folder and doesn't copy them to the output directory. This caused the migrations to not be present when we deployed this service, which caused it to fail to start. This commit add tscp to the build script to copy non-typescript files into the build output (we use the same tool in stela to handle SQL scripts).

This repo contains database migrations, and when it is deployed the
first thing it does is attempt to run them. However, we recently changed
the build script for this repo to use tsc instead of babel. Unlike
babel, tsc ignores non-typescript files in its source folder and doesn't
copy them to the output directory. This caused the migrations to not be
present when we deployed this service, which caused it to fail to start.
This commit add tscp to the build script to copy non-typescript files
into the build output (we use the same tool in stela to handle SQL
scripts).
@liam-lloyd liam-lloyd force-pushed the fix_builds_to_include_migrations branch from 726466b to 6fc4619 Compare January 7, 2026 22:29
Copy link
Member

@cecilia-donnelly cecilia-donnelly left a comment

Choose a reason for hiding this comment

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

LGTM. Thanks @liam-lloyd !

@liam-lloyd liam-lloyd merged commit 381d459 into main Jan 9, 2026
6 checks passed
@liam-lloyd liam-lloyd deleted the fix_builds_to_include_migrations branch January 9, 2026 19:36
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