Commit b8401e5
authored
fix: clean published package.json (#371)
* fix: remove workspaces and other dev fields from published package.json
- Fixes #360: Yarn v1 warning about workspaces in published packages
- Adds CI step to clean package.json before publishing
- Removes workspaces, packageManager, scripts, and devDependencies from published package
- Restores original package.json after publishing
- Uses 'if: always()' to ensure restoration even if release fails
* refactor: use @anolilab/semantic-release-clean-package-json plugin
- Replace manual CI package.json cleaning with semantic-release plugin
- Plugin automatically removes workspaces, packageManager, scripts, devDependencies
- Maintains clean published package.json while preserving development setup
- More maintainable and follows semantic-release best practices
* Cursor rules1 parent ef5e251 commit b8401e5
File tree
4 files changed
+62
-1
lines changed- .cursor/rules
4 files changed
+62
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
3 | 10 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
| 49 | + | |
49 | 50 | | |
50 | 51 | | |
51 | 52 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments