From adc53d41f1b5ac23a6a6402fb9cd105c6dfaa303 Mon Sep 17 00:00:00 2001 From: David Boreham Date: Fri, 14 Apr 2023 14:17:56 -0600 Subject: [PATCH] Finish npm implementation --- .../cerc-builder-js/build-npm-package.sh | 4 ++-- docs/cli.md | 22 +++++++++++++++++++ 2 files changed, 24 insertions(+), 2 deletions(-) diff --git a/app/data/container-build/cerc-builder-js/build-npm-package.sh b/app/data/container-build/cerc-builder-js/build-npm-package.sh index 5bb75ab5..db27955c 100755 --- a/app/data/container-build/cerc-builder-js/build-npm-package.sh +++ b/app/data/container-build/cerc-builder-js/build-npm-package.sh @@ -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 diff --git a/docs/cli.md b/docs/cli.md index 9710d4ed..f7c6205f 100644 --- a/docs/cli.md +++ b/docs/cli.md @@ -24,3 +24,25 @@ Force full rebuild of container images: ``` $ laconic-so build-containers --include --force-rebuild ``` +## build-npms + +Build a single package: +``` +$ laconic-so build-npms --include +``` +e.g. +``` +$ laconic-so build-npms --include laconic-sdk +``` +Build the packages for a stack: +``` +$ laconic-so --stack build-npms +``` +e.g. +``` +$ laconic-so --stack fixturenet-laconicd build-npms +``` +Force full rebuild of packages: +``` +$ laconic-so build-npms --include --force-rebuild +```