@@ -100,7 +100,7 @@ Before starting, verify:
100100
101101#### Step 3a: Generate New Types in hydrogen-react
1021021 . Navigate to ` packages/hydrogen-react/ `
103- 2 . Run: ` npm run graphql-types`
103+ 2 . Run: ` pnpm run graphql-types`
1041043 . ** IMPORTANT** : Return to the root directory: ` cd ../.. `
1051054 . This will fetch the latest schemas and generate:
106106 - ` src/storefront-api-types.d.ts ` - TypeScript types for SFAPI
@@ -123,14 +123,14 @@ ls -la packages/hydrogen-react/*.schema.json
123123
124124``` bash
125125cd packages/hydrogen-react
126- npm run build
126+ pnpm run build
127127cd ../..
128128```
129129
130130** Common Build Issues & Solutions:**
131131- ** Network timeout** : Retry the graphql-types command
132132- ** TypeScript errors** : Expected at this stage, continue with process
133- - ** Missing dependencies** : Run ` npm install` from root directory
133+ - ** Missing dependencies** : Run ` pnpm install` from root directory
134134- ** Permission errors** : Check file permissions or try with sudo
135135- ** Build hangs** : Kill process and retry, might be resource issue
136136
@@ -142,7 +142,7 @@ ls -la packages/hydrogen-react/dist/types/storefront-api-types.d.ts
142142
143143#### Step 3c: Build All Packages
144144``` bash
145- npm run build:pkg
145+ pnpm run build:pkg
146146```
147147
148148** Validation** : Verify build completes without errors:
@@ -156,7 +156,7 @@ npm run build:pkg
156156** TODO TRACKING** : Mark Step 4 complete, add and mark Step 5 as in_progress.
157157Run the documentation build to update any auto-generated docs:
158158``` bash
159- npm run build-docs --workspace=@shopify/hydrogen-react
159+ pnpm run build-docs --workspace=@shopify/hydrogen-react
160160```
161161This will update generated documentation based on component changes.
162162
@@ -170,18 +170,18 @@ This will update generated documentation based on component changes.
170170After building packages, regenerate the skeleton template's GraphQL types:
171171``` bash
172172cd templates/skeleton
173- npm run codegen
173+ pnpm run codegen
174174cd ../..
175175```
176- ** Note** : This step MUST be done after ` npm run build:pkg` as the skeleton depends on the built hydrogen-react types.
176+ ** Note** : This step MUST be done after ` pnpm run build:pkg` as the skeleton depends on the built hydrogen-react types.
177177
178178** Validation** : Verify these files were regenerated:
179179- ` templates/skeleton/storefrontapi.generated.d.ts `
180180- ` templates/skeleton/customer-accountapi.generated.d.ts `
181181
182182** Common Issues** :
183183- If you see errors about unknown types (e.g., ` LanguageCode ` ), this indicates breaking changes in the API that need to be addressed
184- - The skeleton codegen depends on the built packages, so ensure ` npm run build:pkg` completed successfully first
184+ - The skeleton codegen depends on the built packages, so ensure ` pnpm run build:pkg` completed successfully first
185185
186186** ✅ CHECKPOINT** : Pause and ask the user to confirm before moving to the next task.
187187** Summary** : Regenerated skeleton template's GraphQL types. Note any codegen errors that may indicate breaking API changes.
@@ -218,13 +218,13 @@ find . -name "*test*" -o -name "*spec*" | xargs grep -l "$OLD_VERSION"
218218** Validation** : After updating all references, run initial validation and capture all errors:
219219``` bash
220220# Capture TypeScript errors
221- npm run typecheck 2>&1 | tee typecheck_errors.log
221+ pnpm run typecheck 2>&1 | tee typecheck_errors.log
222222
223223# Capture test failures
224- npm test 2>&1 | tee test_failures.log
224+ pnpm test 2>&1 | tee test_failures.log
225225
226226# Capture lint issues (usually less critical)
227- npm run lint 2>&1 | tee lint_issues.log
227+ pnpm run lint 2>&1 | tee lint_issues.log
228228```
229229** Important** : Save these error logs - they will be analyzed and included in the PR description for visibility.
230230
@@ -533,7 +533,7 @@ query CustomerWithNewField {
533533### 1. Run Type Generation
534534``` bash
535535cd packages/hydrogen-react
536- npm run graphql-types
536+ pnpm run graphql-types
537537cd ../..
538538```
539539- Verify no errors occur
@@ -545,7 +545,7 @@ cd ../..
545545
546546### 2. Build Documentation
547547``` bash
548- npm run build-docs --workspace=@shopify/hydrogen-react
548+ pnpm run build-docs --workspace=@shopify/hydrogen-react
549549```
550550
551551** ✅ CHECKPOINT** : Pause and ask the user to confirm before moving to the next task.
@@ -568,34 +568,34 @@ grep -r "YYYY-MM" --include="*.ts" --include="*.tsx" --include="*.js" --include=
568568#### Step 4a: Test hydrogen-react types
569569``` bash
570570cd packages/hydrogen-react
571- npm run typecheck
571+ pnpm run typecheck
572572cd ../..
573573```
574574
575575#### Step 4b: Test hydrogen package types
576576``` bash
577577cd packages/hydrogen
578- npm run typecheck
578+ pnpm run typecheck
579579cd ../..
580580```
581581
582582** Common Issues and Solutions** :
583583- If you see ` Cannot find module '@shopify/hydrogen-react/storefront-api-types' ` :
584- - Ensure you ran ` npm run build` in ` packages/hydrogen-react ` first
584+ - Ensure you ran ` pnpm run build` in ` packages/hydrogen-react ` first
585585 - Verify ` packages/hydrogen-react/dist/types/storefront-api-types.d.ts ` exists
586586- If typecheck fails with many errors, the packages may need rebuilding:
587587 ``` bash
588588 cd packages/hydrogen-react
589- npm run graphql-types
590- npm run build
589+ pnpm run graphql-types
590+ pnpm run build
591591 cd ../..
592- npm run build:pkg
592+ pnpm run build:pkg
593593 ```
594594
595595#### Step 4c: Run Full Test Suite
596596``` bash
597- npm test
598- npm run lint
597+ pnpm test
598+ pnpm run lint
599599```
600600
601601** ✅ CHECKPOINT** : Pause and ask the user to confirm before moving to the next task.
@@ -605,7 +605,7 @@ npm run lint
605605
6066061 . ** Type Resolution Failures** : The hydrogen package depends on built types from hydrogen-react
607607 - ** Problem** : ` Cannot find module '@shopify/hydrogen-react/storefront-api-types' `
608- - ** Solution** : ALWAYS build hydrogen-react (` npm run build` ) after generating types and before building other packages
608+ - ** Solution** : ALWAYS build hydrogen-react (` pnpm run build` ) after generating types and before building other packages
609609 - ** Order matters** : graphql-types → build hydrogen-react → build all packages
610610
6116112 . ** Missing API feature implementations** : Always check the API changelog for new features that need implementation
@@ -614,7 +614,7 @@ npm run lint
614614
6156154 . ** Version consistency** : SFAPI and CAAPI versions MUST match for quarterly releases
616616
617- 5 . ** Generated files** : Never manually edit generated type files - always use ` npm run graphql-types`
617+ 5 . ** Generated files** : Never manually edit generated type files - always use ` pnpm run graphql-types`
618618
6196196 . ** Test updates** : Tests must be updated to work with new API versions
620620
@@ -693,7 +693,7 @@ For each issue discovered, provide:
693693** Summary** : Customer Account API queries fail with "Unknown type LanguageCode" error
694694
695695** Details** :
696- - Discovered during: ` npm run codegen` in templates/skeleton
696+ - Discovered during: ` pnpm run codegen` in templates/skeleton
697697- Error locations:
698698 - app/graphql/customer-account/CustomerAddressMutations.ts:6:16
699699 - app/graphql/customer-account/CustomerDetailsQuery.ts:2:36
@@ -1215,19 +1215,19 @@ See [`API_CHANGES_REPORT_YYYY-MM.md`](./API_CHANGES_REPORT_YYYY-MM.md) for compl
12151215- [ ] Tests: Add coverage for cart warning features
12161216
12171217### Build & Documentation Status
1218- - [ ] `npm run typecheck` - Currently: Failed (X errors)
1219- - [ ] `npm run test` - Currently: Failed (Y failures)
1220- - [ ] `npm run build:pkg` - Currently: Pass/Fail
1218+ - [ ] `pnpm run typecheck` - Currently: Failed (X errors)
1219+ - [ ] `pnpm run test` - Currently: Failed (Y failures)
1220+ - [ ] `pnpm run build:pkg` - Currently: Pass/Fail
12211221- [ ] Skeleton builds - Currently: Pass/Fail
12221222- [ ] API version references updated
12231223- [ ] Examples use new API version
12241224- [ ] JSDoc comments updated
12251225
12261226[IF no validation errors, include:]
12271227## Build & Documentation Status
1228- - [x] `npm run typecheck` - Passing
1229- - [x] `npm run test` - All tests passing
1230- - [x] `npm run build:pkg` - Successful
1228+ - [x] `pnpm run typecheck` - Passing
1229+ - [x] `pnpm run test` - All tests passing
1230+ - [x] `pnpm run build:pkg` - Successful
12311231- [x] Skeleton builds - Successful
12321232- [x] API version references updated
12331233- [x] Examples use new API version
@@ -1513,7 +1513,7 @@ echo "PR description generated: $OUTPUT_FILE"
15131513- [ ] Asked user about Cloudflare Workers compat date
15141514- [ ] Type generation completed successfully
15151515- [ ] hydrogen-react built successfully (critical for type resolution)
1516- - [ ] Documentation built with ` npm run build-docs --workspace=@shopify/hydrogen-react`
1516+ - [ ] Documentation built with ` pnpm run build-docs --workspace=@shopify/hydrogen-react`
15171517- [ ] No references to old API versions remain
15181518- [ ] All tests pass with new API versions
15191519- [ ] Build completes successfully
@@ -1550,45 +1550,45 @@ curl --silent --request POST \
15501550
15511551# 2. Generate new types in hydrogen-react
15521552cd packages/hydrogen-react
1553- npm run graphql-types
1553+ pnpm run graphql-types
15541554
15551555# 3. BUILD HYDROGEN-REACT (CRITICAL - DO NOT SKIP)
1556- npm run build
1556+ pnpm run build
15571557cd ../..
15581558
15591559# 4. Verify hydrogen-react types are built
15601560ls -la packages/hydrogen-react/dist/types/storefront-api-types.d.ts
15611561
15621562# 5. Build all packages
1563- npm run build:pkg
1563+ pnpm run build:pkg
15641564
15651565# 6. Build documentation
1566- npm run build-docs --workspace=@shopify/hydrogen-react
1566+ pnpm run build-docs --workspace=@shopify/hydrogen-react
15671567
15681568# 7. Regenerate skeleton types
15691569cd templates/skeleton
1570- npm run codegen
1570+ pnpm run codegen
15711571cd ../..
15721572
15731573# 8. Search for old versions and update (replace YYYY-MM with actual old version)
15741574grep -r " YYYY-MM" --include=" *.ts" --include=" *.tsx" --include=" *.js" --include=" *.jsx"
15751575# Update all found references
15761576
15771577# 9. Verify type checking works (CRITICAL VALIDATION)
1578- cd packages/hydrogen-react && npm run typecheck && cd ../..
1579- cd packages/hydrogen && npm run typecheck && cd ../..
1578+ cd packages/hydrogen-react && pnpm run typecheck && cd ../..
1579+ cd packages/hydrogen && pnpm run typecheck && cd ../..
15801580
15811581# 10. Run full validation suite
1582- npm run typecheck
1583- npm run lint
1584- npm test
1582+ pnpm run typecheck
1583+ pnpm run lint
1584+ pnpm test
15851585# Keep track of any errors for final review
15861586
15871587# 11. Format the code
1588- npm run format
1588+ pnpm run format
15891589
15901590# 12. Create changeset
1591- npm run changeset add
1591+ pnpm run changeset add
15921592
15931593# 13. Commit changes
15941594git add -A
0 commit comments