Skip to content

Commit

Permalink
chore: fix bin.mjs
Browse files Browse the repository at this point in the history
  • Loading branch information
Jason3S committed Apr 21, 2024
1 parent 3972038 commit 472c2a2
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 7 deletions.
4 changes: 2 additions & 2 deletions bin.mjs
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
import { run } from './dist/app.mjs';
#!/usr/bin/env node

run();
import './packages/perf-bench/bin.mjs';
4 changes: 4 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@
"engines": {
"node": ">=18"
},
"bin": {
"bin": "./bin.mjs"
},
"scripts": {
"build": "pnpm -r --stream --workspace-concurrency=2 run build",
"coverage": "pnpm -r --stream --workspace-concurrency=2 run coverage",
Expand Down Expand Up @@ -52,6 +55,7 @@
"eslint-plugin-simple-import-sort": "^12.1.0",
"globals": "^15.0.0",
"inject-markdown": "^3.0.0",
"perf-bench": "workspace:*",
"prettier": "^3.2.5",
"typescript": "^5.4.5",
"typescript-eslint": "^7.7.0",
Expand Down
1 change: 1 addition & 0 deletions packages/perf-bench/src/runBenchmarkCli.mts
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ async function run(args: string[]) {
const errors: Error[] = [];

async function importFile(file: string) {
console.log('File: %s', file);
const url = new URL(file, cwdUrl).toString();
try {
await import(url);
Expand Down
3 changes: 3 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 1 addition & 5 deletions test-packages/test/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,6 @@
"engines": {
"node": ">=18"
},
"bin": {
"perf-bench": "./bin.mjs"
},
"scripts": {
"build": "tsc -p .",
"watch": "tsc -p . --watch",
Expand All @@ -30,6 +27,5 @@
"cspell-trie-lib": "^8.7.0",
"lorem-ipsum": "^2.0.8",
"perf-bench": "workspace:*"
},
"files": []
}
}

0 comments on commit 472c2a2

Please sign in to comment.