@putout/plugin-nodejs 9.0.0 → 9.0.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/README.md CHANGED
@@ -20,9 +20,9 @@ npm i putout @putout/plugin-nodejs -D
20
20
  ```json
21
21
  {
22
22
  "rules": {
23
+ "nodejs/convert-commonjs-to-esm": "off",
24
+ "nodejs/convert-esm-to-commonjs": "off",
23
25
  "nodejs/add-node-prefix": "on",
24
- "nodejs/convert-commonjs-to-esm": "on",
25
- "nodejs/convert-esm-to-commonjs": "on",
26
26
  "nodejs/convert-buffer-to-buffer-alloc": "on",
27
27
  "nodejs/convert-fs-promises": "on",
28
28
  "nodejs/convert-promisify-to-fs-promises": "on",
package/lib/index.js CHANGED
@@ -13,7 +13,10 @@ const addNodePrefix = require('./add-node-prefix');
13
13
  const convertExportsToModuleExports = require('./convert-exports-to-module-exports');
14
14
 
15
15
  const convertEsmToCommonjs = require('./convert-esm-to-commonjs');
16
- const convertCommonjsToEsm = require('./convert-commonjs-to-esm');
16
+
17
+ const convertCommonjsToEsmExports = require('./convert-commonjs-to-esm-exports');
18
+ const convertCommonjsToEsmCommons = require('./convert-commonjs-to-esm-commons');
19
+ const convertCommonjsToEsmRequire = require('./convert-commonjs-to-esm-require');
17
20
 
18
21
  module.exports.rules = {
19
22
  'convert-buffer-to-buffer-alloc': convertBufferToBufferAlloc,
@@ -27,6 +30,9 @@ module.exports.rules = {
27
30
  'remove-process-exit': removeProcessExit,
28
31
  'add-node-prefix': addNodePrefix,
29
32
  'convert-exports-to-module-exports': convertExportsToModuleExports,
30
- 'convert-esm-to-commonjs': convertEsmToCommonjs,
31
- ...convertCommonjsToEsm.rules,
33
+
34
+ 'convert-esm-to-commonjs': ['off', convertEsmToCommonjs],
35
+ 'convert-commonjs-to-esm-exports': ['off', convertCommonjsToEsmExports],
36
+ 'convert-commonjs-to-esm-common': ['off', convertCommonjsToEsmCommons],
37
+ 'convert-commonjs-to-esm-require': ['off', convertCommonjsToEsmRequire],
32
38
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@putout/plugin-nodejs",
3
- "version": "9.0.0",
3
+ "version": "9.0.1",
4
4
  "type": "commonjs",
5
5
  "author": "coderaiser <mnemonic.enemy@gmail.com> (https://github.com/coderaiser)",
6
6
  "description": "🐊Putout plugin adds ability to transform code to new API of Node.js",