@@ -6,7 +6,8 @@ current_active_region = "us-east-2"
66src_directory_root = src/
77dist_ui_directory_root = dist_ui/
88integration_test_directory_root = tests/live_integration/
9- npm_install_params = --omit=dev --target_arch=arm64 --target_platform=linux --target_libc=glibc --cpu arm64 --os linux --arch=arm64
9+ yarn_install_params = --production --frozen-lockfile
10+ yarn_env = npm_config_arch=arm64 npm_config_platform=linux npm_config_libc=glibc
1011GIT_HASH := $(shell git rev-parse --short HEAD)
1112
1213.PHONY : clean
@@ -32,18 +33,19 @@ build: src/
3233 cp -r src/api/resources/ dist/api/resources
3334 rm -rf dist/lambda/sqs
3435 docker run --rm -v " $( shell pwd) /dist/lambda" :/var/task public.ecr.aws/sam/build-nodejs22.x:latest \
35- sh -c " npm install $( npm_install_params ) && \
36+ sh -c " npm i -g yarn && $( yarn_env ) yarn $( yarn_install_params ) && \
3637 rm -rf node_modules/aws-crt/dist/bin/{darwin* ,linux-x64* ,linux-arm64-musl} && \
3738 rm -rf node_modules/argon2/prebuilds/{darwin* ,freebsd* ,linux-arm,linux-x64* ,win32-x64* } && \
3839 rm -rf node_modules/argon2/prebuilds/linux-arm64/argon2.armv8.musl.node"
3940
4041 docker run --rm -v "$(shell pwd)/dist/sqsConsumer":/var/task public.ecr.aws/sam/build-nodejs22.x:latest \
41- sh -c "npm install $(npm_install_params ) && \
42+ sh -c "npm i -g yarn && $(yarn_env) yarn $(yarn_install_params ) && \
4243 rm -rf node_modules/aws-crt/dist/bin/{darwin*,linux-x64*,linux-arm64-musl} && \
4344 rm -rf node_modules/argon2/prebuilds/{darwin*,freebsd*,linux-arm,linux-x64*,win32-x64*} && \
4445 rm -rf node_modules/argon2/prebuilds/linux-arm64/argon2.armv8.musl.node"
4546
4647local :
48+ mkdir -p dist_devel/
4749 VITE_BUILD_HASH=$(GIT_HASH ) yarn run dev
4850
4951deploy_prod :
@@ -85,8 +87,6 @@ test_e2e: install
8587 yarn playwright install
8688 yarn test:e2e
8789
88- test_post_deploy : test_live_integration test_e2e
89-
9090dev_health_check :
9191 curl -f https://core.aws.qa.acmuiuc.org/api/v1/healthz && curl -f https://core.aws.qa.acmuiuc.org/
9292
0 commit comments