15 lines
401 B
JavaScript
Executable File
15 lines
401 B
JavaScript
Executable File
#!/usr/bin/env node
|
|
/**
|
|
* PearMonitor agent entry for Node and Bare.
|
|
*
|
|
* Under Bare: load bare-node-runtime globals (process, Buffer, fetch, …) first.
|
|
* package.json `imports` routes Node builtin names → bare-* when packed for Bare/Pear.
|
|
*/
|
|
const isBare = typeof globalThis.Bare !== 'undefined'
|
|
|
|
if (isBare) {
|
|
await import('bare-node-runtime/global')
|
|
}
|
|
|
|
await import('../server/server.js')
|