Repository navigation
Conversation
added 4 commits
January 2, 2026 00:08
- Convert project from JavaScript to TypeScript - Add tsconfig to initialise the TypeScript environment - Modularise the codebase for future feature expansion - Refactor generator.ts to use functions instead of class methods - Add TypeScript types and interfaces to describe the schema - Update AJV schema to explicitly declare nullable fields - Introduce index.ts as the new application entry point
… easier future configuration - Change tsconfig.json module to 'esnext' to support newer json import syntax - Add generate:schema scripts in package.json and integrate into build script - Switch AJV validator interface to AnySchema for higher flexiblity with schema
- Integrate 'compile:schema' script into build pipeline for automated schema generation - Remove git tracking from generated validator and schema files - Remove runtime compile step from generate.ts to optimise performance - Enable code generation options in AJV configuration for standalone use
This branch has not been deployed
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 migrates the CLI portion of the project from JS to TS to improve type safety, developer experience, and support future expansion.
Key Changes
tsconfig.jsonwith strict mode enabled./srcfrom.jsto.ts.generate:schemaandcompile:schemainto the build pipeline to automate schema generation.index.tsas the new entry point for the CLI.generator.tsfrom a class-based implementation to a functional approach.Notes
Related to #5