@putout/engine-reporter 7.0.1 β†’ 8.0.0

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/README.md CHANGED
@@ -11,6 +11,11 @@ Run 🐊[**Putout**](https://github.com/coderaiser/putout) formatters.
11
11
  npm i @putout/engine-reporter
12
12
  ```
13
13
 
14
+ ```js
15
+ import {initReport} from '@putout/engine-reporter/report';
16
+ const report = initReport();
17
+ ```
18
+
14
19
  ## License
15
20
 
16
21
  MIT
package/lib/index.js CHANGED
@@ -6,7 +6,7 @@ import {
6
6
  INVALID_CONFIG,
7
7
  } from 'putout/exit-codes';
8
8
  import {getFormatter as _getFormatter} from './formatter/formatter.cjs';
9
- import Report from './report.cjs';
9
+ import {initReport} from './report.js';
10
10
 
11
11
  const {createRequire} = module;
12
12
  const require = createRequire(import.meta.url);
@@ -27,7 +27,7 @@ export const createReport = async (overrides = {}) => {
27
27
 
28
28
  const {interactive, format} = args;
29
29
 
30
- const report = Report();
30
+ const report = initReport();
31
31
  const noConfig = !args.config;
32
32
 
33
33
  const [configError, config] = tryCatch(getOptions, {
@@ -1,9 +1,7 @@
1
- 'use strict';
2
-
3
1
  const {isArray} = Array;
4
2
  const noop = () => {};
5
3
 
6
- module.exports = () => {
4
+ export const initReport = () => {
7
5
  let filesCount = 0;
8
6
  let errorsCount = 0;
9
7
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@putout/engine-reporter",
3
- "version": "7.0.1",
3
+ "version": "8.0.0",
4
4
  "type": "module",
5
5
  "author": "coderaiser <mnemonic.enemy@gmail.com> (https://github.com/coderaiser)",
6
6
  "description": "Run 🐊Putout formatters",
@@ -9,7 +9,7 @@
9
9
  "exports": {
10
10
  ".": "./lib/index.js",
11
11
  "./subscribe": "./lib/subscribe.js",
12
- "./report": "./lib/report.cjs",
12
+ "./report": "./lib/report.js",
13
13
  "./formatter": "./lib/formatter/formatter.cjs"
14
14
  },
15
15
  "release": false,