-
Notifications
You must be signed in to change notification settings - Fork 0
feat: pnpm migration #520
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
feat: pnpm migration #520
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
061ec90
feat: migrating to pnpm
dejanvasic85 18e01f2
installing missing package on pnpm
dejanvasic85 46f0786
fix: adding eslint import rule to prevent using uninstalled packages
dejanvasic85 0d92658
lock file
dejanvasic85 07b5f19
fix: pushing more package adds
dejanvasic85 4f3e959
fix: ignoring lock file
dejanvasic85 2975ab6
PR feedback
dejanvasic85 138347e
fix: updating back to the new versions of actions and removing versions
dejanvasic85 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -26,9 +26,9 @@ | |||||
|
|
||||||
| ## Tooling | ||||||
|
|
||||||
| - **Next.js 16**: React framework for production-grade applications | ||||||
| - **Next.js**: React framework for production-grade applications | ||||||
| - **Sanity CMS**: Headless CMS for flexible content management | ||||||
| - **Tailwind CSS V4**: Utility-first CSS framework | ||||||
| - **Tailwind CSS**: Utility-first CSS framework | ||||||
| - **DaisyUI**: Tailwind CSS component library | ||||||
| - **TypeScript**: Type-safe development | ||||||
| - **Zod**: Schema validation for environment variables | ||||||
|
|
@@ -47,15 +47,22 @@ To run the site locally, follow these steps: | |||||
|
|
||||||
| ### Prerequisites | ||||||
|
|
||||||
| - Node.js 24 installed | ||||||
| - Node.js installed (managed by Mise) | ||||||
|
||||||
| - Node.js installed (managed by Mise) | |
| - Node.js 24.12.0 installed (managed by Mise) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,48 @@ | ||
| # Migrate repo to pnpm | ||
|
|
||
| **Created:** 2026-04-28 | ||
| **Status:** In Progress | ||
|
|
||
| ## Purpose | ||
|
|
||
| Standardize project package manager on pnpm. Keep local docs and GitHub workflows aligned to prevent drift and CI failures. | ||
|
|
||
| ## Requirements | ||
|
|
||
| - Use pnpm as canonical package manager for local and CI workflows | ||
| - Remove npm lockfile and commit pnpm lockfile | ||
| - Update script references in active docs and workflow docs | ||
| - Update GitHub Actions install and command steps to pnpm | ||
|
|
||
| ## Todo | ||
|
|
||
| - [x] Generate `pnpm-lock.yaml` from current dependency graph | ||
| - [x] Add `packageManager` in `package.json` | ||
| - [x] Update build script chaining in `package.json` to pnpm | ||
| - [x] Configure `pnpm.onlyBuiltDependencies` for known postinstall/build-script deps | ||
| - [x] Remove `package-lock.json` | ||
| - [x] Migrate `.github/workflows/ci.yml` to pnpm install/exec/run commands | ||
| - [x] Migrate `.github/workflows/crawl.yml` to pnpm install/exec/run commands and lockfile cache key | ||
| - [x] Migrate `.github/workflows/deploy-sanity.yml` to pnpm install/run commands | ||
| - [x] Update command docs in `README.md` | ||
| - [x] Update command docs in `AGENTS.md` | ||
| - [x] Run `pnpm run type:check` | ||
| - [x] Run `pnpm run lint` | ||
| - [x] Run `pnpm run format` | ||
| - [x] Run `pnpm run build` | ||
| - [ ] Run `pnpm run test:e2e` (1 failing test: `tests/search.spec.ts` navigation assertion) | ||
|
|
||
| ## Files | ||
|
|
||
| - `package.json`: set pnpm package manager, update build chaining, add pnpm build-script allowlist | ||
| - `pnpm-lock.yaml`: new lockfile generated via pnpm install | ||
| - `package-lock.json`: removed | ||
| - `.github/workflows/ci.yml`: npm/npx commands replaced with pnpm equivalents | ||
| - `.github/workflows/crawl.yml`: npm/npx commands replaced with pnpm equivalents, cache key now uses pnpm lockfile | ||
| - `.github/workflows/deploy-sanity.yml`: npm commands replaced with pnpm equivalents | ||
| - `README.md`: local setup and schema typegen commands updated to pnpm | ||
| - `AGENTS.md`: workflow command references updated to pnpm | ||
|
|
||
| ## Unresolved questions | ||
|
|
||
| - None |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🧩 Analysis chain
🏁 Script executed:
Repository: dejanvasic85/williamstownsc
Length of output: 309
Pin
vercelinpnpm dlxfor deterministic CI runs.Unpinned
dlxcommands download the latest available version at execution time, which can vary across runs and compromise CI reproducibility. Usepnpm dlx vercel@<pinned-version>instead.Suggested update
Also applies to: 53-53
🤖 Prompt for AI Agents