From 1fc9df6edf06c0dc093a6143910f05a53f6aaaf0 Mon Sep 17 00:00:00 2001 From: Alessia Bellisario Date: Thu, 21 Sep 2023 14:55:07 -0700 Subject: [PATCH] chore: updates extract-api script to build library first --- .github/workflows/api-extractor.yml | 4 +--- package.json | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/.github/workflows/api-extractor.yml b/.github/workflows/api-extractor.yml index 5b232f45133..e8d0f5b06d6 100644 --- a/.github/workflows/api-extractor.yml +++ b/.github/workflows/api-extractor.yml @@ -19,8 +19,6 @@ jobs: - name: Install dependencies (with cache) uses: bahmutov/npm-install@v1 - - name: Run build - run: npm run build - + # Builds the library and runs the api extractor - name: Run Api-Extractor run: npm run extract-api diff --git a/package.json b/package.json index 831ed6e9419..dda56091ebd 100644 --- a/package.json +++ b/package.json @@ -42,7 +42,7 @@ "prepdist": "node ./config/prepareDist.js", "prepdist:changesets": "ts-node-script config/prepareChangesetsRelease.ts", "postprocess-dist": "ts-node-script config/postprocessDist.ts", - "extract-api": "ts-node-script config/apiExtractor.ts", + "extract-api": "npm run build && ts-node-script config/apiExtractor.ts", "clean": "rimraf dist coverage lib temp", "check:format": "prettier --check .", "ci:precheck": "node config/precheck.js",