Skip to content

build: migrate package management to pnpm and harden installs#346

Open
tharropoulos wants to merge 6 commits into
typesense:masterfrom
tharropoulos:security
Open

build: migrate package management to pnpm and harden installs#346
tharropoulos wants to merge 6 commits into
typesense:masterfrom
tharropoulos:security

Conversation

@tharropoulos
Copy link
Copy Markdown
Collaborator

Change Summary

  • switch the repo from npm to pnpm for local development and ci
  • add pnpm-lock.yaml, remove package-lock.json, and declare pnpm as the
    package manager
  • update package scripts and developer workflows to use pnpm
  • update github actions to install dependencies with pnpm install --frozen-lockfile and run build, lint, typecheck, and test with pnpm
  • use .nvmrc in ci and bump the node version from 22 to 24
  • update the readme examples and development instructions to use pnpm
  • remove dangling and unused dependencies from package.json
  • add pnpm-workspace.yaml safeguards as a security change to reduce supply chain risk
  • avoid issues from compromised packages and unexpected preinstall / postinstall scripts during dependency installation

PR Checklist

@tharropoulos tharropoulos requested a review from jasonbosco May 12, 2026 16:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant