@naturalcycles/dev-lib 20.38.0 → 20.38.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.
@@ -16,7 +16,7 @@ import fs from 'node:fs'
16
16
  import { _assert } from '@naturalcycles/js-lib/error/assert.js'
17
17
  import { semver2 } from '@naturalcycles/js-lib/semver'
18
18
  import { exec2 } from '@naturalcycles/nodejs-lib/exec2'
19
- import micromatch from 'micromatch'
19
+ import picomatch from 'picomatch'
20
20
  import { prettierExtensionsAll, lintExclude, minActionlintVersion } from './_cnst.js'
21
21
 
22
22
  const oxfmtConfigPath = ['.oxfmtrc.jsonc', '.oxfmtrc.json'].find(fs.existsSync)
@@ -132,7 +132,8 @@ export function runActionlintOxfmt(match) {
132
132
  }
133
133
 
134
134
  function getFilesList(match) {
135
- return micromatch.not(match, lintExclude).join(' ')
135
+ const isExcluded = picomatch(lintExclude)
136
+ return match.filter(f => !isExcluded(f)).join(' ')
136
137
  }
137
138
 
138
139
  function canRunBinary(name) {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@naturalcycles/dev-lib",
3
3
  "type": "module",
4
- "version": "20.38.0",
4
+ "version": "20.38.1",
5
5
  "dependencies": {
6
6
  "prompts": "^2",
7
7
  "@naturalcycles/js-lib": "^15",
@@ -10,7 +10,7 @@
10
10
  "eslint-plugin-oxlint": "^1",
11
11
  "globals": "^17",
12
12
  "lint-staged": "^16",
13
- "micromatch": "^4",
13
+ "picomatch": "^4",
14
14
  "oxfmt": "^0",
15
15
  "oxlint": "^1",
16
16
  "oxlint-tsgolint": "^0",