🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

@prisma-next/psl-printer

Package Overview
Dependencies
Maintainers
4
Versions
526
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@prisma-next/psl-printer

PSL printer: deterministic Prisma Schema Language (.prisma) output from a PslDocumentAst

Source
npmnpm
Version
0.14.0-dev.86
Version published
Weekly downloads
21K
17.38%
Maintainers
4
Weekly downloads
 
Created
Source

@prisma-next/psl-printer

Internal package. This package is an implementation detail of prisma-next and is published only to support its runtime. Its API is unstable and may change without notice. Do not depend on this package directly; install prisma-next instead.

Prints Prisma Schema Language (PSL) from PslDocumentAst (@prisma-next/framework-components/psl-ast).

Overview

@prisma-next/psl-printer renders deterministic PSL text from a PslDocumentAst (defined in @prisma-next/framework-components/psl-ast). The package is target-agnostic: SQL → AST construction lives in the SQL family (@prisma-next/family-sql's inferPslContract capability).

Responsibilities

  • Convert structured AST (model, field, enum, types) into valid PSL output.
  • Preserve @map / @@map and relation attributes from AST nodes.
  • Generate deterministic output so snapshot-based tests remain stable.

Dependencies

  • Depends on
    • @prisma-next/framework-components
  • Used by
    • @prisma-next/cli (consumes printPsl(ast) after the SQL family produces the AST)
    • @prisma-next/family-sql (tests; consumes the printer to verify AST construction)
  • docs/Architecture Overview.md
  • docs/architecture docs/subsystems/2. Contract Emitter & Types.md

FAQs

Package last updated on 15 Jul 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts