Skip to content

Commit ea88016

Browse files
committed
CCM-16068 - Update any remaining npm references
1 parent c8d90c5 commit ea88016

5 files changed

Lines changed: 7 additions & 50 deletions

File tree

containers/example-app/build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ set -euo pipefail
44

55
rm -rf dist
66

7-
npx esbuild \
7+
pnpm exec esbuild \
88
--bundle \
99
--minify \
1010
--sourcemap \

infrastructure/terraform/components/examplecomponent/pre.sh

Lines changed: 0 additions & 43 deletions
This file was deleted.

infrastructure/terraform/components/examplecomponent/pre.sh.disabled

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -67,15 +67,15 @@ fi
6767
# Export for Terraform
6868
export TF_VAR_container_image_tag_suffix="${CONTAINER_IMAGE_SUFFIX}"
6969

70-
run_or_fail npm ci
71-
run_or_fail npm run generate-dependencies --workspaces --if-present
72-
run_or_fail npm run build:archive --workspaces --if-present
70+
run_or_fail pnpm install --frozen-lockfile
71+
run_or_fail pnpm -r run --if-present generate-dependencies
72+
run_or_fail pnpm -r run --if-present build:archive
7373
run_or_fail env \
7474
CONTAINER_IMAGE_PREFIX="${CONTAINER_IMAGE_PREFIX}" \
7575
CONTAINER_IMAGE_SUFFIX="${CONTAINER_IMAGE_SUFFIX}" \
7676
AWS_ACCOUNT_ID="${AWS_ACCOUNT_ID}" \
7777
AWS_REGION="${REGION}" \
7878
PUBLISH_CONTAINER_IMAGE="${PUBLISH_CONTAINER_IMAGE}" \
79-
npm run build:container --workspaces --if-present
79+
pnpm -r run --if-present build:container
8080

8181
popd || exit 1 # Return to working directory

lambdas/example-lambda/build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ set -euo pipefail
44

55
rm -rf dist
66

7-
npx esbuild \
7+
pnpm exec esbuild \
88
--bundle \
99
--minify \
1010
--sourcemap \

scripts/tests/unit.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ cd "$(git rev-parse --show-toplevel)"
1111
#
1212
# rails test:unit
1313
# python manage.py test
14-
# npm run test
14+
# pnpm run test
1515
#
1616
# or whatever is appropriate to your project. You should *only* run your fast
1717
# tests from here. If you want to run other test suites, see the predefined

0 commit comments

Comments
 (0)