Skip to content

Commit

Permalink
GH-37392: [JS] Remove lerna (#37393)
Browse files Browse the repository at this point in the history
We only use learna for making releases and can easily replace it with a bash script. 
* Closes: #37392

Authored-by: Dominik Moritz <[email protected]>
Signed-off-by: Sutou Kouhei <[email protected]>
  • Loading branch information
domoritz authored Aug 25, 2023
1 parent 4586689 commit c9bfca5
Show file tree
Hide file tree
Showing 5 changed files with 73 additions and 2,583 deletions.
4 changes: 0 additions & 4 deletions js/DEVELOP.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,10 +66,6 @@ This argument configuration also applies to `clean` and `test` scripts.
To run tests on the bundles, you need to build them first.
To run tests directly on the sources without bundling, use the `src` target (e.g. `yarn test -t src`).

* `yarn deploy`

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).

* `yarn doc`

Compiles the documentation with [Typedoc](https://typedoc.org/). Use `yarn doc --watch` to automatically rebuild when the docs change.
Expand Down
12 changes: 0 additions & 12 deletions js/lerna.json

This file was deleted.

3 changes: 2 additions & 1 deletion js/npm-release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,5 @@ yarn gulp
read -p "Please enter your npm 2FA one-time password (or leave empty if you don't have 2FA enabled): " NPM_OTP </dev/tty

# publish the JS target modules to npm
yarn lerna exec --concurrency 1 --no-bail "npm publish${NPM_OTP:+ --otp=$NPM_OTP}"
find targets -type f -name package.json -execdir sh -c \
"npm publish \$(dirname \$(realpath {})) ${NPM_OTP:+ --otp=$NPM_OTP}" \;
1 change: 0 additions & 1 deletion js/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,6 @@
"ix": "5.0.0",
"jest": "29.6.2",
"jest-silent-reporter": "0.5.0",
"lerna": "7.0.0",
"memfs": "4.2.1",
"mkdirp": "3.0.1",
"multistream": "4.1.0",
Expand Down
Loading

0 comments on commit c9bfca5

Please sign in to comment.