From 84262b252c64aff6674fc88d8b8a2df490d2bb4f Mon Sep 17 00:00:00 2001 From: Justin Xu Date: Wed, 8 Oct 2025 22:13:59 +0000 Subject: [PATCH] Replace Bun with Node.js - Replace bun with npm/node in package.json scripts - Update RELEASE.md to reference npm commands throughout - Remove bun.lock and add package-lock.json - Remove bun engine requirement from package.json This change improves compatibility with standard Node.js tooling and aligns with the augment-agent repository changes. --- RELEASE.md | 12 ++++++------ bun.lock | 14 -------------- package-lock.json | 35 +++++++++++++++++++++++++++++++++++ package.json | 5 ++--- 4 files changed, 43 insertions(+), 23 deletions(-) delete mode 100644 bun.lock create mode 100644 package-lock.json diff --git a/RELEASE.md b/RELEASE.md index ef10240..9e078b4 100644 --- a/RELEASE.md +++ b/RELEASE.md @@ -8,13 +8,13 @@ Use the built-in npm scripts for easy version bumping: ```bash # For patch releases (bug fixes): 0.1.0 -> 0.1.1 -bun run version:patch +npm run version:patch # For minor releases (new features): 0.1.0 -> 0.2.0 -bun run version:minor +npm run version:minor # For major releases (breaking changes): 0.1.0 -> 1.0.0 -bun run version:major +npm run version:major ``` These scripts will: @@ -31,13 +31,13 @@ If you prefer manual control: 1. **Update the version in package.json:** ```bash - bun version 0.1.1 # or whatever version you want + npm version 0.1.1 # or whatever version you want ``` 2. **Type check the project:** ```bash - bun run typecheck + npm run typecheck ``` 3. **Commit the changes:** @@ -93,7 +93,7 @@ This allows users to pin to major versions for automatic updates: **Type check failures:** -- Run `bun run typecheck` locally to check for TypeScript errors +- Run `npm run typecheck` locally to check for TypeScript errors - Ensure all dependencies are properly installed **Release not created:** diff --git a/bun.lock b/bun.lock deleted file mode 100644 index 157884d..0000000 --- a/bun.lock +++ /dev/null @@ -1,14 +0,0 @@ -{ - "lockfileVersion": 1, - "workspaces": { - "": { - "name": "augment-review-pr", - "devDependencies": { - "prettier": "^3.6.2", - }, - }, - }, - "packages": { - "prettier": ["prettier@3.6.2", "", { "bin": { "prettier": "bin/prettier.cjs" } }, "sha512-I7AIg5boAr5R0FFtJ6rCfD+LFsWHp81dolrFD8S79U9tb8Az2nGrJncnMSnys+bpQJfRUzqs9hnA81OAA3hCuQ=="], - } -} diff --git a/package-lock.json b/package-lock.json new file mode 100644 index 0000000..721e8ea --- /dev/null +++ b/package-lock.json @@ -0,0 +1,35 @@ +{ + "name": "augment-review-pr", + "version": "0.1.4", + "lockfileVersion": 3, + "requires": true, + "packages": { + "": { + "name": "augment-review-pr", + "version": "0.1.4", + "license": "MIT", + "devDependencies": { + "prettier": "^3.6.2" + }, + "engines": { + "node": ">=22.0.0" + } + }, + "node_modules/prettier": { + "version": "3.6.2", + "resolved": "https://registry.npmjs.org/prettier/-/prettier-3.6.2.tgz", + "integrity": "sha512-I7AIg5boAr5R0FFtJ6rCfD+LFsWHp81dolrFD8S79U9tb8Az2nGrJncnMSnys+bpQJfRUzqs9hnA81OAA3hCuQ==", + "dev": true, + "license": "MIT", + "bin": { + "prettier": "bin/prettier.cjs" + }, + "engines": { + "node": ">=14" + }, + "funding": { + "url": "https://github.com/prettier/prettier?sponsor=1" + } + } + } +} diff --git a/package.json b/package.json index f7a1607..fd63f6a 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,7 @@ "main": "action.yml", "type": "module", "scripts": { - "test": "bun test", + "test": "node --test", "format": "prettier --write .", "format:check": "prettier --check .", "format:staged": "prettier --write --cache --ignore-unknown", @@ -36,8 +36,7 @@ }, "homepage": "https://github.com/augmentcode/review-pr#readme", "engines": { - "node": ">=22.0.0", - "bun": ">=1.0.0" + "node": ">=22.0.0" }, "files": [ "action.yml",