From f5de048e8d2d72f6b33c9ff45a75a143ed75508a Mon Sep 17 00:00:00 2001 From: Anthony Fu Date: Sun, 10 Dec 2023 00:07:41 +0100 Subject: [PATCH] chore: non-suffixed version are actually higher than suffixed --- .github/workflows/ci.yml | 3 --- bump.config.ts | 9 ++------- package.json | 2 -- 3 files changed, 2 insertions(+), 12 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index fb78617..b3bfba5 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -80,8 +80,5 @@ jobs: - name: Install run: nci - - name: Build - run: nr build - - name: Test run: nr test diff --git a/bump.config.ts b/bump.config.ts index be2b1e2..0b384b6 100644 --- a/bump.config.ts +++ b/bump.config.ts @@ -8,9 +8,6 @@ export default defineConfig({ if (!subVersion) subVersion = '0' - if (Number.isNaN(Number(subVersion))) - return - if (mainVersion !== eslintVersion) { mainVersion = eslintVersion subVersion = '0' @@ -18,9 +15,7 @@ export default defineConfig({ else { subVersion = String(Number(subVersion) + 1) } - if (subVersion === '0') - return mainVersion - else - return `${mainVersion}-${subVersion}` + + return `${mainVersion}-${subVersion}` }, }) diff --git a/package.json b/package.json index c2cf134..3c3945a 100644 --- a/package.json +++ b/package.json @@ -32,8 +32,6 @@ "lib" ], "scripts": { - "build": "unbuild", - "dev": "unbuild --stub", "lint": "eslint-ts .", "release": "bumpp && npm publish", "test": "vitest",