From 65e730daa0f24dcd7a2b253edef736928ded383a Mon Sep 17 00:00:00 2001 From: kittimzhe Date: Mon, 21 Sep 2026 13:09:53 +0800 Subject: [PATCH 1/3] ci: verify bundle output and npm pack contents --- .github/workflows/test.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 9127b22..54b078e 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -20,3 +20,5 @@ jobs: - run: npm ci - run: npm run typecheck - run: npm test + - run: npm run bundle + - run: npm pack --dry-run From 518d702bec95cbe0f884117b3909800daf8698e9 Mon Sep 17 00:00:00 2001 From: kittimzhe Date: Mon, 21 Sep 2026 13:13:59 +0800 Subject: [PATCH 2/3] ci: add unrun devDependency for tsdown config loading on Node 20 --- package-lock.json | 28 ++++++++++++++++++++++++++++ package.json | 1 + 2 files changed, 29 insertions(+) diff --git a/package-lock.json b/package-lock.json index 03d1c09..a3f417b 100644 --- a/package-lock.json +++ b/package-lock.json @@ -22,6 +22,7 @@ "@types/node": "^26.2.0", "tsdown": "^0.22.14", "typescript": "^7.0.2", + "unrun": "^0.3.1", "vitest": "^4.1.11" }, "peerDependencies": { @@ -2299,6 +2300,33 @@ "dev": true, "license": "MIT" }, + "node_modules/unrun": { + "version": "0.3.1", + "resolved": "https://registry.npmjs.org/unrun/-/unrun-0.3.1.tgz", + "integrity": "sha512-onIck/oNnCaytwths1ZVp1LK2Gq2hPoyFhiHebObuUXqR3S0uHuLLaBK8K6mRRgV7Ptip8AnNvaUsgzwWwBZuA==", + "dev": true, + "license": "MIT", + "dependencies": { + "rolldown": "^1.0.0" + }, + "bin": { + "unrun": "dist/cli.mjs" + }, + "engines": { + "node": "^22.13.0 || >=24.0.0" + }, + "funding": { + "url": "https://github.com/sponsors/Gugustinette" + }, + "peerDependencies": { + "synckit": "^0.11.11" + }, + "peerDependenciesMeta": { + "synckit": { + "optional": true + } + } + }, "node_modules/verkit": { "version": "0.3.2", "resolved": "https://registry.npmjs.org/verkit/-/verkit-0.3.2.tgz", diff --git a/package.json b/package.json index 4a83ae6..6e62195 100644 --- a/package.json +++ b/package.json @@ -67,6 +67,7 @@ "@types/node": "^26.2.0", "tsdown": "^0.22.14", "typescript": "^7.0.2", + "unrun": "^0.3.1", "vitest": "^4.1.11" }, "scripts": { From 1844099a513b91021e26b450391bca39a74ede5e Mon Sep 17 00:00:00 2001 From: kittimzhe Date: Mon, 21 Sep 2026 13:17:24 +0800 Subject: [PATCH 3/3] ci: run packaging checks on Node 22 only (toolchain requires Promise.withResolvers) --- .github/workflows/test.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 54b078e..e9cc82d 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -20,5 +20,10 @@ jobs: - run: npm ci - run: npm run typecheck - run: npm test + # Packaging checks on Node 22 only: the tsdown config loader (unrun) + # requires Promise.withResolvers (Node 22+). Node 20 compatibility is + # verified by typecheck + tests above. - run: npm run bundle + if: matrix.node == 22 - run: npm pack --dry-run + if: matrix.node == 22