diff --git a/packages/config/package.json b/packages/config/package.json index 1c37348..9d084fe 100644 --- a/packages/config/package.json +++ b/packages/config/package.json @@ -12,7 +12,7 @@ "sideEffects": false, "license": "MIT", "scripts": { - "build": "tsc src/*.ts --outDir lib --skipLibCheck --declaration --lib ES6" + "build": "tsc src/index.ts --outDir lib --skipLibCheck --declaration --lib ES6" }, "files": [ "lib", diff --git a/packages/constants/package.json b/packages/constants/package.json index 35fa98e..1bf83a6 100644 --- a/packages/constants/package.json +++ b/packages/constants/package.json @@ -12,7 +12,7 @@ "sideEffects": false, "license": "MIT", "scripts": { - "build": "tsc src/*.ts --outDir lib --skipLibCheck --declaration --lib ES6" + "build": "tsc src/index.ts --outDir lib --skipLibCheck --declaration --lib ES6" }, "files": [ "lib", diff --git a/packages/domains/lib/api/collector.d.ts b/packages/domains/lib/api/collector.d.ts deleted file mode 100644 index 92a4487..0000000 --- a/packages/domains/lib/api/collector.d.ts +++ /dev/null @@ -1,34 +0,0 @@ -export declare const CollectorApiDefinition: { - /** - * 收藏(或取消收藏) - */ - toggle: { - method: "post"; - server: "toggle"; - client: () => string; - }; - /** - * 检测是否收藏 - */ - check: { - method: "post"; - server: "check"; - client: () => string; - }; - /** - * 获取收藏的知识库 - */ - wikis: { - method: "get"; - server: "wikis"; - client: () => string; - }; - /** - * 获取收藏的文档 - */ - documents: { - method: "get"; - server: "documents"; - client: () => string; - }; -}; diff --git a/packages/domains/lib/api/collector.js b/packages/domains/lib/api/collector.js deleted file mode 100644 index 130e37c..0000000 --- a/packages/domains/lib/api/collector.js +++ /dev/null @@ -1,37 +0,0 @@ -"use strict"; -exports.__esModule = true; -exports.CollectorApiDefinition = void 0; -exports.CollectorApiDefinition = { - /** - * 收藏(或取消收藏) - */ - toggle: { - method: 'post', - server: 'toggle', - client: function () { return '/collector/toggle'; } - }, - /** - * 检测是否收藏 - */ - check: { - method: 'post', - server: 'check', - client: function () { return '/collector/check'; } - }, - /** - * 获取收藏的知识库 - */ - wikis: { - method: 'get', - server: 'wikis', - client: function () { return '/collector/wikis'; } - }, - /** - * 获取收藏的文档 - */ - documents: { - method: 'get', - server: 'documents', - client: function () { return '/collector/documents'; } - } -}; diff --git a/packages/domains/lib/models/collector.d.ts b/packages/domains/lib/models/collector.d.ts deleted file mode 100644 index 7da9b70..0000000 --- a/packages/domains/lib/models/collector.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -export declare enum CollectType { - document = "document", - wiki = "wiki" -} diff --git a/packages/domains/lib/models/collector.js b/packages/domains/lib/models/collector.js deleted file mode 100644 index 3100a7c..0000000 --- a/packages/domains/lib/models/collector.js +++ /dev/null @@ -1,8 +0,0 @@ -"use strict"; -exports.__esModule = true; -exports.CollectType = void 0; -var CollectType; -(function (CollectType) { - CollectType["document"] = "document"; - CollectType["wiki"] = "wiki"; -})(CollectType = exports.CollectType || (exports.CollectType = {})); diff --git a/packages/domains/package.json b/packages/domains/package.json index 34dd08e..c025383 100644 --- a/packages/domains/package.json +++ b/packages/domains/package.json @@ -12,7 +12,7 @@ "sideEffects": false, "license": "MIT", "scripts": { - "build": "tsc src/*.ts --outDir lib --skipLibCheck --declaration --lib ES6" + "build": "tsc src/index.ts --outDir lib --skipLibCheck --declaration --lib ES6" }, "files": [ "lib",