From 9c79105c0298d96efd0d0af30a1f40c3450f819e Mon Sep 17 00:00:00 2001 From: Oleg Lobanov Date: Sun, 14 Mar 2021 19:59:55 +0100 Subject: [PATCH] chore: prevent deleting .gitignore from dist folder --- frontend/package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/package.json b/frontend/package.json index 4de1f63e..736877da 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -4,8 +4,8 @@ "private": true, "scripts": { "serve": "vue-cli-service serve", - "build": "vue-cli-service build", - "watch": "vue-cli-service build --watch", + "build": "find ./dist -maxdepth 1 -mindepth 1 ! -name '.gitignore' -exec rm -r {} + && vue-cli-service build --no-clean", + "watch": "find ./dist -maxdepth 1 -mindepth 1 ! -name '.gitignore' -exec rm -r {} + && vue-cli-service build --watch --no-clean", "lint": "vue-cli-service lint --fix" }, "dependencies": {