Skip to content

Commit 1aa1119

Browse files
author
niuweili
committed
fix: reset pkg.json
1 parent 7fa5ad8 commit 1aa1119

3 files changed

Lines changed: 68 additions & 27 deletions

File tree

package.json

Lines changed: 44 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,55 @@
11
{
2-
"name": "flashduty-docs",
3-
"version": "1.0.0",
4-
"description": "FlashDuty Documentation",
2+
"name": "flashduty-knowledge-base",
3+
"version": "1.2.5-beta.2",
4+
"description": "flashduty knowledge base",
55
"type": "module",
66
"scripts": {
7+
"build": "tsc && npm run build:iife && npm run build:esm",
8+
"build:iife": "rm -rf dist/iife && vite build --mode iife",
9+
"build:esm": "rm -rf dist/esm && vite build --mode esm",
10+
"prepublishOnly": "npm run build",
11+
"upload": "npm run build:iife && node scripts/upload.mjs",
712
"docs:dev": "vitepress dev docs",
813
"docs:build": "vitepress build docs",
914
"docs:preview": "vitepress preview docs"
1015
},
16+
"exports": {
17+
"./zh": {
18+
"import": "./dist/esm/zh.js"
19+
},
20+
"./en": {
21+
"import": "./dist/esm/en.js"
22+
}
23+
},
24+
"files": [
25+
"dist"
26+
],
27+
"keywords": [
28+
"md",
29+
"js"
30+
],
31+
"author": "niuweili",
32+
"license": "ISC",
33+
"repository": {
34+
"type": "git",
35+
"url": "https://github.com/flashcatcloud/knowledge-base.git"
36+
},
37+
"bugs": {
38+
"url": "https://github.com/flashcatcloud/knowledge-base/issues"
39+
},
40+
"homepage": "https://docs.flashcat.cloud",
41+
"publishConfig": {
42+
"access": "public"
43+
},
1144
"devDependencies": {
45+
"@alicloud/cdn20180510": "^1.0.10",
46+
"@alicloud/openapi-client": "^0.4.12",
47+
"@alicloud/tea-typescript": "^1.8.0",
48+
"@types/node": "^22.13.1",
49+
"ali-oss": "^6.22.0",
50+
"dotenv": "^16.4.7",
51+
"typescript": "^5.7.3",
52+
"vite": "^5.4.11",
1253
"vitepress": "^1.6.3"
1354
}
1455
}

src/en.ts

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -49,27 +49,27 @@ import DingtalkAlert from "../flashduty/en/1. On-call/8. Integrations/8.1 Alerts
4949
/** ⬆️⬆️⬆️⬆️ 告警集成 ⬆️⬆️⬆️⬆️ */
5050

5151
/** ⬇️⬇️⬇️⬇️ 变更事件 ⬇️⬇️⬇️⬇️ */
52-
import CustomChange from "../flashduty/en/8. Integrations/8.2 Change integration/8.2.1 Standard Change Event.md?raw";
53-
import Jira from "../flashduty/en/8. Integrations/8.2 Change integration/8.2.2 Jira Issue Events.md?raw";
52+
import CustomChange from "../flashduty/en/1. On-call/8. Integrations/8.2 Change integration/8.2.1 Standard Change Event.md?raw";
53+
import Jira from "../flashduty/en/1. On-call/8. Integrations/8.2 Change integration/8.2.2 Jira Issue Events.md?raw";
5454
/** ⬆️⬆️⬆️⬆️ 变更事件 ⬆️⬆️⬆️⬆️ */
5555

