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
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion apps/entropy-tester/.gitignore
Original file line number Diff line number Diff line change
@@ -1 +1 @@
lib
dist
2 changes: 1 addition & 1 deletion apps/entropy-tester/cli/run.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#!/usr/bin/env node
import { main } from "../dist/index.js";
main();
main().argv;
7 changes: 4 additions & 3 deletions apps/entropy-tester/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@pythnetwork/entropy-tester",
"version": "1.0.0",
"version": "1.0.1",
"description": "Utility to test entropy provider callbacks",
"type": "module",
"main": "dist/index.js",
Expand All @@ -16,13 +16,14 @@
"cli/**/*"
],
"scripts": {
"build": "tsc",
"build": "tsc --project tsconfig.build.json",
"fix:format": "prettier --write .",
"fix:lint": "eslint --fix .",
"test:format": "prettier --check .",
"test:lint": "eslint . --max-warnings 0",
"test:types": "tsc",
"start": "tsc && node cli/run.js"
"start:dev": "tsc --project tsconfig.build.json && node cli/run.js",
"start:prod": "node cli/run.js"
},
"repository": {
"type": "git",
Expand Down
2 changes: 1 addition & 1 deletion apps/entropy-tester/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ const RUN_OPTIONS = {
} as const;

export const main = function () {
yargs(hideBin(process.argv))
return yargs(hideBin(process.argv))
.parserConfiguration({
"parse-numbers": false,
})
Expand Down
7 changes: 7 additions & 0 deletions apps/entropy-tester/tsconfig.build.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"extends": "./tsconfig.json",
"compilerOptions": {
"outDir": "./dist",
"noEmit": false
}
}
2 changes: 1 addition & 1 deletion apps/entropy-tester/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": "@cprussin/tsconfig/nextjs.json",
"include": ["**/*.ts", "**/*.tsx"],
"include": ["**/*.ts"],
"exclude": ["node_modules"]
}
Loading