@alauda/doom 1.1.0 → 1.1.2

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/lib/cli/index.js CHANGED
@@ -10,7 +10,7 @@ import { watch } from 'chokidar';
10
10
  import { program } from 'commander';
11
11
  import { green } from 'yoctocolors';
12
12
  import { setNodeEnv } from '../utils/index.js';
13
- import { CWD, DEFAULT_CONFIGS, I18N_FILE, SITES_FILE } from './constants.js';
13
+ import { CWD, DEFAULT_CONFIGS, SITES_FILE } from './constants.js';
14
14
  import { exportCommand } from './export.js';
15
15
  import { parseBoolean, parseBooleanOrString } from './helpers.js';
16
16
  import { lintCommand } from './lint.js';
@@ -18,7 +18,7 @@ import { loadConfig } from './load-config.js';
18
18
  import { newCommand } from './new.js';
19
19
  import { translateCommand } from './translate.js';
20
20
  const META_FILE = '_meta.json';
21
- const CONFIG_FILES = [...DEFAULT_CONFIGS, I18N_FILE, SITES_FILE];
21
+ const CONFIG_FILES = [...DEFAULT_CONFIGS, SITES_FILE];
22
22
  const cjsRequire = module.createRequire(import.meta.url);
23
23
  const pkg = cjsRequire('../../package.json');
24
24
  program
@@ -87,8 +87,7 @@ program
87
87
  if (eventName === 'add' ||
88
88
  eventName === 'unlink' ||
89
89
  (eventName === 'change' &&
90
- (filepath === config.i18nSourcePath ||
91
- CONFIG_FILES.includes(path.basename(filepath)) ||
90
+ (CONFIG_FILES.includes(path.basename(filepath)) ||
92
91
  path.basename(filepath) === META_FILE))) {
93
92
  if (isRestarting) {
94
93
  return;
@@ -20,9 +20,9 @@ const LEGACY_NAV_ITEMS = LEGACY_VERSIONS.map((v) => ({
20
20
  text: v,
21
21
  link: `https://docs.alauda.io/document/release-notes?version=${v}`,
22
22
  }));
23
- const ALLOW_LEGACY_DOMAINS = ['docs.alauda.cn', 'docs.alauda.io'];
23
+ const ALLOWED_LEGACY_DOMAINS = new Set(['docs.alauda.cn', 'docs.alauda.io']);
24
24
  if (!isProduction()) {
25
- ALLOW_LEGACY_DOMAINS.push('localhost');
25
+ ALLOWED_LEGACY_DOMAINS.add('localhost');
26
26
  }
27
27
  const VersionsNav_ = () => {
28
28
  const { siteData } = usePageData();
@@ -99,7 +99,7 @@ const VersionsNav_ = () => {
99
99
  ? { text: v, items: [] }
100
100
  : { text: v, link: `${versionsBase}/${v}/`, activeMatch: v });
101
101
  if (versionsBase != null &&
102
- ALLOW_LEGACY_DOMAINS.includes(location.hostname) &&
102
+ ALLOWED_LEGACY_DOMAINS.has(location.hostname) &&
103
103
  virtual.userBase === ACP_BASE) {
104
104
  versionItems.push(...LEGACY_NAV_ITEMS);
105
105
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alauda/doom",
3
- "version": "1.1.0",
3
+ "version": "1.1.2",
4
4
  "type": "module",
5
5
  "description": "Doctor Doom making docs.",
6
6
  "repository": "git+https://github.com/alauda/doom.git",
@@ -35,7 +35,7 @@
35
35
  ],
36
36
  "dependencies": {
37
37
  "@cspell/eslint-plugin": "^8.19.4 || ^9.0.2",
38
- "@eslint-react/eslint-plugin": "^1.51.1",
38
+ "@eslint-react/eslint-plugin": "^1.51.2",
39
39
  "@inquirer/prompts": "^7.5.3",
40
40
  "@openapi-contrib/openapi-schema-to-json-schema": "^5.1.0",
41
41
  "@playwright/browser-chromium": "^1.52.0",
@@ -47,12 +47,13 @@
47
47
  "@rspress/plugin-algolia": "2.0.0-beta.11",
48
48
  "@rspress/plugin-llms": "^2.0.0-beta.11",
49
49
  "@shikijs/transformers": "^3.6.0",
50
+ "@total-typescript/ts-reset": "^0.6.1",
50
51
  "chokidar": "^4.0.3",
51
52
  "cli-progress": "^3.12.0",
52
53
  "clsx": "^2.1.1",
53
54
  "commander": "^13.1.0 || ^14.0.0",
54
55
  "ejs": "^3.1.10",
55
- "es-toolkit": "^1.39.1",
56
+ "es-toolkit": "^1.39.3",
56
57
  "eslint": "^9.28.0",
57
58
  "eslint-plugin-mdx": "^3.4.2",
58
59
  "html-tag-names": "^2.1.0",