From a5e884c3baa75b43ddf202ace911b9f2dee23b43 Mon Sep 17 00:00:00 2001 From: Waren Gonzaga Date: Wed, 13 May 2026 00:43:53 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=F0=9F=94=A7=20update:=20switch=20runtime?= =?UTF-8?q?=20to=20node.js=20with=20bun=20as=20build=20toolchain?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/package.yml | 2 +- CONTRIBUTING.md | 4 +++- README.md | 4 +++- bun.lock | 9 +++++++-- package.json | 8 +++++--- tsconfig.json | 2 +- 6 files changed, 20 insertions(+), 9 deletions(-) diff --git a/.github/workflows/package.yml b/.github/workflows/package.yml index e5b3495..023bc7e 100644 --- a/.github/workflows/package.yml +++ b/.github/workflows/package.yml @@ -19,7 +19,7 @@ jobs: - uses: oven-sh/setup-bun@v2 - uses: actions/setup-node@v4 with: - node-version: '20' + node-version: '26' - uses: wgtechlabs/package-build-flow-action@v2.0.1 with: npm-token: ${{ secrets.NPM_TOKEN }} diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 1794234..39f7d6b 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -4,6 +4,7 @@ Thanks for your interest in contributing to **GitHub Labels Template**! Here's h ## Prerequisites +- [Node.js](https://nodejs.org) (latest) - [Bun](https://bun.sh) (v1.0+) - [GitHub CLI](https://cli.github.com) (`gh`) installed and authenticated @@ -19,7 +20,8 @@ bun install ```bash # Run the CLI locally -bun src/index.ts apply --help +bun run build +node dist/index.js apply --help # Build for production bun run build diff --git a/README.md b/README.md index 9139f86..1e9962b 100644 --- a/README.md +++ b/README.md @@ -21,7 +21,7 @@ A CLI tool to apply a curated set of GitHub labels to any repository using `gh` - 📊 **Clear Output**: Structured logging powered by [@wgtechlabs/log-engine](https://github.com/wgtechlabs/log-engine) with color-coded levels and emoji - 🎨 **ASCII Banner**: Beautiful ANSI Shadow figlet banner with version and author info - 🤖 **AI Label Generator**: Generate custom labels using GitHub Copilot — interactive pick, refine, and apply -- 🌐 **Dual Runtime**: Works with both `npx` and `bunx` +- 🌐 **Node Runtime + Bun Toolchain**: Runs on Node.js, built and tested with Bun ## Quick Start @@ -326,6 +326,8 @@ OPTIONS (preview) This project uses the [Bun test framework](https://bun.sh/docs/cli/test) for testing. +Runtime execution uses Node.js (latest recommended). + ```bash # Run all tests bun test diff --git a/bun.lock b/bun.lock index 545a84d..e76b4c8 100644 --- a/bun.lock +++ b/bun.lock @@ -15,6 +15,7 @@ "devDependencies": { "@types/bun": "latest", "@types/figlet": "^1.7.0", + "@types/node": "latest", }, }, }, @@ -71,7 +72,7 @@ "@types/figlet": ["@types/figlet@1.7.0", "", {}, "sha512-KwrT7p/8Eo3Op/HBSIwGXOsTZKYiM9NpWRBJ5sVjWP/SmlS+oxxRvJht/FNAtliJvja44N3ul1yATgohnVBV0Q=="], - "@types/node": ["@types/node@25.3.0", "", { "dependencies": { "undici-types": "~7.18.0" } }, "sha512-4K3bqJpXpqfg2XKGK9bpDTc6xO/xoUP/RBWS7AtRMug6zZFaRekiLzjVtAoZMquxoAbzBvy5nxQ7veS5eYzf8A=="], + "@types/node": ["@types/node@25.7.0", "", { "dependencies": { "undici-types": "~7.21.0" } }, "sha512-z+pdZyxE+RTQE9AcboAZCb4otwcrvgHD+GlBpPgn0emDVt0ohrTMhAwlr2Wd9nZ+nihhYFxO2pThz3C5qSu2Eg=="], "@wgtechlabs/log-engine": ["@wgtechlabs/log-engine@2.3.1", "", {}, "sha512-qYwGef4KjcWpFvfC/e6uum/Q2ICTJbaXBZf+qCDmho1rNZ/umqyeDH3Cvk86e2Jy5TkDFPA+rOcTkmrM1rGKkw=="], @@ -105,10 +106,14 @@ "signal-exit": ["signal-exit@4.1.0", "", {}, "sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw=="], - "undici-types": ["undici-types@7.18.2", "", {}, "sha512-AsuCzffGHJybSaRrmr5eHr81mwJU3kjw6M+uprWvCXiNeN9SOGwQ3Jn8jb8m3Z6izVgknn1R0FTCEAP2QrLY/w=="], + "undici-types": ["undici-types@7.21.0", "", {}, "sha512-w9IMgQrz4O0YN1LtB7K5P63vhlIOvC7opSmouCJ+ZywlPAlO9gIkJ+otk6LvGpAs2wg4econaCz3TvQ9xPoyuQ=="], "vscode-jsonrpc": ["vscode-jsonrpc@8.2.1", "", {}, "sha512-kdjOSJ2lLIn7r1rtrMbbNCHjyMPfRnowdKjBQ+mGq6NAW5QY2bEZC/khaC5OR8svbbjvLEaIXkOq45e2X9BIbQ=="], "zod": ["zod@4.3.6", "", {}, "sha512-rftlrkhHZOcjDwkGlnUtZZkvaPHCsDATp4pGpuOOMDaTdDDXF91wuVDJoWoPsKX/3YPQ5fHuF3STjcYyKr+Qhg=="], + + "bun-types/@types/node": ["@types/node@25.3.0", "", { "dependencies": { "undici-types": "~7.18.0" } }, "sha512-4K3bqJpXpqfg2XKGK9bpDTc6xO/xoUP/RBWS7AtRMug6zZFaRekiLzjVtAoZMquxoAbzBvy5nxQ7veS5eYzf8A=="], + + "bun-types/@types/node/undici-types": ["undici-types@7.18.2", "", {}, "sha512-AsuCzffGHJybSaRrmr5eHr81mwJU3kjw6M+uprWvCXiNeN9SOGwQ3Jn8jb8m3Z6izVgknn1R0FTCEAP2QrLY/w=="], } } diff --git a/package.json b/package.json index 2fca49e..3bcec36 100644 --- a/package.json +++ b/package.json @@ -11,12 +11,13 @@ ], "scripts": { "build": "bun build src/index.ts --outfile dist/index.js --target node --packages external", - "dev": "bun src/index.ts", - "preview": "bun src/index.ts preview", + "dev": "bun run build && node dist/index.js", + "preview": "bun run build && node dist/index.js preview", + "start": "node dist/index.js", "test": "bun test" }, "engines": { - "node": ">=18", + "node": ">=26", "bun": ">=1.0" }, "keywords": [ @@ -41,6 +42,7 @@ "picocolors": "^1.1.1" }, "devDependencies": { + "@types/node": "latest", "@types/bun": "latest", "@types/figlet": "^1.7.0" } diff --git a/tsconfig.json b/tsconfig.json index fbdfaa7..93f3505 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -3,7 +3,7 @@ "target": "ESNext", "module": "ESNext", "moduleResolution": "bundler", - "types": ["bun-types"], + "types": ["node", "bun-types"], "resolveJsonModule": true, "strict": true, "skipLibCheck": true, From e5cbc0002f2ac169544be763781d50e161d0ec53 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Tue, 12 May 2026 16:54:39 +0000 Subject: [PATCH 2/2] =?UTF-8?q?=F0=9F=94=A7=20update:=20align=20runtime=20?= =?UTF-8?q?docs=20and=20start=20workflow?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Agent-Logs-Url: https://github.com/warengonzaga/github-labels-template/sessions/860b269f-378d-438d-abd8-7e81063bb9cf Co-authored-by: warengonzaga <15052701+warengonzaga@users.noreply.github.com> --- .github/workflows/package.yml | 2 +- CONTRIBUTING.md | 2 +- README.md | 4 ++-- bun.lock | 2 +- package.json | 6 +++--- 5 files changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/package.yml b/.github/workflows/package.yml index 023bc7e..c657571 100644 --- a/.github/workflows/package.yml +++ b/.github/workflows/package.yml @@ -19,7 +19,7 @@ jobs: - uses: oven-sh/setup-bun@v2 - uses: actions/setup-node@v4 with: - node-version: '26' + node-version: '25' - uses: wgtechlabs/package-build-flow-action@v2.0.1 with: npm-token: ${{ secrets.NPM_TOKEN }} diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 39f7d6b..ef96a5e 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -4,7 +4,7 @@ Thanks for your interest in contributing to **GitHub Labels Template**! Here's h ## Prerequisites -- [Node.js](https://nodejs.org) (latest) +- [Node.js](https://nodejs.org) (v25+) - [Bun](https://bun.sh) (v1.0+) - [GitHub CLI](https://cli.github.com) (`gh`) installed and authenticated diff --git a/README.md b/README.md index 1e9962b..a0415f1 100644 --- a/README.md +++ b/README.md @@ -29,8 +29,8 @@ A CLI tool to apply a curated set of GitHub labels to any repository using `gh` # Using npx npx github-labels-template apply -# Using bunx -bunx github-labels-template apply +# Using npm exec +npm exec github-labels-template apply ``` That's it. All 23 labels are applied to the current repo. diff --git a/bun.lock b/bun.lock index e76b4c8..6286f02 100644 --- a/bun.lock +++ b/bun.lock @@ -15,7 +15,7 @@ "devDependencies": { "@types/bun": "latest", "@types/figlet": "^1.7.0", - "@types/node": "latest", + "@types/node": "^25.7.0", }, }, }, diff --git a/package.json b/package.json index 3bcec36..9e0bd57 100644 --- a/package.json +++ b/package.json @@ -13,11 +13,11 @@ "build": "bun build src/index.ts --outfile dist/index.js --target node --packages external", "dev": "bun run build && node dist/index.js", "preview": "bun run build && node dist/index.js preview", - "start": "node dist/index.js", + "start": "bun run build && node dist/index.js", "test": "bun test" }, "engines": { - "node": ">=26", + "node": ">=25", "bun": ">=1.0" }, "keywords": [ @@ -42,7 +42,7 @@ "picocolors": "^1.1.1" }, "devDependencies": { - "@types/node": "latest", + "@types/node": "^25.7.0", "@types/bun": "latest", "@types/figlet": "^1.7.0" }