fix: permanent @swc/helpers MODULE_NOT_FOUND fix (#crash)

prepublish.mjs: explicitly copy @swc/helpers into standalone app/node_modules
before packaging. npm tarball will always include it.

postinstall.mjs: fallback copy of @swc/helpers from root node_modules into
app/node_modules/@swc/ when missing after npm install -g.

Fixes server crash after npm install -g omniroute.
This commit is contained in:
diegosouzapw 2026-03-12 10:42:59 -03:00
parent 8956ffef73
commit 943a9374b4
5 changed files with 50 additions and 3 deletions

View file

@ -1,7 +1,7 @@
openapi: 3.1.0
info:
title: OmniRoute API
version: 2.3.4
version: 2.3.5
description: |
OmniRoute is a local-first AI API proxy router. It provides an OpenAI-compatible
endpoint that routes requests to multiple AI providers with load balancing,