-
-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathconstants.ts
More file actions
17 lines (11 loc) · 648 Bytes
/
constants.ts
File metadata and controls
17 lines (11 loc) · 648 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
export const PACKAGE_JSON_BASENAME = 'package.json'
export const PNPM_WORKSPACE_BASENAME = 'pnpm-workspace.yaml'
export const PACKAGE_JSON_PATTERN = `**/${PACKAGE_JSON_BASENAME}`
export const PNPM_WORKSPACE_PATTERN = `**/${PNPM_WORKSPACE_BASENAME}`
export const VERSION_TRIGGER_CHARACTERS = [':', '^', '~', '.', ...Array.from({ length: 10 }).map((_, i) => `${i}`)]
export const PRERELEASE_PATTERN = /-.+/
export const CACHE_TTL_ONE_DAY = 1000 * 60 * 60 * 24
export const NPMX_DEV = 'https://npmx.dev'
export const NPMX_DEV_API = `${NPMX_DEV}/api`
export const SPACER = ' '
export const UPGRADE_MESSAGE_PREFIX = 'New version available: '