Local development
Prepare PDFium, build the native package, and validate the local development setup in this monorepo.
Use this page if you are working on @omsimos/pdf-raster itself inside the
monorepo. If you only want to install and use the package, start with
Installation.
Local development flow
Download or refresh the local PDFium cache:
bun run pdfium:downloadBuild the native package:
bun run --filter @omsimos/pdf-raster buildRun the package tests to validate the local native path:
bun run --filter @omsimos/pdf-raster testEnvironment notes
Prop
Type
Typical commands
bun run pdfium:download
bun run --filter @omsimos/pdf-raster build
bun run --filter @omsimos/pdf-raster test
If the native setup breaks
Make sure the package is built for the current platform.
Refresh the local PDFium cache with bun run pdfium:download.
Rebuild the package with bun run --filter @omsimos/pdf-raster build.
Run bun run --filter @omsimos/pdf-raster test to validate the native
path.