@t3q-ui/design-system 1.56.0 → 1.56.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +8 -0
- package/cli/doctor.mjs +4 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/cli/doctor.mjs
CHANGED
|
@@ -35,6 +35,8 @@ import {
|
|
|
35
35
|
} from './lib.mjs'
|
|
36
36
|
|
|
37
37
|
const SETUP = 't3q-design setup'
|
|
38
|
+
/** 사내 점검(GITLAB_TOKEN·Bearer 확인)은 GitLab npm 레지스트리 주소(`…/api/v4/…/packages/npm/`)에만 맞다 — npmjs·미러 값은 건너뛴다 */
|
|
39
|
+
const GITLAB_NPM_RE = /\/api\/v4\/.+\/packages\/npm\/?$/
|
|
38
40
|
|
|
39
41
|
/** @returns {Promise<Array<{ status: 'ok'|'warn'|'fail'|'info', msg: string, fix?: string }>>} */
|
|
40
42
|
export async function doctor(cwd, { env = process.env, fetch: fetchImpl = globalThis.fetch } = {}) {
|
|
@@ -63,6 +65,8 @@ export async function doctor(cwd, { env = process.env, fetch: fetchImpl = global
|
|
|
63
65
|
const npmrc = parseNpmrc(readText(file('.npmrc')))
|
|
64
66
|
let latest = null
|
|
65
67
|
if (npmrc.registry == null) add('info', '.npmrc 에 @t3q-ui:registry 없음 — 기본 레지스트리(npmjs)에서 설치')
|
|
68
|
+
else if (!GITLAB_NPM_RE.test(npmrc.registry))
|
|
69
|
+
add('info', '.npmrc 의 @t3q-ui:registry 가 GitLab npm 레지스트리가 아님 — 토큰·레지스트리 점검 생략')
|
|
66
70
|
else {
|
|
67
71
|
if (npmrc.auth) add('ok', '.npmrc 레지스트리 2줄')
|
|
68
72
|
else
|