putout 41.13.0 → 41.13.1

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/ChangeLog CHANGED
@@ -1,3 +1,8 @@
1
+ 2026.01.28, v41.13.1
2
+
3
+ feature:
4
+ - c3b31383d putout: get rid of cjs exports
5
+
1
6
  2026.01.28, v41.13.0
2
7
 
3
8
  fix:
package/README.md CHANGED
@@ -285,7 +285,7 @@ All examples works both in **ESM** and **CommonJS**.
285
285
  **CommonJS**:
286
286
 
287
287
  ```js
288
- const putout = require('putout');
288
+ const {putout} = require('putout');
289
289
  ```
290
290
 
291
291
  **ESM**:
package/package.json CHANGED
@@ -1,24 +1,18 @@
1
1
  {
2
2
  "name": "putout",
3
- "version": "41.13.0",
3
+ "version": "41.13.1",
4
4
  "type": "module",
5
5
  "author": "coderaiser <mnemonic.enemy@gmail.com> (https://github.com/coderaiser)",
6
6
  "description": "🐊 Pluggable and configurable code transformer with built-in ESLint, Babel and support of js, jsx, typescript, flow, markdown, yaml and json",
7
7
  "homepage": "http://github.com/coderaiser/putout#readme",
8
8
  "main": "./lib/putout.js",
9
9
  "exports": {
10
- ".": {
11
- "require": "./lib/index.cjs",
12
- "import": "./lib/index.js"
13
- },
10
+ ".": "./lib/index.js",
14
11
  "./parse-error": "./lib/parse-error.js",
15
12
  "./parse-options": "./lib/parse-options/index.js",
16
13
  "./parse-match": "./lib/parse-options/parse-match.js",
17
14
  "./merge-options": "./lib/parse-options/merge-options.js",
18
- "./exit-codes": {
19
- "import": "./lib/cli/exit-codes.js",
20
- "require": "./lib/cli/exit-codes.cjs"
21
- },
15
+ "./exit-codes": "./lib/cli/exit-codes.js",
22
16
  "./cli/get-options": "./lib/cli/get-options.js",
23
17
  "./package.json": "./package.json",
24
18
  "./putout.json": "./putout.json",
@@ -1,20 +0,0 @@
1
- 'use strict';
2
-
3
- module.exports = {
4
- OK: 0,
5
- PLACE: 1,
6
- STAGE: 2,
7
- NO_FILES: 3,
8
- NO_PROCESSORS: 4,
9
- NO_FORMATTER: 5,
10
- WAS_STOP: 6,
11
- INVALID_OPTION: 7,
12
- CANNOT_LOAD_PROCESSOR: 8,
13
- CANNOT_LOAD_FORMATTER: 9,
14
- RULER_WITH_FIX: 10,
15
- RULER_NO_FILES: 11,
16
- INVALID_CONFIG: 12,
17
- UNHANDLED: 13,
18
- CANNOT_LINT_STAGED: 14,
19
- INTERACTIVE_CANCELED: 15,
20
- };
package/lib/index.cjs DELETED
@@ -1,37 +0,0 @@
1
- 'use strict';
2
-
3
- const {types, traverse} = require('@putout/babel');
4
- const {
5
- template,
6
- generate,
7
- print,
8
- parse,
9
- } = require('@putout/engine-parser');
10
-
11
- const {putout, putoutAsync} = require('./putout.js');
12
-
13
- const {
14
- findPlacesAsync,
15
- findPlaces,
16
- } = require('./find-places.js');
17
-
18
- const {transformAsync, transform} = require('./transform.js');
19
- const operator = require('./operator.js');
20
-
21
- const {codeframe} = require('./codeframe.js');
22
-
23
- module.exports = putout;
24
- module.exports.putout = putout;
25
- module.exports.putoutAsync = putoutAsync;
26
- module.exports.operator = operator;
27
- module.exports.codeframe = codeframe;
28
- module.exports.template = template;
29
- module.exports.generate = generate;
30
- module.exports.print = print;
31
- module.exports.parse = parse;
32
- module.exports.transform = transform;
33
- module.exports.transformAsync = transformAsync;
34
- module.exports.types = types;
35
- module.exports.findPlaces = findPlaces;
36
- module.exports.findPlacesAsync = findPlacesAsync;
37
- module.exports.traverse = traverse;