From 5ef3f7ec702331bb1bea14cd51a46e48a2a31ca2 Mon Sep 17 00:00:00 2001 From: marcosvega91 Date: Sun, 3 May 2020 08:15:20 +0200 Subject: [PATCH] feat(checkmissintranslations.ts): run script before default ones Run yarn translation:check before yarn start and yarn test --- package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index a199930ee9..b77ab13607 100644 --- a/package.json +++ b/package.json @@ -105,10 +105,10 @@ "scripts": { "analyze": "source-map-explorer 'build/static/js/*.js'", "commit": "npx git-cz", - "start": "react-scripts start", + "start": "yarn translation:check && react-scripts start", "build": "react-scripts build", "prepublishOnly": "npm run build", - "test": "react-scripts test --detectOpenHandles", + "test": "yarn translation:check && react-scripts test --detectOpenHandles", "test:ci": "cross-env CI=true react-scripts test --passWithNoTests", "lint": "eslint \"src/**/*.{js,jsx,ts,tsx}\" \"scripts/**/*.{js,ts}\"", "lint:fix": "eslint \"src/**/*.{js,jsx,ts,tsx}\" \"scripts/**/*.{js,ts}\" --fix",