From bf0dab2e3ba97842f6ca7f943e00224299a6b0a4 Mon Sep 17 00:00:00 2001 From: SWARVY Date: Mon, 29 Jul 2024 15:06:22 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20dist=20=EB=94=94=EB=A0=89=ED=86=A0?= =?UTF-8?q?=EB=A6=AC=EA=B0=80=20=EC=A1=B4=EC=9E=AC=ED=95=98=EC=A7=80=20?= =?UTF-8?q?=EC=95=8A=EC=9D=84=20=EB=95=8C=EC=97=90=EB=8F=84=20=EB=B9=8C?= =?UTF-8?q?=EB=93=9C=20=EB=AA=85=EB=A0=B9=EC=96=B4=EB=A5=BC=20=EC=88=98?= =?UTF-8?q?=ED=96=89=ED=95=98=EB=8F=84=EB=A1=9D=20=EB=B3=80=EA=B2=BD,=20EO?= =?UTF-8?q?L=20=EC=88=98=EC=A0=95=20(#ATR-588)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/design-system/build.bash | 6 +++++- packages/icons/build.bash | 2 +- packages/icons/renew.bash | 2 +- packages/utils/build.bash | 6 +++++- packages/utils/tsconfig.json | 2 +- 5 files changed, 13 insertions(+), 5 deletions(-) diff --git a/packages/design-system/build.bash b/packages/design-system/build.bash index d58f16e6..e542fa42 100755 --- a/packages/design-system/build.bash +++ b/packages/design-system/build.bash @@ -2,6 +2,7 @@ SRC_DIR="src" CHECKSUM_FILE="src_checksums.txt" +DIST_DIR="dist" generate_checksums() { local dir_path="$1" @@ -45,7 +46,10 @@ fi if [ "$build_needed" = true ]; then echo "[📚design-system] A file change in the directory was detected. The build has started." tsup +elif [ ! -d "$DIST_DIR" ] || [ ! "$(ls -A $DIST_DIR)" ]; then + echo "[📚design-system] The build file does not exist. The build has started." + tsup else echo "[📚design-system] No file changes were detected at the directory. The build has cancelled." exit 0 -fi \ No newline at end of file +fi diff --git a/packages/icons/build.bash b/packages/icons/build.bash index ad5d1c89..da8b7523 100755 --- a/packages/icons/build.bash +++ b/packages/icons/build.bash @@ -6,4 +6,4 @@ if [ -n "$(find "$DIR_PATH" -type f -print -quit)" ]; then else echo "[🔮icons] Build directory isn't exist. Build command executed" tsup -fi \ No newline at end of file +fi diff --git a/packages/icons/renew.bash b/packages/icons/renew.bash index 9c305e2e..c7adc1f0 100755 --- a/packages/icons/renew.bash +++ b/packages/icons/renew.bash @@ -34,4 +34,4 @@ if [ "$renew_needed" = true ]; then else echo "[🔮icons] SVG Component is up to date. SVG component creation is cancelled." exit 0 -fi \ No newline at end of file +fi diff --git a/packages/utils/build.bash b/packages/utils/build.bash index ae7ea95a..0f1803b7 100755 --- a/packages/utils/build.bash +++ b/packages/utils/build.bash @@ -2,6 +2,7 @@ SRC_DIR="src" CHECKSUM_FILE="src_checksums.txt" +DIST_DIR="dist" generate_checksums() { local dir_path="$1" @@ -43,7 +44,10 @@ if [ "$src_changed" -eq 1 ]; then fi if [ "$build_needed" = true ]; then - echo "[⚙️utils] A file change in the directory was detected. The build has started." + echo "[📚design-system] A file change in the directory was detected. The build has started." + tsup +elif [ ! -d "$DIST_DIR" ] || [ ! "$(ls -A $DIST_DIR)" ]; then + echo "[📚design-system] The build file does not exist. The build has started." tsup else echo "[⚙️utils] No file changes were detected at the directory. The build has cancelled." diff --git a/packages/utils/tsconfig.json b/packages/utils/tsconfig.json index 8b727673..c5c53204 100644 --- a/packages/utils/tsconfig.json +++ b/packages/utils/tsconfig.json @@ -5,4 +5,4 @@ "moduleResolution": "bundler", "jsx": "preserve", } -} \ No newline at end of file +}