aboutsummaryrefslogtreecommitdiffstats
path: root/packages/monorepo-scripts/src/utils/configs.ts
blob: e579bdb7c35bff23f75a09eb87ca3d120debc53c (plain) (blame)
1
2
3
4
5
6
7
8
const IS_LOCAL_PUBLISH = process.env.IS_LOCAL_PUBLISH === 'true';
const LOCAL_NPM_REGISTRY_URL = 'http://localhost:4873';
const REMOTE_NPM_REGISTRY_URL = 'https://registry.npmjs.org';

export const configs = {
    IS_LOCAL_PUBLISH,
    NPM_REGISTRY_URL: IS_LOCAL_PUBLISH ? LOCAL_NPM_REGISTRY_URL : REMOTE_NPM_REGISTRY_URL,
};