Skip to content

Commit 117981d

Browse files
authored
fix(entropy-tester): adjust cli execution and tsconfigs (#2773)
* fix(entropy-tester): adjust cli execution and tsconfigs
1 parent ec2d123 commit 117981d

File tree

6 files changed

+15
-7
lines changed

6 files changed

+15
-7
lines changed

apps/entropy-tester/.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
lib
1+
dist

apps/entropy-tester/cli/run.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
#!/usr/bin/env node
22
import { main } from "../dist/index.js";
3-
main();
3+
main().argv;

apps/entropy-tester/package.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@pythnetwork/entropy-tester",
3-
"version": "1.0.0",
3+
"version": "1.0.1",
44
"description": "Utility to test entropy provider callbacks",
55
"type": "module",
66
"main": "dist/index.js",
@@ -16,13 +16,14 @@
1616
"cli/**/*"
1717
],
1818
"scripts": {
19-
"build": "tsc",
19+
"build": "tsc --project tsconfig.build.json",
2020
"fix:format": "prettier --write .",
2121
"fix:lint": "eslint --fix .",
2222
"test:format": "prettier --check .",
2323
"test:lint": "eslint . --max-warnings 0",
2424
"test:types": "tsc",
25-
"start": "tsc && node cli/run.js"
25+
"start:dev": "tsc --project tsconfig.build.json && node cli/run.js",
26+
"start:prod": "node cli/run.js"
2627
},
2728
"repository": {
2829
"type": "git",

apps/entropy-tester/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ const RUN_OPTIONS = {
153153
} as const;
154154

155155
export const main = function () {
156-
yargs(hideBin(process.argv))
156+
return yargs(hideBin(process.argv))
157157
.parserConfiguration({
158158
"parse-numbers": false,
159159
})
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"extends": "./tsconfig.json",
3+
"compilerOptions": {
4+
"outDir": "./dist",
5+
"noEmit": false
6+
}
7+
}

apps/entropy-tester/tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
22
"extends": "@cprussin/tsconfig/nextjs.json",
3-
"include": ["**/*.ts", "**/*.tsx"],
3+
"include": ["**/*.ts"],
44
"exclude": ["node_modules"]
55
}

0 commit comments

Comments
 (0)