5656
/** ⬇️⬇️⬇️⬇️ IM ⬇️⬇️⬇️⬇️ */
57-
import Lark from "../flashduty/en/8. Integrations/8.3 IM integration/8.3.1 Feishu(Lark) Integration Guide.md?raw";
58-
import Dingtalk from "../flashduty/en/8. Integrations/8.3 IM integration/8.3.2 Dingtalk Integration Guide.md?raw";
59-
import Wecom from "../flashduty/en/8. Integrations/8.3 IM integration/8.3.3 WeCom Integration Guide.md?raw";
60-
import Slack from "../flashduty/en/8. Integrations/8.3 IM integration/8.3.4 Slack Integration Guide.md?raw";
61-
import MicrosoftTeams from "../flashduty/en/8. Integrations/8.3 IM integration/8.3.5 Microsoft Teams Integration Guide.md?raw";
57+
import Lark from "../flashduty/en/1. On-call/8. Integrations/8.3 IM integration/8.3.1 Feishu(Lark) Integration Guide.md?raw";
58+
import Dingtalk from "../flashduty/en/1. On-call/8. Integrations/8.3 IM integration/8.3.2 Dingtalk Integration Guide.md?raw";
59+
import Wecom from "../flashduty/en/1. On-call/8. Integrations/8.3 IM integration/8.3.3 WeCom Integration Guide.md?raw";
60+
import Slack from "../flashduty/en/1. On-call/8. Integrations/8.3 IM integration/8.3.4 Slack Integration Guide.md?raw";
61+
import MicrosoftTeams from "../flashduty/en/1. On-call/8. Integrations/8.3 IM integration/8.3.5 Microsoft Teams Integration Guide.md?raw";
6262
/** ⬆️⬆️⬆️⬆️ IM ⬆️⬆️⬆️⬆️ */
6363

6464
/** ⬇️⬇️⬇️⬇️ Webhooks ⬇️⬇️⬇️⬇️ */
65-
import AlertWebhook from "../flashduty/en/8. Integrations/8.5 Webhooks/8.5.1 Alert webhook.md?raw";
66-
import IncidentWebhook from "../flashduty/en/8. Integrations/8.5 Webhooks/8.5.2 Incident webhook.md?raw";
67-
import CustomAction from "../flashduty/en/8. Integrations/8.5 Webhooks/8.5.3 Custom action.md?raw";
68-
import JiraSync from "../flashduty/en/8. Integrations/8.5 Webhooks/8.5.4 Jira sync.md?raw";
65+
import AlertWebhook from "../flashduty/en/1. On-call/8. Integrations/8.5 Webhooks/8.5.1 Alert webhook.md?raw";
66+
import IncidentWebhook from "../flashduty/en/1. On-call/8. Integrations/8.5 Webhooks/8.5.2 Incident webhook.md?raw";
67+
import CustomAction from "../flashduty/en/1. On-call/8. Integrations/8.5 Webhooks/8.5.3 Custom action.md?raw";
68+
import JiraSync from "../flashduty/en/1. On-call/8. Integrations/8.5 Webhooks/8.5.4 Jira sync.md?raw";
6969
/** ⬆️⬆️⬆️⬆️ Webhooks ⬆️⬆️⬆️⬆️ */
7070

7171
/** 模版 */
72-
import Templates from "../flashduty/en/3. Configure Flashduty/3.7 Templates.md?raw";
72+
import Templates from "../flashduty/en/1. On-call/4. Configure On-call/4.7 Templates.md?raw";
7373

