Skip to content

Commit bce275a

Browse files
5ZYSZ3Kjsamr
authored andcommitted
feat: add lerna publish
1 parent d04a6d5 commit bce275a

File tree

4 files changed

+1940
-24
lines changed

4 files changed

+1940
-24
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,3 +67,6 @@ buck-out/
6767
!.yarn/plugins
6868
!.yarn/sdks
6969
!.yarn/versions
70+
71+
# lerna
72+
lerna-debug.log

lerna.json

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{
2+
"$schema": "node_modules/@lerna-lite/cli/schemas/lerna-schema.json",
3+
"packages": ["packages/*"],
4+
"npmClient": "yarn",
5+
"useWorkspaces": true,
6+
"version": "independent",
7+
"command": {
8+
"publish": {
9+
"graphType": "all",
10+
"syncWorkspaceLock": true,
11+
"allowPeerDependenciesUpdate": true,
12+
"conventionalCommits": true,
13+
"createRelease": "github",
14+
"skipBumpOnlyReleases": true,
15+
"changelogIncludeCommitsClientLogin": " - by @%l",
16+
"message": "chore: publish",
17+
"preId": "alpha",
18+
"preDistTag": "next"
19+
}
20+
}
21+
}

package.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,15 @@
1717
"test:iframe:jest": "yarn workspace @native-html/iframe-plugin test:jest",
1818
"test:core": "yarn workspace @native-html/plugins-core test",
1919
"test:core:jest": "yarn workspace @native-html/plugins-core test:jest",
20-
"prepare": "husky"
20+
"prepare": "husky",
21+
"release": "lerna publish"
2122
},
2223
"devDependencies": {
2324
"@commitlint/cli": "^20.4.2",
2425
"@commitlint/config-conventional": "^20.4.2",
2526
"@formidable-webview/eslint-config-webjs": "^1.0.0",
27+
"@lerna-lite/cli": "^4.4.1",
28+
"@lerna-lite/publish": "^4.4.1",
2629
"@react-native-community/eslint-config": "^3.2.0",
2730
"@typescript-eslint/eslint-plugin": "^8.56.1",
2831
"@typescript-eslint/parser": "^8.56.1",

0 commit comments

Comments
 (0)