From c2324ca7e8e37cd23fd369642088f644160d2731 Mon Sep 17 00:00:00 2001 From: Fine0830 Date: Tue, 13 Jun 2023 20:50:37 +0800 Subject: [PATCH] Update package.json --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 6943c984..50a5a987 100644 --- a/package.json +++ b/package.json @@ -15,7 +15,7 @@ "lint:stylelint": "stylelint --cache --fix \"**/*.{vue,less,postcss,css,scss}\" --cache --cache-location node_modules/.cache/stylelint/", "lint:lint-staged": "lint-staged", "prepare": "husky install", - "check-components-types": "if (! -z '$(git diff -U0 ./src/types)'); then echo 'type files are not updated correctly'; git diff -U0 ./src/types; exit 1; fi" + "check-components-types": "if (! -z (git diff -U0 ./src/types) || ''); then echo 'type files are not updated correctly'; git diff -U0 ./src/types; exit 1; fi" }, "dependencies": { "axios": "^0.24.0",