From 473229a07d5fc090d3c587a7f3cee3320b93262a Mon Sep 17 00:00:00 2001 From: psibean Date: Sat, 30 Dec 2023 20:40:55 +1030 Subject: [PATCH] build: remove type compilation from workflow --- .github/workflows/build-and-test.yml | 2 +- package.json | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build-and-test.yml b/.github/workflows/build-and-test.yml index e70ef48..bff748c 100644 --- a/.github/workflows/build-and-test.yml +++ b/.github/workflows/build-and-test.yml @@ -59,7 +59,7 @@ jobs: run: npm ci - name: Build - run: npm run build --if-present + run: npm run build:code --if-present - name: Run tests run: npm test \ No newline at end of file diff --git a/package.json b/package.json index a0a492b..5b9af41 100644 --- a/package.json +++ b/package.json @@ -31,7 +31,8 @@ "build:types": "npx tsup src/index.ts --out-dir lib --dts-only --format esm,cjs", "build:cjs": "tsc -p tsconfig.cjs.json && mv ./lib/cjs/index.js ./lib/cjs/index.cjs && cp ./lib/index.d.ts ./lib/index.d.cts", "build:esm": "tsc -p tsconfig.json", - "build": "npm run build:types && npm run build:esm && npm run build:cjs", + "build:code": "npm run build:cjs && npm run build:esm", + "build": "npm run build:types && npm run build:code", "build:clean": "npm run clean && npm run build", "pack": "npm pack", "pack:clean": "rm -rf *.tgz && npm run pack",