@putout/operator-match-files 3.2.1 → 3.2.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.
@@ -5,6 +5,7 @@ const {
5
5
  basename,
6
6
  extname,
7
7
  } = require('node:path');
8
+
8
9
  const {parse, print} = require('@putout/engine-parser');
9
10
  const {transform} = require('putout/transform');
10
11
  const {findPlaces} = require('putout/find-places');
@@ -170,8 +171,8 @@ function getOutputFile(path, {dirPath, matchInputFilename, outputFilename, input
170
171
  function parseMatcher(matcher, options) {
171
172
  for (const [name, value] of entries(options)) {
172
173
  if (name === 'filename') {
173
- const name = basename(value);
174
174
  const ext = extname(value);
175
+ const name = value.replace(ext, '');
175
176
 
176
177
  matcher = matcher.replaceAll(`__name`, name);
177
178
  matcher = matcher.replaceAll(`__ext`, ext);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@putout/operator-match-files",
3
- "version": "3.2.1",
3
+ "version": "3.2.2",
4
4
  "type": "commonjs",
5
5
  "author": "coderaiser <mnemonic.enemy@gmail.com> (https://github.com/coderaiser)",
6
6
  "description": "🐊Putout operator adds ability to match files to plugins",