Skip to content

Commit b9c799f

Browse files
authored
Merge pull request #2010 from habitat-sh/update_angular
use harness.io for package resolution and bump angular deps
2 parents 078d2b0 + 4ea9bfa commit b9c799f

4 files changed

Lines changed: 594 additions & 584 deletions

File tree

components/builder-api-proxy/habitat/plan.sh

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,14 @@ do_build() {
5555
pushd "$HAB_CACHE_SRC_PATH" >/dev/null || exit
5656
export HOME=$HAB_CACHE_SRC_PATH
5757
export PATH=./node_modules/.bin:$PATH
58-
npm install
58+
59+
# We need to use a specific version of npm to work with min-release-age
60+
# needed with harness.io. That requires a version of 11.10.0 or higher
61+
# once we upgrade our core/node to a version that
62+
# includes such a version of npm, we can remove this and it can just
63+
# be `npm ci` instead of the full path to the npm-cli.js
64+
npm install -g --prefix /tmp/npm-upgrade npm@11.17.0
65+
node /tmp/npm-upgrade/lib/node_modules/npm/bin/npm-cli.js ci
5966
for b in node_modules/.bin/*; do
6067
fix_interpreter "$(readlink -f -n "$b")" core/coreutils bin/env
6168
done

components/builder-web/.npmrc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
registry=https://pkg.harness.io/pkg/ct8onj8YTdaXtKaFsYCRLg/org-chef-npm/npm/
2+
# cooldown in days (14 days)
3+
min-release-age=14

0 commit comments

Comments
 (0)