@actions/glob: convert to an ESM module (#2273)
* `@actions/glob`: convert to an ESM module * Update packages/glob/RELEASES.md Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --------- Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
1 parent
eaeca12f38
commit
e138087709
17 files changed
+84
-65
No files matched your search
+4
-4
@@ -1,7 +1,7 @@
|
||||
import {Globber, DefaultGlobber} from './internal-globber'
|
||||
import {GlobOptions} from './internal-glob-options'
|
||||
import {HashFileOptions} from './internal-hash-file-options'
|
||||
import {hashFiles as _hashFiles} from './internal-hash-files'
|
||||
import {Globber, DefaultGlobber} from './internal-globber.js'
|
||||
import {GlobOptions} from './internal-glob-options.js'
|
||||
import {HashFileOptions} from './internal-hash-file-options.js'
|
||||
import {hashFiles as _hashFiles} from './internal-hash-files.js'
|
||||
|
||||
export {Globber, GlobOptions}
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import * as core from '@actions/core'
|
||||
import {GlobOptions} from './internal-glob-options'
|
||||
import {GlobOptions} from './internal-glob-options.js'
|
||||
|
||||
/**
|
||||
* Returns a copy with defaults filled in.
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
import * as core from '@actions/core'
|
||||
import * as fs from 'fs'
|
||||
import * as globOptionsHelper from './internal-glob-options-helper'
|
||||
import * as globOptionsHelper from './internal-glob-options-helper.js'
|
||||
import * as path from 'path'
|
||||
import * as patternHelper from './internal-pattern-helper'
|
||||
import {GlobOptions} from './internal-glob-options'
|
||||
import {MatchKind} from './internal-match-kind'
|
||||
import {Pattern} from './internal-pattern'
|
||||
import {SearchState} from './internal-search-state'
|
||||
import * as patternHelper from './internal-pattern-helper.js'
|
||||
import {GlobOptions} from './internal-glob-options.js'
|
||||
import {MatchKind} from './internal-match-kind.js'
|
||||
import {Pattern} from './internal-pattern.js'
|
||||
import {SearchState} from './internal-search-state.js'
|
||||
|
||||
const IS_WINDOWS = process.platform === 'win32'
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@ import * as fs from 'fs'
|
||||
import * as stream from 'stream'
|
||||
import * as util from 'util'
|
||||
import * as path from 'path'
|
||||
import {Globber} from './glob'
|
||||
import {Globber} from './glob.js'
|
||||
|
||||
export async function hashFiles(
|
||||
globber: Globber,
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import * as path from 'path'
|
||||
import * as pathHelper from './internal-path-helper'
|
||||
import * as pathHelper from './internal-path-helper.js'
|
||||
import assert from 'assert'
|
||||
|
||||
const IS_WINDOWS = process.platform === 'win32'
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import * as pathHelper from './internal-path-helper'
|
||||
import {MatchKind} from './internal-match-kind'
|
||||
import {Pattern} from './internal-pattern'
|
||||
import * as pathHelper from './internal-path-helper.js'
|
||||
import {MatchKind} from './internal-match-kind.js'
|
||||
import {Pattern} from './internal-pattern.js'
|
||||
|
||||
const IS_WINDOWS = process.platform === 'win32'
|
||||
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
import * as os from 'os'
|
||||
import * as path from 'path'
|
||||
import * as pathHelper from './internal-path-helper'
|
||||
import * as pathHelper from './internal-path-helper.js'
|
||||
import assert from 'assert'
|
||||
import {Minimatch, IMinimatch, IOptions as IMinimatchOptions} from 'minimatch'
|
||||
import {MatchKind} from './internal-match-kind'
|
||||
import {Path} from './internal-path'
|
||||
import {MatchKind} from './internal-match-kind.js'
|
||||
import {Path} from './internal-path.js'
|
||||
|
||||
const IS_WINDOWS = process.platform === 'win32'
|
||||
|
||||
|
||||
Reference in new issue
Block a user