From aa01feb98a1878cdf08c8f8a31a94981f7f0b997 Mon Sep 17 00:00:00 2001 From: David Boreham Date: Fri, 24 Mar 2023 02:52:37 -0600 Subject: [PATCH] Fix up script and npm list Former-commit-id: e6b91acdeacc5eb27e03fb7d12f13ad23cd7e681 --- .../cerc-builder-js/build-npm-package-local-dependencies.sh | 5 +++-- app/data/npm-package-list.txt | 2 -- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/app/data/container-build/cerc-builder-js/build-npm-package-local-dependencies.sh b/app/data/container-build/cerc-builder-js/build-npm-package-local-dependencies.sh index 47869e16..33b6c613 100755 --- a/app/data/container-build/cerc-builder-js/build-npm-package-local-dependencies.sh +++ b/app/data/container-build/cerc-builder-js/build-npm-package-local-dependencies.sh @@ -19,13 +19,14 @@ local_npm_registry_url=$1 package_publish_version=$2 # If we need to handle an additional scope, add it to the list below: npm_scopes_to_handle=("@cerc-io" "@lirewine") -for npm_scope_for_local in ${npm_scopes_to_handle[@]}; do +for npm_scope_for_local in ${npm_scopes_to_handle[@]} +do # We need to configure the local registry npm config set ${npm_scope_for_local}:registry ${local_npm_registry_url} npm config set -- ${local_npm_registry_url}:_authToken ${CERC_NPM_AUTH_TOKEN} # Find the set of dependencies from the specified scope mapfile -t dependencies_from_scope < <(cat package.json | jq -r '.dependencies | with_entries(if (.key|test("^'${npm_scope_for_local}'/.*$")) then ( {key: .key, value: .value } ) else empty end ) | keys[]') - echo "Fixing up dependencies" + echo "Fixing up dependencies in scope ${npm_scope_for_local}" for package in "${dependencies_from_scope[@]}" do echo "Fixing up package ${package}" diff --git a/app/data/npm-package-list.txt b/app/data/npm-package-list.txt index 3def3d63..3b6656be 100644 --- a/app/data/npm-package-list.txt +++ b/app/data/npm-package-list.txt @@ -1,6 +1,4 @@ -gem laconic-sdk -debug laconic-registry-cli gem debug