Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Dec 3, 2025

awf --version was hardcoded to 0.1.0 instead of reading from package.json.

  • Import version directly from package.json using TypeScript's resolveJsonModule
  • Replace hardcoded version string with imported value
import { version } from '../package.json';

program
  .name('awf')
  .version(version)  // was: .version('0.1.0')
Original prompt

awf --version still shows v0.1.0. This should match the version in the package.json


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Copilot AI changed the title [WIP] Fix version mismatch in awf command line tool fix: use version from package.json in cli Dec 3, 2025
Copilot finished work on behalf of Mossaka December 3, 2025 22:36
Copilot AI requested a review from Mossaka December 3, 2025 22:36
@Mossaka Mossaka marked this pull request as ready for review December 4, 2025 22:12
@github-actions
Copy link

github-actions bot commented Dec 4, 2025

Test Coverage Report

Metric Coverage Covered/Total
Lines 67.24% 696/1035
Statements 67.38% 717/1064
Functions 70.24% 85/121
Branches 62.46% 228/365
Coverage Thresholds

The project has the following coverage thresholds configured:

  • Lines: 38%
  • Statements: 38%
  • Functions: 35%
  • Branches: 30%

Coverage report generated by `npm run test:coverage`

@Mossaka Mossaka merged commit a2c5d48 into main Dec 4, 2025
13 checks passed
@Mossaka Mossaka deleted the copilot/fix-version-in-awf branch December 4, 2025 22:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants