Description
When deploying a Turborepo monorepo with Railpack, the turbo.json configuration file is not being copied into the build context during the install step, which causes the build step to fail with:
x Could not find turbo.json or turbo.jsonc.
Reproduction
- Create a Turborepo monorepo with a
turbo.json file
- Deploy to Railway using Railpack
- Railpack auto-generates a build plan
- The install step copies package.json files but NOT turbo.json
- The build step runs
npx turbo run build --filter=api but fails because turbo.json is missing
Expected Behavior
turbo.json should be automatically included in the build context when Railpack detects a Turborepo project (detects turbo.json in the repo).
Actual Behavior
The auto-generated build plan only copies dependency-related files (package.json, pnpm-lock.yaml, etc.) but skips project-level config files like turbo.json.
Workaround
Currently no workaround found. Attempting to add custom build steps to railpack.json but unclear how to include files in the intermediate layers.
Environment
- Railpack version: 0.16.0
- Node version: 22.22.0
- Package manager: pnpm 10.24.0
- Monorepo structure: 22 packages
Description
When deploying a Turborepo monorepo with Railpack, the
turbo.jsonconfiguration file is not being copied into the build context during the install step, which causes the build step to fail with:Reproduction
turbo.jsonfilenpx turbo run build --filter=apibut fails because turbo.json is missingExpected Behavior
turbo.jsonshould be automatically included in the build context when Railpack detects a Turborepo project (detectsturbo.jsonin the repo).Actual Behavior
The auto-generated build plan only copies dependency-related files (package.json, pnpm-lock.yaml, etc.) but skips project-level config files like
turbo.json.Workaround
Currently no workaround found. Attempting to add custom build steps to
railpack.jsonbut unclear how to include files in the intermediate layers.Environment