From aec02017f6a01eff136e1d3af3e72321a1a73ce1 Mon Sep 17 00:00:00 2001 From: Jonathan Yu Date: Sun, 20 Feb 2022 17:52:17 +0000 Subject: [PATCH 1/2] chore: install optional dependencies (required for swc) * Use install script in Makefile --- Makefile | 2 +- scripts/yarn_install.sh | 3 --- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/Makefile b/Makefile index 388eb44b6f434..f497ea1c52f74 100644 --- a/Makefile +++ b/Makefile @@ -87,7 +87,7 @@ provisionersdk/proto: provisionersdk/proto/provisioner.proto .PHONY: provisionersdk/proto site/out: - cd site && yarn install + ./scripts/yarn_install.sh cd site && yarn build cd site && yarn export .PHONY: site/out \ No newline at end of file diff --git a/scripts/yarn_install.sh b/scripts/yarn_install.sh index 6cccda2dd5cd3..bb83707661b0d 100755 --- a/scripts/yarn_install.sh +++ b/scripts/yarn_install.sh @@ -18,9 +18,6 @@ yarn_flags=( # Check if existing node_modules are valid # TODO: determine if this is necessary # --check-files - - # Do not install optional dependencies - --ignore-optional ) if [ -n "${CI:-}" ]; then From 9be2ffc968e6a2122cdb5993ab414531a52d90b8 Mon Sep 17 00:00:00 2001 From: Jonathan Yu Date: Sun, 20 Feb 2022 17:58:34 +0000 Subject: [PATCH 2/2] add trailing newline --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index f497ea1c52f74..981c9c4846012 100644 --- a/Makefile +++ b/Makefile @@ -90,4 +90,4 @@ site/out: ./scripts/yarn_install.sh cd site && yarn build cd site && yarn export -.PHONY: site/out \ No newline at end of file +.PHONY: site/out