Skip to content

Commit 20411b1

Browse files
committed
Freshen generated index.js file.
1 parent b904b40 commit 20411b1

File tree

1 file changed

+16
-11
lines changed

1 file changed

+16
-11
lines changed

dist/index.mjs

Lines changed: 16 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -7751,18 +7751,8 @@ const factory = options => new Ignore(options)
77517751
const isPathValid = path =>
77527752
checkPath(path && checkPath.convert(path), path, RETURN_FALSE)
77537753

7754-
7755-
// Windows
7756-
// --------------------------------------------------------------
77577754
/* istanbul ignore next */
7758-
if (
7759-
// Detect `process` so that it can run in browsers.
7760-
typeof process !== 'undefined'
7761-
&& (
7762-
process.env && process.env.IGNORE_TEST_WIN32
7763-
|| process.platform === 'win32'
7764-
)
7765-
) {
7755+
const setupWindows = () => {
77667756
/* eslint no-control-regex: "off" */
77677757
const makePosix = str => /^\\\\\?\\/.test(str)
77687758
|| /["<>|\u0000-\u001F]+/u.test(str)
@@ -7779,6 +7769,18 @@ if (
77797769
|| isNotRelative(path)
77807770
}
77817771

7772+
7773+
// Windows
7774+
// --------------------------------------------------------------
7775+
/* istanbul ignore next */
7776+
if (
7777+
// Detect `process` so that it can run in browsers.
7778+
typeof process !== 'undefined'
7779+
&& process.platform === 'win32'
7780+
) {
7781+
setupWindows()
7782+
}
7783+
77827784
// COMMONJS_EXPORTS ////////////////////////////////////////////////////////////
77837785

77847786
module.exports = factory
@@ -7790,6 +7792,9 @@ factory.default = factory
77907792

77917793
module.exports.isPathValid = isPathValid
77927794

7795+
// For testing purposes
7796+
define(module.exports, Symbol.for('setupWindows'), setupWindows)
7797+
77937798

77947799
/***/ }),
77957800

0 commit comments

Comments
 (0)