JSPM

@prisma/prisma-fmt-wasm

4.16.0-56.489dea78e5d64611960acfde15ac92fee3f21c41
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 786845
  • Score
    100M100P100Q217168F
  • License Apache-2.0

The WASM package for prisma-fmt

Package Exports

  • @prisma/prisma-fmt-wasm
  • @prisma/prisma-fmt-wasm/src/prisma_fmt_build.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@prisma/prisma-fmt-wasm) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

@prisma/prisma-fmt-wasm

Publish pipeline npm package install size

This directory only contains build logic to package the prisma-fmt engine into a Node package as a WASM module. All the functionality is implemented in other parts of prisma-engines.

The published NPM package is internal to Prisma. Its API will break without prior warning.

Example

node -e "const prismaFmt = require('@prisma/prisma-fmt-wasm'); console.log(prismaFmt.version())"

Components

Local Dev with Language-Tools

When implementing features for language-tools in prisma-engines, to sync with your local dev environment for the language-server, one can do the following:

On first setup

# Install the latest Rust version with `rustup`
# or update the latest Rust version with `rustup`
rustup update
rustup target add wasm32-unknown-unknown
cargo update -p wasm-bindgen
# Check the version defined in `prisma-fmt-wasm/cargo.toml` for `wasm-bindgen` and replace `version` below:
cargo install -f wasm-bindgen-cli@version

On Changes

./prisma-fmt-wasm/scripts/update-fmt-wasm.sh

This script has the following expectations:

  • language-tools is in the same dir as prisma-engines
    • i.e. dir/{prisma-engines,language-tools}
  • it's run in the prisma-engines root folder