Skip to content

Commit 8f974a0

Browse files
committed
v1.0.13
fixes #0
1 parent 9a11ad1 commit 8f974a0

4 files changed

Lines changed: 13 additions & 2 deletions

File tree

.npmignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,4 @@
1313
/integration
1414
/language
1515
/property
16+
/.idea

bin/iab.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,14 @@
11
#!/usr/bin/env node
22
import cli from '../src/cli/cli.js';
3+
import {
4+
config,
5+
} from 'dotenv';
6+
import {
7+
existsSync,
8+
} from 'fs';
9+
10+
if (existsSync(process.cwd() + '/.env')) {
11+
config();
12+
}
313

414
process.exit(await cli(process.argv, process.cwd(),),);

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "@idrinth-api-bench/framework",
33
"description": "A library to benchmark apis, no matter if rest or soap",
44
"license": "MIT",
5-
"version": "1.0.12",
5+
"version": "1.0.13",
66
"type": "module",
77
"main": "index.js",
88
"homepage": "https://idrinth-api-ben.ch",

src/config/from-cli.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export default (config: Config, args: string[],) => {
1515
for (const option of options) {
1616
const parts = option.split('=',);
1717
if (parts.length === TWO) {
18-
config[parts[FIRST]] = toValue(parts[SECOND],);
18+
config[parts[FIRST].substring(TWO,)] = toValue(parts[SECOND],);
1919
}
2020
}
2121
};

0 commit comments

Comments
 (0)