Skip to content

Commit 7f568a5

Browse files
Alexandre NédélecCopilot
andcommitted
fix: make package.json sync rules explicit and comprehensive
Previous instructions said 'shared dependencies' which the agent interpreted narrowly, missing most version bumps and new packages. Now explicitly states: update all matching versions, add new packages, never remove, never downgrade, and run pnpm install to regenerate lockfile. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent fd622e3 commit 7f568a5

1 file changed

Lines changed: 9 additions & 4 deletions

File tree

.github/workflows/template-sync.md

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -68,10 +68,15 @@ apply or adapt (see rules below), fetch its current content from `nuxt-ui-templa
6868
- `eslint.config.mjs`
6969
- `tsconfig.json`
7070
- `pnpm-workspace.yaml`
71-
- `package.json` — apply only updates to **shared** dependencies (nuxt, @nuxt/ui, @nuxt/content,
72-
@nuxt/image, @nuxt/fonts, @nuxt/icon, typescript, vue, etc.). Do NOT remove packages that
73-
exist in this repo but not the template (e.g. @nuxtjs/seo, gsap, @vueuse/nuxt, and others).
74-
Do NOT downgrade any package version that is already newer in this repo.
71+
- `package.json` — merge upstream dependency changes into this repo's package.json:
72+
- **Update versions**: for every dependency that exists in both the template and this repo,
73+
update to the template's version unless this repo already has a newer version.
74+
- **Add new packages**: if the template added a new dependency, add it here too.
75+
- **Do NOT remove packages**: packages that exist in this repo but not in the template
76+
(e.g. @nuxtjs/seo, feed, giscus, posthog-js, submitjson, etc.) must be kept.
77+
- **Do NOT downgrade**: if this repo has a newer version than the template, keep ours.
78+
- **Update `packageManager`**: sync the pnpm version from the template.
79+
- After updating `package.json`, run `pnpm install` to regenerate `pnpm-lock.yaml`.
7580

7681
### 🔄 Adapt with rename — apply the equivalent change to the renamed file
7782

0 commit comments

Comments
 (0)