Skip to content

Commit d206643

Browse files
committed
chore: add Lerna-Lite for releasing new versions
1 parent ab2cfe8 commit d206643

File tree

6 files changed

+2603
-39
lines changed

6 files changed

+2603
-39
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,6 @@ dist-ssr
2222
*.njsproj
2323
*.sln
2424
*.sw?
25+
26+
# Environment variables
27+
.env

demo/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "multiple-select-vanilla-demo",
33
"private": true,
4-
"version": "0.1.0",
4+
"version": "0.0.0",
55
"type": "module",
66
"author": {
77
"name": "zhixin wen",

lerna.json

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{
2+
"$schema": "node_modules/@lerna-lite/cli/schemas/lerna-schema.json",
3+
"version": "0.0.0",
4+
"npmClient": "pnpm",
5+
"loglevel": "info",
6+
"command": {
7+
"version": {
8+
"conventionalCommits": true,
9+
"createRelease": "github",
10+
"changelogIncludeCommitsClientLogin": " - by @%l",
11+
"changelogHeaderMessage": "## Multiple-Select-Vanilla, visit the GitHub Page [multiple-select-vanilla](https://github.com/ghiscoding/multiple-select-vanilla)",
12+
"message": "chore(release): publish new version %v",
13+
"syncWorkspaceLock": true
14+
}
15+
},
16+
"packages": [
17+
"*"
18+
]
19+
}

lib/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "multiple-select-vanilla",
3-
"version": "0.1.0",
3+
"version": "0.0.0",
44
"type": "module",
55
"exports": {
66
".": {

package.json

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "multiple-select-root",
33
"private": true,
4-
"version": "0.1.0",
4+
"version": "0.0.0",
55
"author": {
66
"name": "zhixin wen",
77
"email": "[email protected]",
@@ -26,9 +26,15 @@
2626
"prettier:check": "prettier --check **/*.{js,ts,yml,json}",
2727
"prettier:write": "prettier --write **/*.{js,ts,yml,json}",
2828
"ci:lint": "eslint -c .eslintrc.json --no-eslintrc --ignore-path .gitignore",
29-
"lint": "eslint -c .eslintrc.json --no-eslintrc --ignore-path .gitignore --cache --cache-location ./node_modules/.cache/eslint"
29+
"lint": "eslint -c .eslintrc.json --no-eslintrc --ignore-path .gitignore --cache --cache-location ./node_modules/.cache/eslint",
30+
"preview:version": "lerna version --no-private --dry-run",
31+
"preview:publish": "lerna publish from-package --dry-run",
32+
"new-version": "lerna version --no-private",
33+
"new-publish": "lerna publish from-package",
34+
"roll-new-release": "pnpm build && pnpm new-version && pnpm new-publish"
3035
},
3136
"devDependencies": {
37+
"@lerna-lite/cli": "^1.13.0",
3238
"@typescript-eslint/eslint-plugin": "^5.48.0",
3339
"@typescript-eslint/parser": "^5.48.0",
3440
"eslint": "^8.31.0",

0 commit comments

Comments
 (0)