mirror of
https://github.com/stack-auth/stack.git
synced 2026-06-04 21:04:37 +08:00
<!--
Make sure you've read the CONTRIBUTING.md guidelines:
https://github.com/stack-auth/stack-auth/blob/dev/CONTRIBUTING.md
-->
<!-- ELLIPSIS_HIDDEN -->
----
> [!IMPORTANT]
> Introduces an automated database migration system, replacing manual
Prisma commands with new scripts and updating workflows, configurations,
and tests accordingly.
>
> - **Auto-Migration System**:
> - Introduces `db-migrations.ts` script for handling database
migrations automatically.
> - Adds utility functions in `utils.tsx` for managing migration files.
> - Implements `applyMigrations` and `runMigrationNeeded` in `index.tsx`
for executing migrations.
> - **Workflow and Scripts**:
> - Updates GitHub workflows (`check-prisma-migrations.yaml`,
`e2e-api-tests.yaml`) to use new migration commands.
> - Replaces `prisma migrate` commands with `db:init`, `db:migrate`,
etc., in `package.json` and `README.md`.
> - **Testing**:
> - Adds `auto-migration.tests.ts` for testing migration logic and
concurrency handling.
> - **Configuration**:
> - Updates `.env.development` and `vitest.config.ts` for new
environment variables and paths.
> - Modifies `turbo.json` and `package.json` to include new migration
tasks and scripts.
>
> <sup>This description was created by </sup>[<img alt="Ellipsis"
src="https://img.shields.io/badge/Ellipsis-blue?color=175173">](https://www.ellipsis.dev?ref=stack-auth%2Fstack-auth&utm_source=github&utm_medium=referral)<sup>
for 2c24183879. You can
[customize](https://app.ellipsis.dev/stack-auth/settings/summaries) this
summary. It will automatically update as commits are pushed.</sup>
<!-- ELLIPSIS_HIDDEN -->
---------
Co-authored-by: Konsti Wohlwend <n2d4xc@gmail.com>
Co-authored-by: ellipsis-dev[bot] <65095814+ellipsis-dev[bot]@users.noreply.github.com>
123 lines
2.2 KiB
JSON
123 lines
2.2 KiB
JSON
{
|
|
"$schema": "https://turbo.build/schema.json",
|
|
"globalEnv": [
|
|
"STACK_*",
|
|
"NEXT_PUBLIC_*",
|
|
"NEXT_PUBLIC_SENTRY_*",
|
|
"SENTRY_*",
|
|
"VERCEL_GIT_COMMIT_SHA",
|
|
"NEXT_PUBLIC_POSTHOG_*",
|
|
"POSTHOG_*",
|
|
"NODE_ENV",
|
|
"QUETZAL_*",
|
|
"OTEL_*"
|
|
],
|
|
"tasks": {
|
|
"build": {
|
|
"inputs": [
|
|
"$TURBO_DEFAULT$",
|
|
".env",
|
|
".env.local",
|
|
".env.development",
|
|
".env.development.local",
|
|
".env.production",
|
|
".env.production.local"
|
|
],
|
|
"dependsOn": [
|
|
"^build"
|
|
],
|
|
"outputs": [
|
|
".next",
|
|
"dist/**",
|
|
"lib/**",
|
|
"*.js",
|
|
"*.d.ts",
|
|
"*.d.ts.map"
|
|
],
|
|
"outputLogs": "new-only"
|
|
},
|
|
"docker-build": {
|
|
"inputs": [
|
|
"$TURBO_DEFAULT$",
|
|
".env",
|
|
".env.local",
|
|
".env.development",
|
|
".env.development.local",
|
|
".env.production",
|
|
".env.production.local"
|
|
],
|
|
"dependsOn": [
|
|
"^build"
|
|
],
|
|
"outputs": [
|
|
".next",
|
|
"dist/**",
|
|
"lib/**",
|
|
"*.js",
|
|
"*.d.ts",
|
|
"*.d.ts.map"
|
|
],
|
|
"outputLogs": "new-only"
|
|
},
|
|
"@stackframe/mcp-server#build": {
|
|
"dependsOn": [
|
|
"@stackframe/stack-backend#build"
|
|
]
|
|
},
|
|
"@stackframe/stack-backend#build": {
|
|
"dependsOn": [
|
|
"codegen"
|
|
]
|
|
},
|
|
"@stackframe/stack-backend#codegen": {
|
|
"dependsOn": [
|
|
"^build"
|
|
]
|
|
},
|
|
"@stackframe/stack-backend#generate-openapi-fumadocs": {
|
|
"cache": false
|
|
},
|
|
"clean": {
|
|
"cache": false
|
|
},
|
|
"dev": {
|
|
"persistent": true,
|
|
"cache": false
|
|
},
|
|
"start": {
|
|
"persistent": true,
|
|
"cache": false
|
|
},
|
|
"lint": {
|
|
"dependsOn": []
|
|
},
|
|
"codegen": {
|
|
"cache": false
|
|
},
|
|
"typecheck": {
|
|
"dependsOn": []
|
|
},
|
|
"generate-openapi": {
|
|
"cache": false
|
|
},
|
|
"generate-keys": {
|
|
"cache": false
|
|
},
|
|
"db:migration-gen": {
|
|
"cache": false
|
|
},
|
|
"db:reset": {
|
|
"cache": false
|
|
},
|
|
"db:seed": {
|
|
"cache": false
|
|
},
|
|
"db:init": {
|
|
"cache": false
|
|
},
|
|
"db:migrate": {
|
|
"cache": false
|
|
}
|
|
}
|
|
}
|