Finish npm implementation
This commit is contained in:
parent
78f1d264e0
commit
adc53d41f1
@ -34,8 +34,8 @@ if [[ ! -z "$package_exists" && "$package_exists" != "null" ]]; then
|
||||
echo "${package_publish_version} of ${package_name} already exists in the registry"
|
||||
if [[ ${CERC_FORCE_REBUILD} == "true" ]]; then
|
||||
# Attempt to unpublish the existing package
|
||||
echo "unpublishing existing package version since force rebuild is enabled"
|
||||
npm unpublish ${package_name}@${package_publish_version}
|
||||
echo "NOTE: unpublishing existing package version since force rebuild is enabled"
|
||||
npm unpublish --force ${package_name}@${package_publish_version}
|
||||
else
|
||||
echo "skipping build since target version already exists"
|
||||
exit 0
|
||||
|
22
docs/cli.md
22
docs/cli.md
@ -24,3 +24,25 @@ Force full rebuild of container images:
|
||||
```
|
||||
$ laconic-so build-containers --include <container-name> --force-rebuild
|
||||
```
|
||||
## build-npms
|
||||
|
||||
Build a single package:
|
||||
```
|
||||
$ laconic-so build-npms --include <package-name>
|
||||
```
|
||||
e.g.
|
||||
```
|
||||
$ laconic-so build-npms --include laconic-sdk
|
||||
```
|
||||
Build the packages for a stack:
|
||||
```
|
||||
$ laconic-so --stack <stack-name> build-npms
|
||||
```
|
||||
e.g.
|
||||
```
|
||||
$ laconic-so --stack fixturenet-laconicd build-npms
|
||||
```
|
||||
Force full rebuild of packages:
|
||||
```
|
||||
$ laconic-so build-npms --include <package-name> --force-rebuild
|
||||
```
|
||||
|
Loading…
Reference in New Issue
Block a user