@putout/plugin-esm 8.0.0 → 8.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.
@@ -21,7 +21,10 @@ const {
21
21
 
22
22
  const getMessage = (a) => a.message;
23
23
 
24
- export const report = (file, {from, to}) => `Shorten import source: '${from}' -> '${to}'`;
24
+ export const report = (file, {from, to}) => {
25
+ const name = getFilename(file);
26
+ return `Shorten import source: '${from}' -> '${to}' in '${name}'`;
27
+ };
25
28
  export const fix = (file, {content, ast, from, to}) => {
26
29
  transform(ast, content, {
27
30
  rules: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@putout/plugin-esm",
3
- "version": "8.0.0",
3
+ "version": "8.0.1",
4
4
  "type": "module",
5
5
  "author": "coderaiser <mnemonic.enemy@gmail.com> (https://github.com/coderaiser)",
6
6
  "description": "🐊Putout plugin improves ability to transform ESM code",