From 7846f07288566567e86c3bca4a2d94f62a60a868 Mon Sep 17 00:00:00 2001 From: Alex Marshall Date: Wed, 26 Jul 2023 14:23:55 +0100 Subject: [PATCH] feat(package.json): update preserve command to run migrations first the helm tool now requires the datase tables to exist before running SXT-1015 Signed-off-by: Alex Marshall --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 71abd6e5..cc522bd0 100644 --- a/package.json +++ b/package.json @@ -11,7 +11,7 @@ "download-helm-charts": "if [ -r dist/src/download-helm-charts.js ]; then node dist/src/download-helm-charts.js; else node src/download-helm-charts.js; fi", "copy-helm-fixtures": "tar -xf ./test/fixtures/helmCharts.tar.gz -C .", "remove-helm-fixtures": "rm -rf ./helmCharts/*", - "preserve": "npm run download-helm-charts && npm run migrate", + "preserve": " npm run migrate && npm run download-helm-charts", "serve": "if [ -r dist/src/index.js ]; then node dist/src/index.js ; else node src/index.js; fi", "generate-swagger": "node src/generateSwagger.js", "pretest": "npm run copy-helm-fixtures",