forked from timostamm/protobuf-ts
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
34 lines (26 loc) · 1.04 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
.PHONY: default lerna-make npm-install lerna-bootstrap
# build from scratch
default: npm-install lerna-bootstrap lerna-make
# installs lerna
npm-install:
npm i
# link packages and install their dependencies
lerna-bootstrap:
./node_modules/.bin/lerna bootstrap
# clear the node_modules folder of each package
lerna-clean:
./node_modules/.bin/lerna clean --yes
# run `make` for every package (with a few exceptions)
lerna-make:
./node_modules/.bin/lerna exec --stream \
--ignore @protobuf-ts/example-* \
--ignore @protobuf-ts/protoc \
-- make
# release a new version in the "latest" (the stable) channel
# when lerna asks for version number, you must *not* select a prerelease identifier
lerna-publish-latest: lerna-bootstrap lerna-make
./node_modules/.bin/lerna publish --force-publish
# release a new version in the "next" (the experimental) channel
# when lerna asks for version number, you *must* select a prerelease identifier
lerna-publish-next: lerna-bootstrap lerna-make
./node_modules/.bin/lerna publish --force-publish --dist-tag next