From f447a91615a92fef942d4b082d294bf048ad35d7 Mon Sep 17 00:00:00 2001 From: Gottfried Chen Date: Wed, 17 Apr 2024 14:30:52 +0200 Subject: [PATCH] fix .drone.yml, add tsc to yarn start --- .drone.yml | 8 +++++--- package.json | 2 +- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/.drone.yml b/.drone.yml index 83a4cc6..0f25100 100644 --- a/.drone.yml +++ b/.drone.yml @@ -102,7 +102,8 @@ pipeline: "docker build (target builder)": group: pre-build <<: *DOCKER_BUILD_SETTINGS_BUILDER - <<: *WHEN_BUILD_EVENT + when: + event: *BUILD_EVENTS # --------------------------------------------------------------------------- # BUILD @@ -111,7 +112,8 @@ pipeline: "docker build (target runner)": group: build <<: *DOCKER_BUILD_SETTINGS_RUNNER - <<: *WHEN_BUILD_EVENT + when: + event: *BUILD_EVENTS # --------------------------------------------------------------------------- # CHECK @@ -134,7 +136,7 @@ pipeline: image: *IMAGE_BUILDER_ID commands: - cd /app - - yarn test:components + - yarn test:ci <<: *WHEN_BUILD_EVENT # --------------------------------------------------------------------------- diff --git a/package.json b/package.json index 81aca30..6500d58 100644 --- a/package.json +++ b/package.json @@ -29,7 +29,7 @@ "zustand": "^4.3.7" }, "scripts": { - "start": "vite", + "start": "vite & tsc --noEmit --watch", "start:clean-cache": "vite --force", "build": "yarn license-check && tsc && vite build --base=./ &&./scripts/check-license-file.sh", "serve": "vite preview",