Repository navigation
Conversation
Set up the tooling for moving the validation logic into this repository: esbuild bundling, strict TypeScript, Vitest, ESLint and Prettier, a CI workflow and npm updates through Dependabot. The entry point is a placeholder, and action.yml still runs the Docker image. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Uy8sjiJDFtdc39e6CDBUN4
Add save-exact to .npmrc so later installs pin as well. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Uy8sjiJDFtdc39e6CDBUN4
There was a problem hiding this comment.
🟢 Approval recommended
The infrastructure scaffold is internally consistent, leaves the existing runtime unchanged, and has no identified blocking issues.
0 open findings
What changed in this PR
Adds TypeScript development infrastructure for the HACS action without changing the existing action runtime.
Changes:
- Adds a placeholder entry point and Node.js 24 ESM bundling.
- Configures type checking, linting, formatting, and test tooling.
- Adds CI checks, pinned dependencies, and npm Dependabot updates.
| File | Description |
|---|---|
| tsconfig.json | Enables strict TypeScript checking. |
| src/main.ts | Adds a placeholder entry point. |
| scripts/build.mjs | Bundles ESM with CommonJS compatibility. |
| package.json | Defines dependencies and development commands. |
| package-lock.json | Locks dependency resolutions. |
| eslint.config.mjs | Configures JavaScript and TypeScript linting. |
| .npmrc | Saves exact dependency versions. |
| .gitignore | Excludes dependencies and build output. |
| .github/workflows/ci.yml | Runs checks and builds on main pushes and PRs. |
| .github/dependabot.yml | Adds daily npm dependency updates. |
🧠 Review effort: Balanced
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR establishes the foundational project structure and tooling for the HACS action, converting it to a TypeScript-based implementation with a complete development and CI/CD pipeline.
Key Changes
.github/workflows/ci.yml) that runs linting, formatting checks, type checking, tests, and builds on every push and pull request to maintsconfig.jsonwith strict type checking enabled and ES2024 as the targetscripts/build.mjs) that compiles TypeScript to ESM with CommonJS compatibility shimpackage.jsonwith all necessary dependencies and npm scripts for development workflow.npmrcto enforce exact dependency versionssrc/main.tsentry point using@actions/core.gitignoreto excludenode_modules/anddist/directoriesNotable Implementation Details
createRequireto support CommonJS dependencies in ESM output