Skip to content

Commit e67bc22

Browse files
authored
chore(*): replace concurrently and lerna with npm-run-all2 (#488)
This pull request removes the use of Lerna from the project and updates the build and release workflow to rely solely on npm workspaces and `npm-run-all2`. It also updates scripts and documentation to reflect these changes, simplifies the build and test process, and replaces the use of `concurrently` with `npm-run-all2`. **Removal of Lerna and migration to npm workspaces:** * Removed `lerna.json` and all references to Lerna from configuration files and documentation, fully migrating the monorepo management to npm workspaces. [[1]](diffhunk://#diff-2d72bdead8afa0798d18995311992d684348a694c2d5e214e8e4d2b6153e4821L1-L4) [[2]](diffhunk://#diff-eca12c0a30e25b4b46522ebf89465a03ba72a03f540796c979137931d8f92055L3-R3) [[3]](diffhunk://#diff-b640b344ee7f3f03d2a443795a5d0708ef50e2e6e34214109ab2aad13ad6ba98L18) [[4]](diffhunk://#diff-7ae45ad102eab3b6d7e7896acd08c427a9b25b346470d7bc6507b6481575d519L15-R26) [[5]](diffhunk://#diff-7ae45ad102eab3b6d7e7896acd08c427a9b25b346470d7bc6507b6481575d519L53-R65) **Build and release workflow updates:** * Updated build and release scripts in `package.json` and the GitHub workflow to use npm workspaces and new script names, replacing Lerna-based commands with npm and `npm-run-all2`. [[1]](diffhunk://#diff-7ae45ad102eab3b6d7e7896acd08c427a9b25b346470d7bc6507b6481575d519L15-R26) [[2]](diffhunk://#diff-7ae45ad102eab3b6d7e7896acd08c427a9b25b346470d7bc6507b6481575d519L36-R45) [[3]](diffhunk://#diff-551d1fcf87f78cc3bc18a7b332a4dc5d8773a512062df881c5aba28a6f5c48d7L41-R41) **Dependency changes:** * Removed `lerna` and `concurrently` from dependencies and added `npm-run-all2` for improved script orchestration. **Documentation and configuration updates:** * Updated `CONTRIBUTING.md` and `.editorconfig-checker.json` to remove references to Lerna and clean up exclusions. [[1]](diffhunk://#diff-eca12c0a30e25b4b46522ebf89465a03ba72a03f540796c979137931d8f92055L3-R3) [[2]](diffhunk://#diff-ffc189b5d4f8c2eb9a171e067565fbfe9ecba9a5b717d236cbf22497973fc4a3L2-R2) **Project metadata:** * Added `name` and `version` fields to `package.json` for clarity and consistency.
1 parent 1e59beb commit e67bc22

File tree

8 files changed

+5101
-11608
lines changed

8 files changed

+5101
-11608
lines changed

.editorconfig-checker.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
"Exclude": ["git-clang-format", "lerna.json"]
2+
"Exclude": ["git-clang-format"]
33
}

.github/workflows/publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,4 +38,4 @@ jobs:
3838
run: npm run build --if-present
3939

4040
- name: Publish
41-
run: npm run publish-package
41+
run: npm run release:publish

.github/workflows/release.yml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,7 @@ jobs:
2121
uses: actions/checkout@v5
2222

2323
- name: Set up environment variables
24-
run: |
25-
if [ -f "lerna.json" ]; then
26-
echo "CURRENT_VERSION=$(node -p "require('./lerna.json').version")" >> $GITHUB_ENV
27-
else
28-
echo "CURRENT_VERSION=$(node -p "require('./package.json').version")" >> $GITHUB_ENV
29-
fi
24+
run: echo "CURRENT_VERSION=$(node -p "require('./package.json').version")" >> $GITHUB_ENV
3025

3126
- name: Release
3227
run: gh release edit v${{ env.CURRENT_VERSION }} --draft=false

.prettierignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ build
1515
coverage
1616

1717
# package
18-
lerna.json
1918
package-lock.json
2019

2120
# markdown

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Contributing
22

3-
This repository uses [`npm workspaces`](https://docs.npmjs.com/cli/using-npm/workspaces) and [`lerna`](https://lerna.js.org/) to maintain a **monorepo**.
3+
This repository uses [`npm workspaces`](https://docs.npmjs.com/cli/using-npm/workspaces) to maintain a **monorepo**.
44

55
## Directory Structure
66

lerna.json

Lines changed: 0 additions & 4 deletions
This file was deleted.

0 commit comments

Comments
 (0)