feat: add Prisma Composer workflow - #53
Draft
AmanVarshney01 wants to merge 11 commits into
Draft
Conversation
Signed-off-by: Aman Varshney <amanvarshney.work@gmail.com>
|
Important Review skippedDraft detected. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Organization UI Review profile: ASSERTIVE Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
Comment |
Signed-off-by: Aman Varshney <amanvarshney.work@gmail.com>
PR preview published
|
Write emitted contract JSON and types to a generated directory so TypeScript does not resolve contract.d.ts to the adjacent contract.ts source file. Signed-off-by: Aman Varshney <amanvarshney.work@gmail.com>
Use the aligned RC2 package for init, authentication, and Composer commands so package-manager tag caches cannot resolve an older CLI without the ORM command. Signed-off-by: Aman Varshney <amanvarshney.work@gmail.com>
Keep SvelteKit on adapter-node while asking Vite to inline the application runtime packages required by the self-contained Composer build artifact. Signed-off-by: Aman Varshney <amanvarshney.work@gmail.com>
Use Vite noExternal for the full server dependency graph so the adapter-node build is self-contained for Composer. Signed-off-by: Aman Varshney <amanvarshney.work@gmail.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
create-prisma@nexttemplate and initialize ORM through the consolidated Prisma CLIDeploy to Prisma now?Stacking
This PR is stacked on #37 and targets its
aman/create-prisma-nextbranch. It does not modify #37 and should be rebased or retargeted after #37 lands.This intentionally focuses on
create-prisma@next. It does not add a Prisma 7 orcreate-prisma@latestcompatibility path.Verification
create-prisma@0.4.2-pr.53.190.1create-prisma@0.4.2-pr.53.191.1.prisma.buildURL was requested and required to execute a real database query before the deployment and database were destroyedEach
2/2covers PSL and TypeScript contract authoring. The SvelteKit row was rerun on preview191.1after the artifact fix: all 8 public CLI flows installed, built, deployed, reached the live URL, reproduced the same runtime failure, and destroyed cleanly.The generated SvelteKit artifacts are 5.7–5.9 MiB, contain no symlinks, and contain no bare Prisma/Composer/Arktype/dotenv/MongoDB imports. A final Platform audit found no remaining
pr53-*test Projects.Currently verified with
@prisma/cli8.0.0-rc.2, Prisma Next ORM 8.0.0-rc.1, Composer 0.6.0-dev.18, and Node 22.23.2.Current Composer/provider boundaries
ssr.noExternalwhile keeping the official adapter-node. Composer receives the explicit self-containedbuild/directory; there is no copiednode_modules, post-build bundler, or Composer special case.Symbol.for("nodejs.util.inspect.custom")to aURLreturns read-only. Latest SvelteKit 2.70.2 performs that operation inmake_trackable, so every SSR request returns 500. The identical build works on local Bun 1.3.14. Switching Composer to Alchemy's official Prisma resource provider alone does not fix this because it uploads to the same Compute runtime and exposes no Node/Bun runtime selector. This needs a Compute Bun fix or a supported Node runtime.No hoisting, symlink flattening, copied
node_modules, post-build bundler, or artifact-rewriting workaround is included.Other limitations
MONGODB_URL; no real Mongo URL was available for live deployment, so its 72 combinations are structurally tested only.alchemyexecutable. The templates retain that dependency and align Vite-based frameworks with Alchemy's Vite 8 peer contract.prisma-nextrc.1 currently advertises Node 24 even though the consolidated CLI and Composer support Node 22.18. This branch follows the agreed Node 22.18 minimum while prerelease package metadata is still moving.