Skip to content

fix(entropy-tester): adjust cli execution and tsconfigs #2773

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

Merged
merged 3 commits into from
Jun 11, 2025
Merged

Conversation

m30m
Copy link
Collaborator

@m30m m30m commented Jun 11, 2025

Summary

tsconfig was not working as I hoped for.

How has this been tested?

  • Current tests cover my changes
  • Added new tests
  • Manually tested the code

@m30m m30m requested a review from a team as a code owner June 11, 2025 00:23
Copy link

vercel bot commented Jun 11, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

8 Skipped Deployments
Name Status Preview Comments Updated (UTC)
api-reference ⬜️ Skipped (Inspect) Jun 11, 2025 0:37am
component-library ⬜️ Skipped (Inspect) Jun 11, 2025 0:37am
developer-hub ⬜️ Skipped (Inspect) Jun 11, 2025 0:37am
entropy-debugger ⬜️ Skipped (Inspect) Jun 11, 2025 0:37am
entropy-explorer ⬜️ Skipped (Inspect) Jun 11, 2025 0:37am
insights ⬜️ Skipped (Inspect) Jun 11, 2025 0:37am
proposals ⬜️ Skipped (Inspect) Jun 11, 2025 0:37am
staking ⬜️ Skipped (Inspect) Jun 11, 2025 0:37am

@@ -22,7 +22,8 @@
"test:format": "prettier --check .",
"test:lint": "eslint . --max-warnings 0",
"test:types": "tsc",
"start": "tsc && node cli/run.js"
"dev:start": "tsc && node cli/run.js",
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is named start:dev (and the other one is named start:prod) in other services

"extends": "@cprussin/tsconfig/nextjs.json",
"include": ["**/*.ts", "**/*.tsx"],
"extends": "@cprussin/tsconfig/base.json",
"compilerOptions": {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Generally, I will separate out things so that the base tsconfig is just used to check types (i.e. noEmit: true), and I have an extended tsconfig for actually building. See https://github.com/pyth-network/pyth-crosschain/blob/main/packages/component-library/tsconfig.build.json for an example, and https://github.com/pyth-network/pyth-crosschain/blob/main/packages/component-library/package.json#L22 for the corresponding build script (this one is a bit weird because it's running react compiler but in your case you can just omit the babel command).

I prefer doing things this way because it allows you to run just a type check as part of CI without actually building. It's a bit pedantic but I do find it nice.

@vercel vercel bot temporarily deployed to Preview – entropy-explorer June 11, 2025 00:32 Inactive
@vercel vercel bot temporarily deployed to Preview – component-library June 11, 2025 00:32 Inactive
@vercel vercel bot temporarily deployed to Preview – staking June 11, 2025 00:32 Inactive
@vercel vercel bot temporarily deployed to Preview – entropy-debugger June 11, 2025 00:32 Inactive
@vercel vercel bot temporarily deployed to Preview – api-reference June 11, 2025 00:32 Inactive
@vercel vercel bot temporarily deployed to Preview – insights June 11, 2025 00:32 Inactive
@vercel vercel bot temporarily deployed to Preview – proposals June 11, 2025 00:32 Inactive
@vercel vercel bot temporarily deployed to Preview – developer-hub June 11, 2025 00:32 Inactive
@vercel vercel bot temporarily deployed to Preview – entropy-explorer June 11, 2025 00:37 Inactive
@vercel vercel bot temporarily deployed to Preview – insights June 11, 2025 00:37 Inactive
@vercel vercel bot temporarily deployed to Preview – staking June 11, 2025 00:37 Inactive
@vercel vercel bot temporarily deployed to Preview – component-library June 11, 2025 00:37 Inactive
@vercel vercel bot temporarily deployed to Preview – api-reference June 11, 2025 00:37 Inactive
@vercel vercel bot temporarily deployed to Preview – developer-hub June 11, 2025 00:37 Inactive
@vercel vercel bot temporarily deployed to Preview – entropy-debugger June 11, 2025 00:37 Inactive
@vercel vercel bot temporarily deployed to Preview – proposals June 11, 2025 00:37 Inactive
@m30m m30m merged commit 117981d into main Jun 11, 2025
12 checks passed
@m30m m30m deleted the branch-B6CA6E67 branch June 11, 2025 00:48
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.

2 participants