fix(deps): default bytelyst packages to local common platform
This commit is contained in:
parent
16a16ac85d
commit
f2216ad278
4
.npmrc
4
.npmrc
@ -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
|
||||
|
||||
@ -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',
|
||||
|
||||
Loading…
Reference in New Issue
Block a user