prettify-bru 0.1.7 → 0.1.8
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.
- package/cli.js +5 -3
- package/package.json +2 -2
package/cli.js
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
3
|
import yargs from 'yargs';
|
|
4
|
-
import {
|
|
4
|
+
import { hideBin } from 'yargs/helpers';
|
|
5
|
+
import { go } from './index.js';
|
|
5
6
|
|
|
6
|
-
const argv = yargs(process.argv)
|
|
7
|
+
const argv = yargs(hideBin(process.argv))
|
|
8
|
+
.usage(`
|
|
7
9
|
Usage: $0 [-d] path
|
|
8
10
|
|
|
9
11
|
Running the command with no arguments will modify all files
|
|
@@ -31,5 +33,5 @@ Running the command with no arguments will modify all files
|
|
|
31
33
|
if (argv.h) {
|
|
32
34
|
yargs.showHelp();
|
|
33
35
|
} else {
|
|
34
|
-
go(argv.d, argv.
|
|
36
|
+
go(argv.d, argv._[0]);
|
|
35
37
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "prettify-bru",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.8",
|
|
4
4
|
"description": "Prettifies JSON and JavaScript blocks in Bruno .bru files",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"bruno",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"prettify-bru": "./cli.js"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"yargs": "
|
|
34
|
+
"yargs": "18.0.0"
|
|
35
35
|
},
|
|
36
36
|
"scripts": {
|
|
37
37
|
"test": "test"
|