export function buildPm2SpawnCommand(pm2Script, args, platform = process.platform, nodePath = process.execPath) {
    if (platform === 'win32' && pm2Script !== 'pm2') {
        return { command: nodePath, args: [pm2Script, ...args] };
    }
    return { command: pm2Script, args };
}
//# sourceMappingURL=pm2-command.js.map