Skip to content

Commit 4039b30

Browse files
authored
Replace bun with Node.js (#9)
* Replace bun with Node.js (part 1) - Update package.json scripts to use npm/node instead of bun - Change shebang in src/index.ts from bun to node - Add build script to compile TypeScript to JavaScript - Update action.yml to run compiled .js files instead of .ts - Remove bun.lock and add package-lock.json - Update RELEASE.md documentation to reference npm - Remove bun engine requirement from package.json - Include compiled JavaScript files for GitHub Actions execution Note: Workflow files will be updated in a follow-up commit Addresses AU-14631 * Use tsx to run TypeScript directly, remove compiled files - Add tsx as dev dependency to run TypeScript without compilation - Update action.yml to use 'npx tsx' instead of 'node' - Add step to install action dependencies in action.yml - Remove all compiled .js, .d.ts, .js.map, .d.ts.map files from src/ - Add compiled files to .gitignore - Remove build script from package.json (no longer needed) This approach is cleaner as we don't need to commit compiled files. Note: Workflow files still need to be updated separately due to OAuth scope limitations. * fix import syntax
1 parent 3fbe40c commit 4039b30

File tree

8 files changed

+971
-111
lines changed

8 files changed

+971
-111
lines changed

.gitignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,12 @@ yarn-error.log*
77
# TypeScript build info (but keep dist/ for GitHub Actions)
88
*.tsbuildinfo
99

10+
# TypeScript compiled output in src/ (we use tsx to run directly)
11+
src/**/*.js
12+
src/**/*.d.ts
13+
src/**/*.js.map
14+
src/**/*.d.ts.map
15+
1016
# Test coverage
1117
coverage/
1218

RELEASE.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,13 @@ Use the built-in npm scripts for easy version bumping:
88

99
```bash
1010
# For patch releases (bug fixes): 0.1.0 -> 0.1.1
11-
bun run version:patch
11+
npm run version:patch
1212

1313
# For minor releases (new features): 0.1.0 -> 0.2.0
14-
bun run version:minor
14+
npm run version:minor
1515

1616
# For major releases (breaking changes): 0.1.0 -> 1.0.0
17-
bun run version:major
17+
npm run version:major
1818
```
1919

2020
These scripts will:
@@ -31,13 +31,13 @@ If you prefer manual control:
3131
1. **Update the version in package.json:**
3232

3333
```bash
34-
bun version 0.1.1 # or whatever version you want
34+
npm version 0.1.1 # or whatever version you want
3535
```
3636

3737
2. **Type check the project:**
3838

3939
```bash
40-
bun run typecheck
40+
npm run typecheck
4141
```
4242

4343
3. **Commit the changes:**
@@ -93,7 +93,7 @@ This allows users to pin to major versions for automatic updates:
9393

9494
**Type check failures:**
9595

96-
- Run `bun run typecheck` locally to check for TypeScript errors
96+
- Run `npm run typecheck` locally to check for TypeScript errors
9797
- Ensure all dependencies are properly installed
9898

9999
**Release not created:**

action.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -60,12 +60,12 @@ runs:
6060
- name: Setup Auggie
6161
run: npm install -g @augmentcode/auggie
6262
shell: bash
63-
- name: Setup Bun
64-
uses: oven-sh/setup-bun@735343b667d3e6f658f44d0eca948eb6282f2b76 # v2.0.2
65-
with:
66-
bun-version: latest
63+
- name: Install Action Dependencies
64+
run: npm install --production=false
65+
shell: bash
66+
working-directory: ${{ github.action_path }}
6767
- name: Run Augment Agent
68-
run: bun run $GITHUB_ACTION_PATH/src/index.ts
68+
run: npx tsx $GITHUB_ACTION_PATH/src/index.ts
6969
shell: bash
7070
env:
7171
INPUT_AUGMENT_SESSION_AUTH: ${{ inputs.augment_session_auth }}

bun.lock

Lines changed: 0 additions & 92 deletions
This file was deleted.

0 commit comments

Comments
 (0)