7474
const docs = {
7575
CustomAlert,

src/zh.ts

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -49,27 +49,27 @@ import DingtalkAlert from "../flashduty/zh/1. On-call/5. 集成引导/8.1 告警
4949
/** ⬆️⬆️⬆️⬆️ 告警集成 ⬆️⬆️⬆️⬆️ */
5050

5151
/** ⬇️⬇️⬇️⬇️ 变更事件 ⬇️⬇️⬇️⬇️ */
52-
import CustomChange from "../flashduty/zh/8. 集成引导/8.2 变更集成/8.2.1 自定义事件集成指引.md?raw";
53-
import Jira from "../flashduty/zh/8. 集成引导/8.2 变更集成/8.2.2 Jira 事件集成指引.md?raw";
52+
import CustomChange from "../flashduty/zh/1. On-call/5. 集成引导/8.2 变更集成/8.2.1 自定义事件集成指引.md?raw";
53+
import Jira from "../flashduty/zh/1. On-call/5. 集成引导/8.2 变更集成/8.2.2 Jira 事件集成指引.md?raw";
5454
/** ⬆️⬆️⬆️⬆️ 变更事件 ⬆️⬆️⬆️⬆️ */
5555

5656
/** ⬇️⬇️⬇️⬇️ IM ⬇️⬇️⬇️⬇️ */
57-
import Lark from "../flashduty/zh/8. 集成引导/8.3 即时消息/8.3.1 飞书 Lark 集成指引.md?raw";
58-
import Dingtalk from "../flashduty/zh/8. 集成引导/8.3 即时消息/8.3.2 钉钉 Dingtalk 集成指引.md?raw";
59-
import Wecom from "../flashduty/zh/8. 集成引导/8.3 即时消息/8.3.3 企业微信 Wecom 集成指引.md?raw";
60-
import Slack from "../flashduty/zh/8. 集成引导/8.3 即时消息/8.3.4 Slack 集成指引.md?raw";
61-
import MicrosoftTeams from "../flashduty/zh/8. 集成引导/8.3 即时消息/8.3.5 Microsoft Teams 集成指引.md?raw";
57+
import Lark from "../flashduty/zh/1. On-call/5. 集成引导/8.3 即时消息/8.3.1 飞书 Lark 集成指引.md?raw";
58+
import Dingtalk from "../flashduty/zh/1. On-call/5. 集成引导/8.3 即时消息/8.3.2 钉钉 Dingtalk 集成指引.md?raw";
59+
import Wecom from "../flashduty/zh/1. On-call/5. 集成引导/8.3 即时消息/8.3.3 企业微信 Wecom 集成指引.md?raw";
60+
import Slack from "../flashduty/zh/1. On-call/5. 集成引导/8.3 即时消息/8.3.4 Slack 集成指引.md?raw";
61+
import MicrosoftTeams from "../flashduty/zh/1. On-call/5. 集成引导/8.3 即时消息/8.3.5 Microsoft Teams 集成指引.md?raw";
6262
/** ⬆️⬆️⬆️⬆️ IM ⬆️⬆️⬆️⬆️ */
6363

6464
/** ⬇️⬇️⬇️⬇️ Webhooks ⬇️⬇️⬇️⬇️ */
65-
import AlertWebhook from "../flashduty/zh/8. 集成引导/8.5 Webhooks/8.5.1 告警 webhook.md?raw";
66-
import IncidentWebhook from "../flashduty/zh/8. 集成引导/8.5 Webhooks/8.5.2 故障 webhook.md?raw";
67-
import CustomAction from "../flashduty/zh/8. 集成引导/8.5 Webhooks/8.5.3 自定义操作.md?raw";
68-
import JiraSync from "../flashduty/zh/8. 集成引导/8.5 Webhooks/8.5.4 Jira 同步.md?raw";
65+
import AlertWebhook from "../flashduty/zh/1. On-call/5. 集成引导/8.5 Webhooks/8.5.1 告警 webhook.md?raw";
66+
import IncidentWebhook from "../flashduty/zh/1. On-call/5. 集成引导/8.5 Webhooks/8.5.2 故障 webhook.md?raw";
67+
import CustomAction from "../flashduty/zh/1. On-call/5. 集成引导/8.5 Webhooks/8.5.3 自定义操作.md?raw";
68+
import JiraSync from "../flashduty/zh/1. On-call/5. 集成引导/8.5 Webhooks/8.5.4 Jira 同步.md?raw";
6969
/** ⬆️⬆️⬆️⬆️ Webhooks ⬆️⬆️⬆️⬆️ */
7070

7171
/** 模版 */
72-
import Templates from "../flashduty/zh/3. 配置Flashduty/3.7 配置通知模板.md?raw";
72+
import Templates from "../flashduty/zh/1. On-call/3. 配置管理/4.7 配置通知模板.md?raw";
7373

7474
const docs = {
7575
CustomAlert,

0 commit comments

Comments
 (0)