mirror of
https://github.com/FranP-code/create-better-t-stack.git
synced 2025-10-12 23:52:15 +00:00
feat: add Lerna integration for proper monorepo versioning and publishing
- Add Lerna with independent versioning for better monorepo management - Configure auto to work with Lerna for proper package detection - Add canary release configuration for pull requests - Fix tag conflicts and versioning issues - Only publish CLI package, keep other packages private - Support canary, prerelease, and production releases
This commit is contained in:
3
.autorc
3
.autorc
@@ -6,7 +6,8 @@
|
||||
"forcePublish": false,
|
||||
"subPackageChangelogs": true,
|
||||
"exact": true,
|
||||
"monorepoChangelog": true
|
||||
"monorepoChangelog": true,
|
||||
"setRcToken": false
|
||||
}
|
||||
],
|
||||
"all-contributors",
|
||||
|
||||
17
lerna.json
Normal file
17
lerna.json
Normal file
@@ -0,0 +1,17 @@
|
||||
{
|
||||
"version": "independent",
|
||||
"npmClient": "bun",
|
||||
"command": {
|
||||
"publish": {
|
||||
"verifyAccess": false,
|
||||
"message": "chore(release): publish"
|
||||
},
|
||||
"version": {
|
||||
"message": "chore(release): version"
|
||||
}
|
||||
},
|
||||
"packages": [
|
||||
"apps/*",
|
||||
"packages/*"
|
||||
]
|
||||
}
|
||||
@@ -20,7 +20,9 @@
|
||||
"release": "auto shipit",
|
||||
"version": "auto version",
|
||||
"changelog": "auto changelog",
|
||||
"publish": "auto shipit --dry-run"
|
||||
"publish": "auto shipit --dry-run",
|
||||
"lerna:version": "lerna version --no-push",
|
||||
"lerna:publish": "lerna publish from-package"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@auto-it/all-contributors": "^11.3.0",
|
||||
@@ -31,6 +33,7 @@
|
||||
"auto": "^11.3.0",
|
||||
"husky": "^9.1.7",
|
||||
"lint-staged": "^16.1.2",
|
||||
"lerna": "^8.2.3",
|
||||
"turbo": "^2.5.5",
|
||||
"typescript": "5.8.3"
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user