Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion .claude/skills/dist-build-migration/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,11 @@ For example, `devkit-generation.ts` had to be updated to look for `packages/devk

### 13. Update `scripts/nx-release.ts`

If the package has special release handling in `scripts/nx-release.ts` (like devkit's `hackFixForDevkitPeerDependencies`), update any paths from `./dist/packages/<name>/` to `./packages/<name>/`.
Two things to do here:

1. **Add the package to `packagesToReset`.** That array (around `scripts/nx-release.ts:76`) is the snapshot/restore list — every package whose source `package.json` gets mutated by `nx release` (because it now publishes from `packages/<name>/` directly, not `dist/packages/<name>/`) must be in this list. Otherwise the release will leave `packages/<name>/package.json` dirty in the working tree after running. **Easy to forget — and there is no test that catches it.**

2. **Update any package-specific paths.** If the package has special release handling (like devkit's `hackFixForDevkitPeerDependencies`), update any paths from `./dist/packages/<name>/` to `./packages/<name>/`.

### 14. Update imports across the workspace

Expand Down
1 change: 1 addition & 0 deletions scripts/nx-release.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ const VALID_AUTHORS_FOR_LATEST = [
const packagesToReset = [
'packages/angular-rspack',
'packages/angular-rspack-compiler',
'packages/devkit',
'packages/dotnet',
'packages/maven',
'packages/nx',
Expand Down
Loading