@axis-ds/cli 1.5.0 → 1.5.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/README.md CHANGED
@@ -105,7 +105,7 @@ axis theme add ontology
105
105
 
106
106
  ## 문서
107
107
 
108
- 자세한 사용법은 [AXIS Design System 문서](https://axis.minu.best)를 참고하세요.
108
+ 자세한 사용법은 [AXIS Design System 문서](https://axis-design-system.pages.dev)를 참고하세요.
109
109
 
110
110
  ## 라이선스
111
111
 
@@ -1,6 +1,12 @@
1
1
  // src/template/registry-client.ts
2
2
  import fetch from "node-fetch";
3
- var TEMPLATE_REGISTRY_URL = process.env.AXIS_TEMPLATE_URL || "https://axis.minu.best/templates";
3
+
4
+ // src/site.ts
5
+ var AXIS_SITE_URL = "https://axis-design-system.pages.dev";
6
+ var AXIS_QUICK_START_URL = "https://github.com/IDEA-on-Action/AXIS-Design-System/blob/main/docs/guides/quick-start.md";
7
+
8
+ // src/template/registry-client.ts
9
+ var TEMPLATE_REGISTRY_URL = process.env.AXIS_TEMPLATE_URL || `${AXIS_SITE_URL}/templates`;
4
10
  async function fetchTemplateIndex() {
5
11
  const url = `${TEMPLATE_REGISTRY_URL}/index.json`;
6
12
  const res = await fetch(url);
@@ -19,6 +25,8 @@ async function fetchTemplateDetail(slug) {
19
25
  }
20
26
 
21
27
  export {
28
+ AXIS_SITE_URL,
29
+ AXIS_QUICK_START_URL,
22
30
  fetchTemplateIndex,
23
31
  fetchTemplateDetail
24
32
  };
package/dist/index.js CHANGED
@@ -9,9 +9,11 @@ import {
9
9
  registerSyncCommand
10
10
  } from "./chunk-QORBOSUA.js";
11
11
  import {
12
+ AXIS_QUICK_START_URL,
13
+ AXIS_SITE_URL,
12
14
  fetchTemplateDetail,
13
15
  fetchTemplateIndex
14
- } from "./chunk-3WGMHDZL.js";
16
+ } from "./chunk-NVGENR3K.js";
15
17
 
16
18
  // src/index.ts
17
19
  import { Command } from "commander";
@@ -1076,7 +1078,7 @@ var AxisCollector = class extends BaseCollector {
1076
1078
  * 문서 URL 생성
1077
1079
  */
1078
1080
  getDocsUrl(slug, category) {
1079
- const baseUrl = "https://axis.minu.best";
1081
+ const baseUrl = AXIS_SITE_URL;
1080
1082
  const route = category === "agentic" ? "agentic" : "components";
1081
1083
  return `${baseUrl}/${route}/${slug}`;
1082
1084
  }
@@ -1571,7 +1573,7 @@ function deepMerge(target, source) {
1571
1573
  // src/config/axis-config.ts
1572
1574
  import fs6 from "fs-extra";
1573
1575
  import path6 from "path";
1574
- var AXIS_CONFIG_SCHEMA_URL = "https://axis.minu.best/schema.json";
1576
+ var AXIS_CONFIG_SCHEMA_URL = `${AXIS_SITE_URL}/schema.json`;
1575
1577
  var AXIS_CONFIG_FILE = "axis.config.json";
1576
1578
  function createInitConfig(answers, registry) {
1577
1579
  return {
@@ -1682,7 +1684,7 @@ async function applyTemplate(slug, options) {
1682
1684
  async function initTemplate(slug, options) {
1683
1685
  let selectedSlug = slug;
1684
1686
  if (!selectedSlug) {
1685
- const { fetchTemplateIndex: fetchTemplateIndex2 } = await import("./registry-client-RMES4CL5.js");
1687
+ const { fetchTemplateIndex: fetchTemplateIndex2 } = await import("./registry-client-BJ2XYT73.js");
1686
1688
  const index = await fetchTemplateIndex2();
1687
1689
  const { choice } = await prompts({
1688
1690
  type: "select",
@@ -3382,7 +3384,7 @@ var REGISTRY_NAME_MAX_LENGTH = 64;
3382
3384
  function isValidRegistryName(name) {
3383
3385
  return typeof name === "string" && name.length > 0 && name.length <= REGISTRY_NAME_MAX_LENGTH && REGISTRY_NAME_PATTERN.test(name);
3384
3386
  }
3385
- var REGISTRY_PUBLIC_BASE_URL = "https://axis-design-system.pages.dev/r";
3387
+ var REGISTRY_PUBLIC_BASE_URL = `${AXIS_SITE_URL}/r`;
3386
3388
  function redactRegistryUrl(raw) {
3387
3389
  return maskQueryAndHash(redactUserinfo(raw));
3388
3390
  }
@@ -4839,7 +4841,9 @@ async function runAdd(cwd, requested, options, ctx) {
4839
4841
  }
4840
4842
  if (!config) {
4841
4843
  error(
4842
- "axis.config.json\uC744 \uCC3E\uC744 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4.\n \uD574\uACB0: \uD504\uB85C\uC81D\uD2B8 \uB8E8\uD2B8\uC5D0\uC11C 'npx @axis-ds/cli init'\uC744 \uC2E4\uD589\uD558\uC138\uC694.\n \uCC38\uACE0: https://axis.minu.best/docs/guides/quick-start"
4844
+ `axis.config.json\uC744 \uCC3E\uC744 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4.
4845
+ \uD574\uACB0: \uD504\uB85C\uC81D\uD2B8 \uB8E8\uD2B8\uC5D0\uC11C 'npx @axis-ds/cli init'\uC744 \uC2E4\uD589\uD558\uC138\uC694.
4846
+ \uCC38\uACE0: ${AXIS_QUICK_START_URL}`
4843
4847
  );
4844
4848
  return result;
4845
4849
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "axis",
3
- "homepage": "https://axis.minu.best",
3
+ "homepage": "https://axis-design-system.pages.dev",
4
4
  "version": "1.5.0",
5
5
  "items": [
6
6
  {
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://ui.shadcn.com/schema/registry.json",
3
3
  "name": "axis",
4
- "homepage": "https://axis.minu.best",
4
+ "homepage": "https://axis-design-system.pages.dev",
5
5
  "version": "1.5.0",
6
6
  "items": [
7
7
  {
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  fetchTemplateDetail,
3
3
  fetchTemplateIndex
4
- } from "./chunk-3WGMHDZL.js";
4
+ } from "./chunk-NVGENR3K.js";
5
5
  export {
6
6
  fetchTemplateDetail,
7
7
  fetchTemplateIndex
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@axis-ds/cli",
3
- "version": "1.5.0",
3
+ "version": "1.5.1",
4
4
  "type": "module",
5
5
  "description": "AXIS Design System - CLI for adding components (shadcn compatible)",
6
6
  "publishConfig": {
@@ -44,7 +44,7 @@
44
44
  "url": "https://github.com/IDEA-on-Action/AXIS-Design-System.git",
45
45
  "directory": "packages/axis-cli"
46
46
  },
47
- "homepage": "https://axis.minu.best",
47
+ "homepage": "https://axis-design-system.pages.dev",
48
48
  "scripts": {
49
49
  "build": "tsup src/index.ts src/monet.ts src/v0.ts src/sync/index.ts --format esm --dts --clean && node scripts/copy-registry.mjs",
50
50
  "dev": "tsup src/index.ts src/monet.ts src/v0.ts src/sync/index.ts --format esm --watch",