mirror of
https://github.com/oven-sh/setup-bun.git
synced 2025-07-18 20:48:29 +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
9
node_modules/ts-node/dist-raw/runmain-hack.js
generated
vendored
Normal file
9
node_modules/ts-node/dist-raw/runmain-hack.js
generated
vendored
Normal file
|
@ -0,0 +1,9 @@
|
|||
const {pathToFileURL} = require('url');
|
||||
|
||||
// Hack to avoid Module.runMain on node 18.6.0
|
||||
// Keeping it simple for now, isolated in this file.
|
||||
// Could theoretically probe `getFormat` impl to determine if `import()` or `Module._load()` is best
|
||||
// Note that I attempted a try-catch around `Module._load`, but it poisons some sort of cache such that subsequent `import()` is impossible.
|
||||
exports.run = function(entryPointPath) {
|
||||
import(pathToFileURL(entryPointPath));
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue