Skip to content

Commit b48854e

Browse files
authored
@actions/glob: fix minimatch imports (#2276)
1 parent 9d912b1 commit b48854e

File tree

4 files changed

+12
-4
lines changed

4 files changed

+12
-4
lines changed

‎packages/glob/RELEASES.md‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# @actions/glob Releases
22

3+
## 0.6.1
4+
5+
- Fix a bad import for `minimatch`
6+
37
## 0.6.0
48

59
- **Breaking change**: Package is now ESM-only

‎packages/glob/package-lock.json‎

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎packages/glob/package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@actions/glob",
3-
"version": "0.6.0",
3+
"version": "0.6.1",
44
"preview": true,
55
"description": "Actions glob lib",
66
"keywords": [

‎packages/glob/src/internal-pattern.ts‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,14 @@ import * as os from 'os'
22
import * as path from 'path'
33
import * as pathHelper from './internal-path-helper.js'
44
import assert from 'assert'
5-
import {Minimatch, IMinimatch, IOptions as IMinimatchOptions} from 'minimatch'
5+
import minimatch from 'minimatch'
66
import {MatchKind} from './internal-match-kind.js'
77
import {Path} from './internal-path.js'
88

9+
type IMinimatch = minimatch.IMinimatch
10+
type IMinimatchOptions = minimatch.IOptions
11+
const {Minimatch} = minimatch
12+
913
const IS_WINDOWS = process.platform === 'win32'
1014

1115
export class Pattern {

0 commit comments

Comments
 (0)