fix(deps): default bytelyst packages to local common platform

This commit is contained in:
Saravana Achu Mac 2026-05-07 13:01:17 -07:00
parent 16a16ac85d
commit f2216ad278
2 changed files with 3 additions and 3 deletions

4
.npmrc
View File

@ -1,5 +1,5 @@
@bytelyst:registry=https://gitea.bytelyst.com/api/packages/ByteLyst/npm/
//gitea.bytelyst.com/api/packages/ByteLyst/npm/:_authToken=${GITEA_NPM_TOKEN}
# Used only when BYTELYST_PACKAGE_SOURCE=gitea.
# Gitea auth tokens belong in user-level ~/.npmrc or CI secrets, and are only needed
# when BYTELYST_PACKAGE_SOURCE=gitea.
# Gitea returns Docker-internal tarball URLs (172.17.0.1:3300); rewrite host to the public URL
replace-registry-host=always

View File

@ -2,7 +2,7 @@ const fs = require('node:fs');
const path = require('node:path');
const PACKAGE_SCOPE = '@bytelyst/';
const PACKAGE_SOURCE = process.env.BYTELYST_PACKAGE_SOURCE || 'vendor';
const PACKAGE_SOURCE = process.env.BYTELYST_PACKAGE_SOURCE || 'common-plat';
const DEFAULT_COMMON_PLAT_ROOTS = [
path.resolve(__dirname, '..', 'learning_ai_common_plat'),
'/opt/bytelyst/learning_ai_common_plat',