deploy and dev stop at the first config problem because loadAppConfigDiagnostics has no callers

Open
#315 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
76/100
Issue type
Refactor
Clarity
Clearly specified
Activity status
Active
Tech stack
typescript
Domain
cli, tooling

Research direction

Start with packages/0-framework/3-tooling/cli/src/load-config.ts and pipeline.ts, then trace how deploy and dev reach the loader through runPipeline. Confirm the diagnostics loader's behavior and identify existing tests for config loading or pipeline execution. Done means the pipeline uses loadAppConfigDiagnostics, the unused throwing loader and obsolete comment are removed, and deploy and dev report all config problems together.

Written by the indexing model from the issue text.

Description

loadAppConfigDiagnostics in packages/0-framework/3-tooling/cli/src/load-config.ts returns every config problem as diagnostics instead of throwing on the first. Nothing calls it: pipeline.ts uses the throwing loadAppConfig, and both deploy and dev reach it through runPipeline. So users fix config errors one at a time. The comment in load-config.ts says the throwing loader stays for the clipanion CLI, but clipanion is gone. Switch the pipeline to the diagnostics loader and delete the throwing one.

Recorded in the prisma-cli-v8 project ledger, which is being deleted at project close-out: https://github.com/prisma/prisma-cli/blob/4356b361adf7044bae59aa0bc70340eda89fdad6/.drive/projects/prisma-cli-v8/deferred.md#L71

🤖 Generated with Claude Code

Dominant language
TypeScript
Stars
6
Forks
2
Avg merge
1d 2h
Merged PRs (30d)
33

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from prisma/composer

All issues in prisma/composer

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.