Skip to content

chore: migrate from npm to pnpm#120

Merged
henchaves merged 4 commits into
mainfrom
chore/migrate-to-pnpm
May 28, 2026
Merged

chore: migrate from npm to pnpm#120
henchaves merged 4 commits into
mainfrom
chore/migrate-to-pnpm

Conversation

@henchaves
Copy link
Copy Markdown
Member

No description provided.

Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request migrates the project's package manager from npm to pnpm, updating the pre-commit configuration, Makefile, README, package.json, Renovate configuration, and contributing guidelines. The review feedback suggests removing package-lock.json from the pre-commit exclusion list (as it should be deleted from the repository), using the more idiomatic pnpm format instead of pnpm run format in package.json, and updating the README to match this command style for consistency.

Comment thread .pre-commit-config.yaml
Comment on lines +34 to +36
version\.json$|
pnpm-lock\.yaml$|
package-lock\.json$
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

Since this PR migrates the project from npm to pnpm, package-lock.json should be removed from the repository. Therefore, there is no need to add package-lock.json to the pre-commit exclusion list. We should only exclude pnpm-lock.yaml.

            version\\.json$|\n            pnpm-lock\\.yaml$

Comment thread package.json
"dev": "node scripts/convert-notebooks.mjs && astro dev",
"start": "astro dev",
"build": "npm run format && node scripts/convert-notebooks.mjs && astro build && node scripts/generate-redirects.mjs",
"build": "pnpm run format && node scripts/convert-notebooks.mjs && astro build && node scripts/generate-redirects.mjs",
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

For consistency and idiomatic pnpm usage, we can run the format script directly using pnpm format instead of pnpm run format.

Suggested change
"build": "pnpm run format && node scripts/convert-notebooks.mjs && astro build && node scripts/generate-redirects.mjs",
"build": "pnpm format && node scripts/convert-notebooks.mjs && astro build && node scripts/generate-redirects.mjs",

Comment thread README.md
- Node.js 18+
- Python 3 + `black` (optional — only needed for `npm run format`)
- [pnpm](https://pnpm.io/) (auto-managed via the `packageManager` field in `package.json`; enable with `corepack enable`)
- Python 3 + `black` (optional, only needed for `pnpm run format`)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

Update the reference to pnpm run format to pnpm format to match the command listed in the table below.

@cloudflare-workers-and-pages
Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Preview URL Updated (UTC)
✅ Deployment successful!
View logs
giskard-docs 9e0b0b1 Commit Preview URL

Branch Preview URL
May 28 2026, 03:07 PM

@henchaves henchaves merged commit 42ae87e into main May 28, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant