From af71771bbb7ce92c2162a950a7da014281aa393e Mon Sep 17 00:00:00 2001 From: Lewis Donovan <23400003+lewisdonovan@users.noreply.github.com> Date: Sun, 27 Oct 2024 20:07:25 +0100 Subject: [PATCH] Add --bundleConfigAsCjs flag to ci build step. --- .github/workflows/release.yml | 2 +- package.json | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 7f18962..1f857a6 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -16,7 +16,7 @@ jobs: - name: Install Dependencies run: npm i - name: Build - run: npm run build + run: npm run build:ci - name: Semantic release env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/package.json b/package.json index 856d7db..2bb4000 100644 --- a/package.json +++ b/package.json @@ -18,7 +18,8 @@ "test": "jest", "build:ts": "tsc", "build:rollup": "rollup -c", - "build": "rm -rf ./dist/* && npm run build:ts && npm run build:rollup" + "build": "rm -rf ./dist/* && npm run build:ts && npm run build:rollup", + "build:ci": "rm -rf ./dist/* && npm run build:ts && rollup -c --bundleConfigAsCjs" }, "repository": { "type": "git",