mirror of
https://github.com/penpot/penpot.git
synced 2026-10-03 09:16:15 +00:00
Bump the devenv and image Dockerfiles to pnpm 12.6.0 (latest stable; 12.8.0 is still on the next tag) with fresh SHA256 pins, and opencode to 1.18.33 plus opencode2 to 2.0.18 with fresh checksums. Stamp all 35 package.json files via scripts/sync-pnpm-version and refresh the 11 lockfiles; diffs are metadata-only, with no dependency re-resolution. Drop the last corepack calls from the media-processor build script and its generated image setup: pnpm now ships as a system binary and self-heals version drift. AI-assisted-by: muse-spark-1.3-contributor
Penpot plugin-types
The @penpot/plugin-types package provides TypeScript type definitions for the Penpot Plugin API, making it easier to develop plugins for the Penpot design platform with full type safety and IDE support. It streamlines the development process by ensuring that your code is well-typed and less prone to errors.
Getting started
Installation
To add penpot's plugin-types to your project, use the following command:
npm install @penpot/plugin-types
Configuration
To ensure the typings work correctly in your project, update your tsconfig.json as follows:
"typeRoots": [
"./node_modules/@types",
"./node_modules/@penpot"
],
"types": ["plugin-types"],
Learn more
For more information on how to build plugins using the Penpot PLugin API, refer to the official documentation. You can also explore practical examples in the samples repository to see real-world implementations.