prettify-bru 1.0.0 → 1.0.2

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 CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  import yargs from 'yargs';
4
4
  import {hideBin} from 'yargs/helpers';
5
- import {main} from './lib/main';
5
+ import {main} from './lib/main.mjs';
6
6
 
7
7
  const argv = yargs(hideBin(process.argv))
8
8
  .command('$0 [path] [-w|--write]', `Formats all .bru files (including subdirectories)`, (yargs) => {
package/lib/format.mjs CHANGED
@@ -3,7 +3,8 @@ import prettier from 'prettier'
3
3
  // This Prettier config should match what the Bruno GUI implements
4
4
  const prettierConfig = {
5
5
  semi: false,
6
- tabWidth: 4,
6
+ tabWidth: 2,
7
+ singleQuote: false,
7
8
  useTabs: false,
8
9
  bracketSpacing: false,
9
10
  trailingComma: "none",
package/lib/main.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  import fs from 'fs'
2
2
  import path from 'path'
3
- import {formatBlocks} from './format'
3
+ import {formatBlocks} from './format.mjs'
4
4
 
5
5
  /**
6
6
  * Finds all .bru files and formats contents
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "prettify-bru",
3
- "version": "1.0.0",
3
+ "version": "1.0.2",
4
4
  "description": "Prettifies JSON and JavaScript blocks in Bruno .bru files",
5
5
  "keywords": [
6
6
  "bruno",