blaze-performance-tester 1.0.3 → 1.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/bin.js +2 -0
  2. package/dist/cli.js +1 -0
  3. package/package.json +4 -3
package/bin.js ADDED
@@ -0,0 +1,2 @@
1
+ #!/usr/bin/env node
2
+ import './dist/cli.js';
package/dist/cli.js CHANGED
@@ -1,3 +1,4 @@
1
+ #!/usr/bin/env node
1
2
  var __create = Object.create;
2
3
  var __defProp = Object.defineProperty;
3
4
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "blaze-performance-tester",
3
- "version": "1.0.3",
3
+ "version": "1.0.5",
4
4
  "description": "A high-performance, multi-threaded load testing engine built with Rust and QuickJS.",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -8,16 +8,17 @@
8
8
  "author": "Kushan Shalindra Amarsiri <lkkushan@yahoo.com>",
9
9
  "license": "MIT",
10
10
  "bin": {
11
- "blaze": "./dist/cli.js"
11
+ "blaze": "./bin.js"
12
12
  },
13
13
  "files": [
14
14
  "dist",
15
+ "bin.js",
15
16
  "blaze.win32-x64-msvc.node"
16
17
  ],
17
18
  "scripts": {
18
19
  "prebuild": "node -e \"if (!fs.existsSync('dist')) fs.mkdirSync('dist')\"",
19
20
  "build:rust": "napi build --platform --release --js dist/index.js --dts dist/index.d.ts",
20
- "build:cli": "esbuild cli.ts --bundle --platform=node --format=esm --outfile=dist/cli.js",
21
+ "build:cli": "esbuild cli.ts --bundle --platform=node --format=esm --banner:js=\"#!/usr/bin/env node\" --outfile=dist/cli.js",
21
22
  "build": "npm run build:rust && npm run build:cli"
22
23
  },
23
24
  "dependencies": {