diff --git a/package.json b/package.json index b62e44797..4263ecaab 100644 --- a/package.json +++ b/package.json @@ -164,7 +164,7 @@ }, "scripts": { "build": "webpack -p", - "extract-json-messages": "babel src 'src/**/*.{ts,tsx}' -o build/dashboard.bundle.js", + "extract-json-messages": "rimraf build/locale && babel src 'src/**/*.{ts,tsx}' -o build/dashboard.bundle.js", "extract-pot-messages": "rip json2pot \"build/locale/**/*.json\" -c description -o locale/messages.pot", "extract-messages": "npm run extract-json-messages && npm run extract-pot-messages", "build-messages": "rip po2json 'locale/**/*.po' -m 'build/locale/**/*.json' -o 'locale' -c 'description'", @@ -178,4 +178,4 @@ "test": "jest src/", "test-e2e": "testcafe 'chrome:headless' .testcafe" } -} +} \ No newline at end of file