From c552851efc41dfa3aa90001ae325e6ac2b9acf09 Mon Sep 17 00:00:00 2001 From: Eric Schultz Date: Fri, 7 Sep 2018 13:26:01 -0500 Subject: [PATCH] Delete the generated API files before regenerating --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 7bdacef5..79a70d9e 100644 --- a/package.json +++ b/package.json @@ -14,7 +14,7 @@ "export-i18n": "bundle exec rake settings:combine_translations", "generate-openapi": "rake oapi:gen", "get-codegen-cli": "script/download_codegen_cli.sh", - "generate-api-js": "npm run get-codegen-cli && npm run generate-openapi && java -jar .bin/swagger-codegen-cli.jar generate -l 'typescript-jquery' -i tmp/openapi.json -o javascripts/api -t lib/swagger-typescript-jquery" + "generate-api-js": "rm -rf javascripts/api && npm run get-codegen-cli && npm run generate-openapi && java -jar .bin/swagger-codegen-cli.jar generate -l 'typescript-jquery' -i tmp/openapi.json -o javascripts/api -t lib/swagger-typescript-jquery" }, "devDependencies": { "@types/enzyme": "^3.1.9",