Skip to content

refactor: Add TypeScript support#26

Closed
fabiovincenzi wants to merge 175 commits intoG-Research:mainfrom
fabiovincenzi:typescript-setup
Closed

refactor: Add TypeScript support#26
fabiovincenzi wants to merge 175 commits intoG-Research:mainfrom
fabiovincenzi:typescript-setup

Conversation

@fabiovincenzi
Copy link
Collaborator

Overview
This PR introduces TypeScript to git-proxy and refactors relevant code to support it.

Changelog

  • Added TypeScript configuration (tsconfig.json) with essential settings for strict type checking, ES6 compatibility, and JSX support.
  • Added typescript and ts-node to manage TypeScript code compilation and execution.
  • Updated the package.json to include TypeScript dependencies.
  • Converted the main entry file from JavaScript (index.js) to TypeScript (index.ts).
  • Modified the start script to use ts-node for running TypeScript files.

@fabiovincenzi fabiovincenzi self-assigned this Feb 17, 2025
@fabiovincenzi fabiovincenzi linked an issue Feb 17, 2025 that may be closed by this pull request
3 tasks
@06kellyjac
Copy link

Should be fine to adopt this upstream if you're happy to open a PR.
We might want to double check we build out the right files for publishing but otherwise looks good.
A good pre-req for the db refactor & best to bring this in ahead of that :)

@fabiovincenzi
Copy link
Collaborator Author

Should be fine to adopt this upstream if you're happy to open a PR. We might want to double check we build out the right files for publishing but otherwise looks good. A good pre-req for the db refactor & best to bring this in ahead of that :)

Thanks for the review @06kellyjac !
Yes, I'll open a PR on the upstream then we can go ahead with db refactor.

@codecov-commenter
Copy link

Welcome to Codecov 🎉

Once you merge this PR into your default branch, you're all set! Codecov will compare coverage reports and display results in all future pull requests.

Thanks for integrating Codecov - We've got you covered ☂️

@fabiovincenzi fabiovincenzi changed the title Add TypeScript support refactor: Add TypeScript support Mar 10, 2025
renovate bot and others added 28 commits July 1, 2025 16:09
…github-actions

chore(deps): update dependency node to v22 - workflows - .github/workflows/unused-dependencies.yml
chore(deps): update dependency sinon to v20 - - package.json
fix(deps): update dependency eslint to ^9.30.1 - website - website/package.json
fix(deps): update npm - li-cli - experimental/li-cli/package.json
chore(deps): update dependency sinon to v21 - - package.json
…tory - experimental/license-inventory/docker-compose.yaml
…ajor-12-docker-compose

chore(deps): update grafana/grafana docker tag to v12 - license-inventory - experimental/license-inventory/docker-compose.yaml
fix(deps): update dependency body-parser to v2 - - package.json
- allow for the setting of configuration for MongoDB database
  connection string as well as cookie secret via environment
  variables as an alternative to JSON-based configuration

Useful in environments that split config between secrets (ie.
stored in a secret manager) and plain app configurations such
as commitConfig, attestation, etc. that may not be considered
sensitive & wouldn't be appropriate in a secret manager.
Signed-off-by: Fabio Vincenzi <93596376+fabiovincenzi@users.noreply.github.com>
fix(proxy): preserve original Git pack POST streams before validation
feat: mongo connection string & cookie secret from env vars
fix(deps): update dependency zod to ^3.25.73 - li-cli - experimental/li-cli/package.json
@fabiovincenzi fabiovincenzi closed this by deleting the head repository Aug 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants