From e2e0d62560dc8348e3af70bc63701564b40252a7 Mon Sep 17 00:00:00 2001 From: garronej Date: Sun, 11 Sep 2022 01:53:56 +0200 Subject: [PATCH] Cleaner npm scripts --- .github/workflows/ci.yaml | 2 -- package.json | 3 ++- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index ce3b4939..ef5d2ab9 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -45,11 +45,9 @@ jobs: - uses: bahmutov/npm-install@v1 - if: steps.step1.outputs.npm_or_yarn == 'yarn' run: | - yarn build yarn test - if: steps.step1.outputs.npm_or_yarn == 'npm' run: | - npm run build npm test check_if_version_upgraded: name: Check if version upgrade diff --git a/package.json b/package.json index 0a155a61..7f9ec9cb 100755 --- a/package.json +++ b/package.json @@ -13,7 +13,8 @@ "build:test": "rimraf dist_test/ && tsc -p src/test && yarn copy-files dist_test/", "grant-exec-perms": "node dist/bin/tools/grant-exec-perms.js", "copy-files": "copyfiles -u 1 src/**/*.ftl", - "test": "yarn build:test && node dist_test/test/bin && node dist_test/test/lib", + "pretest": "yarn build:test", + "test": "node dist_test/test/bin && node dist_test/test/lib", "generate-messages": "node dist/bin/generate-i18n-messages.js", "link_in_test_app": "node dist/bin/link_in_test_app.js", "_format": "prettier '**/*.{ts,tsx,json,md}'",