Add `@prisma/prisma-fmt-wasm` to CLI and output dependency version in `-v`, use instead of Formatter Engine binary
See original GitHub issue@prisma/prisma-fmt-wasm exists and can replace the Formatter Engine binary usage in Prisma CLI already.
- Add
@prisma/prisma-fmt-wasm
as dependency (requires CI changes) - Output dependency package version in
-v
output of Prisma CLI - Replace the
format
(and others) call of the Formatter Engine binary with a call to the Wasm module (in a separate PR) - Test CLI Engine Crash Reporting along the way to make sure it also works properly with the Wasm module
- Profit 🚢
Issue Analytics
- State:
- Created a year ago
- Comments:11 (9 by maintainers)
Top Results From Across the Web
Prisma 4.3.0 Release - GitClear
feat(cli): add @prisma/prisma-fmt-wasm to version command (#14760) ... dependency version in -v , use instead of Formatter Engine binary ...
Read more >Prisma CLI Command Reference
The version command outputs information about your current prisma version, platform, and engine binaries. Options. The version command recognizes the following ...
Read more >Command-Line Reference | Bazel
Use tuples instead of lists in depset elements. ... How to resolve aspect dependencies when the output format is one of {xml,proto,record}.
Read more >@prisma/engines: Versions | Openbase
... Add @prisma/prisma-fmt-wasm to CLI and output dependency version in -v , use instead of Formatter Engine binary · Add jest snapshots for...
Read more >Add a formatter - Pants build
If you are instead writing your own formatting logic inline, you can skip Step 1. In Step 4, you will not need to...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@jkomyno Hi 👋 . Thanks for the follow-up! I’ll open an issue (it was on my today’s TODO, after my yesterday post on https://github.com/prisma/prisma/discussions/15859) and/or post on #15881. Expect some news in the next 6 hours.
Very quickly (those elements – and others – will be in the issue):
It’s a standalone project; I suspect that the azure deployment could “do things” to the node_modules folder; I still can’t completely rule out a problem on our own workflow. Reproductibility won’t be easy (as it will need an Azure account/subscription), but I’ll try.
We have the same kind of error as @jkomyno posted, when trying to run
prisma migrate deploy
on our target server.node: 16.14.2 prisma: 4.4.0 env: Azure AppService (“classic” zip deploy)
In
node_modules/@prisma/engines
we have the correct engines (prisma-fmt-debian-openssl-1.1.x
in our case), but it keep searching for a wasm module, at the wrong place (node_modules/.bin/prisma_fmt_build_bg.wasm
).Everything works fine in a local development context.