Skip to content

Commit c0fd73a

Browse files
committed
chore: replace lerna with changesets
1 parent 571db3a commit c0fd73a

File tree

4 files changed

+37
-4
lines changed

4 files changed

+37
-4
lines changed

.changeset/README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Changesets
2+
3+
Hello and welcome! This folder has been automatically generated by `@changesets/cli`, a build tool that works
4+
with multi-package repos, or single-package repos to help you version and publish your code. You can
5+
find the full documentation for it [in our repository](https://github.com/changesets/changesets)
6+
7+
We have a quick list of common questions to get you started engaging with this project in
8+
[our documentation](https://github.com/changesets/changesets/blob/main/docs/common-questions.md)

.changeset/config.json

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"$schema": "https://unpkg.com/@changesets/config@2.3.0/schema.json",
3+
"changelog": [
4+
"@changesets/changelog-github",
5+
{
6+
"repo": "twilio-labs/serverless-toolkit"
7+
}
8+
],
9+
"commit": false,
10+
"fixed": [],
11+
"linked": [],
12+
"access": "public",
13+
"baseBranch": "main",
14+
"updateInternalDependencies": "patch",
15+
"ignore": []
16+
}

commitlint.config.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,7 @@
1-
module.exports = { extends: ['@commitlint/config-conventional'] };
1+
module.exports = {
2+
extends: ['@commitlint/config-conventional'],
3+
plugins: ['workspace-scopes'],
4+
rules: {
5+
'scope-enum': [2, 'always', []],
6+
},
7+
};

package.json

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,9 @@
44
"scripts": {
55
"bootstrap": "npm run build",
66
"build": "npm run build --workspaces --if-present",
7-
"release": "lerna version --conventional-commits --no-commit-hooks --no-push",
8-
"npm:publish": "lerna publish from-git",
7+
"changeset": "changeset",
8+
"create-version": "changeset version",
9+
"npm:publish": "changeset publish",
910
"cm": "git-cz",
1011
"jest": "jest",
1112
"build:noemit": "npm run build:noemit --workspaces --if-present",
@@ -20,17 +21,19 @@
2021
"reset": "npm exec --workspaces -- npx rimraf node_modules && npx rimraf node_modules"
2122
},
2223
"devDependencies": {
24+
"@changesets/changelog-github": "^0.4.8",
25+
"@changesets/cli": "^2.26.0",
2326
"@commitlint/cli": "^9.1.2",
2427
"@commitlint/config-conventional": "^10.0.0",
2528
"@types/jest": "^29.2.4",
2629
"all-contributors-cli": "^6.1.2",
2730
"commitizen": "^4.2.4",
31+
"commitlint-plugin-workspace-scopes": "^1.1.0",
2832
"conventional-changelog-cli": "^2.1.0",
2933
"cz-conventional-changelog": "^2.1.0",
3034
"husky": "^7.0.0",
3135
"jest": "^28.1.3",
3236
"jest-express": "^1.10.1",
33-
"lerna": "^4.0.0",
3437
"lint-staged": "^9.0.0",
3538
"npm-run-all": "^4.1.5",
3639
"prettier": "^2.2.1",

0 commit comments

Comments
 (0)