Skip to content

Commit acf657c

Browse files
committed
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.
1 parent 78e5fdd commit acf657c

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

64 files changed

+556
-1538
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

action.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,12 @@ runs:
6060
- name: Setup Auggie
6161
run: npm install -g @augmentcode/auggie
6262
shell: bash
63+
- name: Install Action Dependencies
64+
run: npm install --production=false
65+
shell: bash
66+
working-directory: ${{ github.action_path }}
6367
- name: Run Augment Agent
64-
run: node $GITHUB_ACTION_PATH/src/index.js
68+
run: npx tsx $GITHUB_ACTION_PATH/src/index.ts
6569
shell: bash
6670
env:
6771
INPUT_AUGMENT_SESSION_AUTH: ${{ inputs.augment_session_auth }}

0 commit comments

Comments
 (0)