From bc80e6d93da83ec5f6ee0f12d07031d9c4b6188a Mon Sep 17 00:00:00 2001 From: Ryan Christian Date: Sat, 14 Sep 2024 07:07:04 -0500 Subject: [PATCH] chore: Run build prior to running benchmarks --- .github/workflows/ci.yml | 5 +---- package.json | 1 + 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6ace9904..82ebec67 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -21,7 +21,4 @@ jobs: cache: npm - run: npm ci - name: test - # Not using `npm test` since it rebuilds source which npm ci has already done - run: | - npm run build - npm run test + run: npm run test diff --git a/package.json b/package.json index 118fbf6e..1820e823 100644 --- a/package.json +++ b/package.json @@ -37,6 +37,7 @@ "./package.json": "./package.json" }, "scripts": { + "prebench": "npm run build", "bench": "BABEL_ENV=test node -r @babel/register benchmarks index.js", "bench:v8": "BABEL_ENV=test microbundle benchmarks/index.js -f modern --alias benchmarkjs-pretty=benchmarks/lib/benchmark-lite.js --external none --target node --no-compress --no-sourcemap --raw -o benchmarks/.v8.mjs && v8 --module benchmarks/.v8.modern.js", "build": "npm run -s transpile && npm run -s transpile:jsx && npm run -s transpile:stream && npm run -s transpile:stream-node && npm run -s copy-typescript-definition",