Skip to content

Commit c35c071

Browse files
domoritzloicalleyne
authored andcommitted
apacheGH-37392: [JS] Remove lerna (apache#37393)
We only use learna for making releases and can easily replace it with a bash script. * Closes: apache#37392 Authored-by: Dominik Moritz <[email protected]> Signed-off-by: Sutou Kouhei <[email protected]>
1 parent 1e62a5d commit c35c071

File tree

5 files changed

+73
-2583
lines changed

5 files changed

+73
-2583
lines changed

js/DEVELOP.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -66,10 +66,6 @@ This argument configuration also applies to `clean` and `test` scripts.
6666
To run tests on the bundles, you need to build them first.
6767
To run tests directly on the sources without bundling, use the `src` target (e.g. `yarn test -t src`).
6868

69-
* `yarn deploy`
70-
71-
Uses [lerna](https://github.com/lerna/lerna) to publish each build target to npm with [conventional](https://conventionalcommits.org/) [changelogs](https://github.com/conventional-changelog/conventional-changelog/tree/master/packages/conventional-changelog-cli).
72-
7369
* `yarn doc`
7470

7571
Compiles the documentation with [Typedoc](https://typedoc.org/). Use `yarn doc --watch` to automatically rebuild when the docs change.

js/lerna.json

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

js/npm-release.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,5 @@ yarn gulp
2525
read -p "Please enter your npm 2FA one-time password (or leave empty if you don't have 2FA enabled): " NPM_OTP </dev/tty
2626

2727
# publish the JS target modules to npm
28-
yarn lerna exec --concurrency 1 --no-bail "npm publish${NPM_OTP:+ --otp=$NPM_OTP}"
28+
find targets -type f -name package.json -execdir sh -c \
29+
"npm publish \$(dirname \$(realpath {})) ${NPM_OTP:+ --otp=$NPM_OTP}" \;

js/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,6 @@
9999
"ix": "5.0.0",
100100
"jest": "29.6.2",
101101
"jest-silent-reporter": "0.5.0",
102-
"lerna": "7.0.0",
103102
"memfs": "4.2.1",
104103
"mkdirp": "3.0.1",
105104
"multistream": "4.1.0",

0 commit comments

Comments
 (0)