Skip to content

Conversation

@harmony7
Copy link
Member

@harmony7 harmony7 commented Dec 8, 2025

This PR updates the JavaScript source code in the CLI to TypeScript.

  • Updated ESLint for TypeScript, including migrating from .eslintrc.cjs to eslint.config.mjs.
  • Files in /src/rsrc/ were used as resource files during the build and have been moved to /rsrc.
  • All other .js source files in /src are migrated in place to .ts
  • The entry point, js-compute-runtime-cli.js, has been moved to /src/cli/js-compute-runtime-cli.js
  • Set up TypeScript to transpile files in /src to /dist - this is a new build:cli step that is run as part of npm run build and had been added to CI.
  • References to /js-compute-runtime-cli.js have been updated to /dist/cli/js-compute-runtime-cli.js, including package.json and a few tests
  • Grouped some functions that were in separate files but had related roles by moving them together.

The goal of this is for type safety and maintainability, including ease of adding new features.

I've tested that all related tests pass and that the updated package is usable with my projects locally.

I've added LicenseRef-scancode-unicode AND MIT as an allowed license combination pair (needed fortypescript, which is a dev dependency)

@harmony7 harmony7 requested a review from TartanLlama December 8, 2025 10:06
@TartanLlama
Copy link
Contributor

@harmony7
Copy link
Member Author

harmony7 commented Dec 9, 2025

Thanks my bad I missed a step when updating the workflow files. I'll go check them out and fix them

@harmony7 harmony7 force-pushed the kats/typescript branch 4 times, most recently from e4231a3 to 0925ef9 Compare December 9, 2025 10:28
@harmony7 harmony7 force-pushed the kats/typescript branch 2 times, most recently from 807e0dd to 10e67b9 Compare December 9, 2025 10:59
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.

3 participants