mirror of
https://github.com/oven-sh/setup-bun.git
synced 2025-07-19 04:58:25 +02:00
Next release of setup-bun
This commit is contained in:
parent
ed9eb0969c
commit
9c14b74b45
1082 changed files with 242557 additions and 173810 deletions
22
node_modules/ts-node/dist/child/child-require.js
generated
vendored
Normal file
22
node_modules/ts-node/dist/child/child-require.js
generated
vendored
Normal file
|
@ -0,0 +1,22 @@
|
|||
"use strict";
|
||||
const _process = process;
|
||||
// Not shown here: Additional logic to correctly interact with process's events, either using this direct manipulation, or via the API
|
||||
let originalOnWarning;
|
||||
if (Array.isArray(_process._events.warning)) {
|
||||
originalOnWarning = _process._events.warning[0];
|
||||
_process._events.warning[0] = onWarning;
|
||||
}
|
||||
else {
|
||||
originalOnWarning = _process._events.warning;
|
||||
_process._events.warning = onWarning;
|
||||
}
|
||||
const messageMatch = /(?:--(?:experimental-)?loader\b|\bCustom ESM Loaders\b)/;
|
||||
function onWarning(warning, ...rest) {
|
||||
// Suppress warning about how `--loader` is experimental
|
||||
if ((warning === null || warning === void 0 ? void 0 : warning.name) === 'ExperimentalWarning' &&
|
||||
messageMatch.test(warning === null || warning === void 0 ? void 0 : warning.message))
|
||||
return;
|
||||
// Will be undefined if `--no-warnings`
|
||||
return originalOnWarning === null || originalOnWarning === void 0 ? void 0 : originalOnWarning.call(this, warning, ...rest);
|
||||
}
|
||||
//# sourceMappingURL=child-require.js.map
|
Loading…
Add table
Add a link
Reference in a new issue