From 104aa5c41de4c7af9c0f550ae08dac8f3d804e99 Mon Sep 17 00:00:00 2001 From: Arthaud Date: Thu, 19 Oct 2023 09:55:43 +0200 Subject: [PATCH] fix: build type --- .github/workflows/build-on-main.yml | 3 ++- package.json | 2 +- resources/js/Components/TextInput.vue | 4 ++-- resources/js/Components/TextareaInput.vue | 4 ++-- 4 files changed, 7 insertions(+), 6 deletions(-) diff --git a/.github/workflows/build-on-main.yml b/.github/workflows/build-on-main.yml index 489d6f8..36924bb 100644 --- a/.github/workflows/build-on-main.yml +++ b/.github/workflows/build-on-main.yml @@ -2,7 +2,7 @@ name: Build on main on: push: - branches: ["main"] + branches: ["main", "fix/ci"] jobs: build: @@ -18,6 +18,7 @@ jobs: git config user.email github-actions@github.com git config push.default current git checkout -b release/main + php artisan typescript:transform npm run build git add --force public/build git commit -m "build" diff --git a/package.json b/package.json index f07cec6..0b7eac5 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,7 @@ "scripts": { "types": "./vendor/bin/sail artisan typescript:transform", "dev": "npm run types && vite", - "build": "npm run types && vue-tsc && vite build", + "build": "vue-tsc && vite build", "setup": "./setup.sh", "sail": "./vendor/bin/sail up -d" }, diff --git a/resources/js/Components/TextInput.vue b/resources/js/Components/TextInput.vue index feb6b8b..cffb3d7 100644 --- a/resources/js/Components/TextInput.vue +++ b/resources/js/Components/TextInput.vue @@ -6,7 +6,7 @@ defineProps<{ }>(); const emit = defineEmits<{ - 'update:modelValue': string + 'update:modelValue': [value: string] }>(); const input = ref(null); @@ -17,7 +17,7 @@ onMounted(() => { } }); -function handleInput(e: InputEvent) { +function handleInput(e: Event) { emit('update:modelValue', (e.target as HTMLInputElement).value) } diff --git a/resources/js/Components/TextareaInput.vue b/resources/js/Components/TextareaInput.vue index 29662ab..cdfff14 100644 --- a/resources/js/Components/TextareaInput.vue +++ b/resources/js/Components/TextareaInput.vue @@ -6,7 +6,7 @@ defineProps<{ }>(); const emit = defineEmits<{ - 'update:modelValue': string + 'update:modelValue': [value: string] }>(); const input = ref(null); @@ -17,7 +17,7 @@ onMounted(() => { } }); -function handleInput(e: InputEvent) { +function handleInput(e: Event) { emit('update:modelValue', (e.target as HTMLTextAreaElement).value) }