Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Consolidate tsconfig files #2136

Closed
wants to merge 1 commit into from
Closed

Consolidate tsconfig files #2136

wants to merge 1 commit into from

Conversation

QuentinGruber
Copy link
Owner

@QuentinGruber QuentinGruber commented Sep 19, 2024

Consolidate multiple tsconfig files into a single tsconfig.json file in the root directory.

  • Update tsconfig.json

    • Update target to ES2023
    • Update module to Node16
    • Update moduleResolution to Node16
    • Add allowJs set to true
    • Add paths configuration with @h1z1-server/* mapped to ../*
    • Add include configuration with src/ and tests/
    • Add exclude configuration with node_modules/, out/, tests_out/, benchmarks_out/, bin/*.exe, .vs/, config.yaml
  • Update package.json scripts

    • Update build-login-2015, build-login-2016, build-zone-2015, build-zone-2016, build-tests, and build-benchs scripts to use tsconfig.json
  • Remove redundant tsconfig files

    • Delete tsconfigs/tsconfig-2015-login.json
    • Delete tsconfigs/tsconfig-2015-zone.json
    • Delete tsconfigs/tsconfig-2015.json
    • Delete tsconfigs/tsconfig-2016-login.json
    • Delete tsconfigs/tsconfig-2016-zone.json
    • Delete tsconfigs/tsconfig-2016.json
    • Delete tsconfigs/tsconfig-tests.json

For more details, open the Copilot Workspace session.

Consolidate multiple `tsconfig` files into a single `tsconfig.json` file in the root directory.

* **Update tsconfig.json**
  - Update `target` to `ES2023`
  - Update `module` to `Node16`
  - Update `moduleResolution` to `Node16`
  - Add `allowJs` set to `true`
  - Add `paths` configuration with `@h1z1-server/*` mapped to `../*`
  - Add `include` configuration with `src/` and `tests/`
  - Add `exclude` configuration with `node_modules/`, `out/`, `tests_out/`, `benchmarks_out/`, `bin/*.exe`, `.vs/`, `config.yaml`

* **Update package.json scripts**
  - Update `build-login-2015`, `build-login-2016`, `build-zone-2015`, `build-zone-2016`, `build-tests`, and `build-benchs` scripts to use `tsconfig.json`

* **Remove redundant tsconfig files**
  - Delete `tsconfigs/tsconfig-2015-login.json`
  - Delete `tsconfigs/tsconfig-2015-zone.json`
  - Delete `tsconfigs/tsconfig-2015.json`
  - Delete `tsconfigs/tsconfig-2016-login.json`
  - Delete `tsconfigs/tsconfig-2016-zone.json`
  - Delete `tsconfigs/tsconfig-2016.json`
  - Delete `tsconfigs/tsconfig-tests.json`

---

For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/QuentinGruber/h1z1-server?shareId=XXXX-XXXX-XXXX-XXXX).
@github-actions github-actions bot added config-files dependencies Pull requests that update a dependency file labels Sep 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
config-files dependencies Pull requests that update a dependency file
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant