Skip to content

Comments

fix: use npx tsx instead of node for TypeScript script execution#412

Merged
pethers merged 2 commits intostricttypingfrom
copilot/sub-pr-407
Feb 21, 2026
Merged

fix: use npx tsx instead of node for TypeScript script execution#412
pethers merged 2 commits intostricttypingfrom
copilot/sub-pr-407

Conversation

Copy link
Contributor

Copilot AI commented Feb 21, 2026

Node.js cannot execute .ts files directly — workflow and documentation references to node scripts/*.ts and node --experimental-strip-types scripts/*.ts were broken without a TypeScript runtime.

Changes

  • update-cia-stats.yml: Replace bare node invocations with npx tsx for load-cia-stats.ts and update-stats-from-cia.ts
  • news-article-generator.md, news-evening-analysis.md, news-realtime-monitor.md: Replace all node scripts/*.ts and node --experimental-strip-types scripts/*.ts examples with npx tsx scripts/*.ts

Before:

node scripts/load-cia-stats.ts
node --experimental-strip-types scripts/extract-news-metadata.ts

After:

npx tsx scripts/load-cia-stats.ts
npx tsx scripts/extract-news-metadata.ts

Removes the implicit Node.js v24+ requirement introduced by --experimental-strip-types, and ensures documentation matches a stable, consistent execution method.


🔒 GitHub Advanced Security automatically protects Copilot coding agent pull requests. You can protect all pull requests by enabling Advanced Security for your repositories. Learn more about Advanced Security.

Copilot AI changed the title [WIP] Add Evening Analysis Content Validator for quality assessment fix: use npx tsx instead of node for TypeScript script execution Feb 21, 2026
Copilot AI requested a review from pethers February 21, 2026 18:41
@pethers pethers marked this pull request as ready for review February 21, 2026 19:11
@pethers pethers merged commit 124a52e into stricttyping Feb 21, 2026
4 checks passed
@github-actions github-actions bot added documentation Documentation updates cia-data CIA platform data integration workflow GitHub Actions workflows ci-cd CI/CD pipeline changes news News articles and content generation agentic-workflow Agentic workflow changes labels Feb 21, 2026
@pethers pethers deleted the copilot/sub-pr-407 branch February 21, 2026 19:11
@github-actions github-actions bot added cia-data CIA platform data integration workflow GitHub Actions workflows ci-cd CI/CD pipeline changes news News articles and content generation agentic-workflow Agentic workflow changes size-s Small change (10-50 lines) labels Feb 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agentic-workflow Agentic workflow changes ci-cd CI/CD pipeline changes cia-data CIA platform data integration documentation Documentation updates news News articles and content generation size-s Small change (10-50 lines) workflow GitHub Actions workflows

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants