Skip to content

Commit b63f8c2

Browse files
authored
refactor: use npm workspace instead of lerna (#281)
* refactor: use npm workspace instead of lerna Lerna was deprecated a few months ago, and workspaces have gotten better. Version bumping now goes through npm again, with a standard `npm version` command. Usage is still the same as what's the in DAP contributing.md. * add bump-version.sh helper * make bump version better
1 parent 51dbe39 commit b63f8c2

File tree

7 files changed

+1168
-12650
lines changed

7 files changed

+1168
-12650
lines changed

adapter/package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@
2525
},
2626
"devDependencies": {
2727
"@types/mocha": "^9.1.0",
28-
"mocha": "^9.2.1"
28+
"mocha": "^9.2.1",
29+
"typescript": "^4.9.4"
2930
},
3031
"scripts": {
3132
"prepack": "npm run compile",

bump-version.sh

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#!/bin/sh
2+
3+
npm version --workspaces "$@"
4+
git add .
5+
6+
VERSION=v$(cat adapter/package.json | jq -r .version)
7+
git commit -m $VERSION
8+
git tag $VERSION
9+
git push origin release/$VERSION
10+
git push origin $VERSION

lerna.json

-8
This file was deleted.

0 commit comments

Comments
 (0)