Skip to content

Commit

Permalink
chore: fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
BIYUEHU committed Dec 30, 2023
1 parent 10daec1 commit 7a404da
Show file tree
Hide file tree
Showing 46 changed files with 321 additions and 27 deletions.
3 changes: 3 additions & 0 deletions modules/adapter-cmd/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
"version": "1.0.0",
"description": "Adapter For Cmd",
"main": "lib/index.js",
"scripts": {
"build": "tsc --build"
},
"license": "GPL-3.0",
"author": "Hotaru <[email protected]>",
"peerDependencies": {
Expand Down
11 changes: 10 additions & 1 deletion modules/adapter-cmd/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
{
"extends": "../../tsconfig.node.json"
"extends": "../../tsconfig.node.json",
"compilerOptions": {
"rootDir": "./src",
"outDir": "./lib"
},
"references": [
{
"path": "../../packages/kotori"
}
]
}
3 changes: 3 additions & 0 deletions modules/adapter-onebot/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
"version": "1.1.1",
"description": "Adapter For OneBot (go-cqhttp)",
"main": "lib/index.js",
"scripts": {
"build": "tsc --build"
},
"license": "GPL-3.0",
"author": "Hotaru <[email protected]>",
"peerDependencies": {
Expand Down
11 changes: 10 additions & 1 deletion modules/adapter-onebot/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
{
"extends": "../../tsconfig.node.json"
"extends": "../../tsconfig.node.json",
"compilerOptions": {
"rootDir": "./src",
"outDir": "./lib"
},
"references": [
{
"path": "../../packages/kotori"
}
]
}
3 changes: 3 additions & 0 deletions modules/adapter-qq/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
"version": "1.0.0",
"description": "Adapter For QQ Base On Tencent Api",
"main": "lib/index.js",
"scripts": {
"build": "tsc --build"
},
"license": "GPL-3.0",
"author": "Hotaru <[email protected]>",
"scripts": {
Expand Down
11 changes: 10 additions & 1 deletion modules/adapter-qq/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
{
"extends": "../../tsconfig.node.json"
"extends": "../../tsconfig.node.json",
"compilerOptions": {
"rootDir": "./src",
"outDir": "./lib"
},
"references": [
{
"path": "../../packages/kotori"
}
]
}
3 changes: 3 additions & 0 deletions modules/bangumi/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
"version": "1.1.1",
"description": "bangumi plugin",
"main": "lib/index.js",
"scripts": {
"build": "tsc --build"
},
"license": "GPL-3.0",
"author": "Himeno <[email protected]>",
"peerDependencies": {
Expand Down
4 changes: 2 additions & 2 deletions modules/bangumi/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Context, Tsu, stringTemp } from 'kotori-bot';
import { CommandResult, Context, Tsu, stringTemp } from 'kotori-bot';
import http from './http';

const bgm1Schema = Tsu.Object({
Expand Down Expand Up @@ -74,7 +74,7 @@ export function main(ctx: Context) {
}

const result = res.list[(data.args[1] as number) - 1];
if (!result) return session.error('num_error');
if (!result) return session.error('num_error' as keyof CommandResult);
const res2 = bgm2Schema.parse(await http(`v0/subjects/${result.id}`));
if ('title' in res2) return ['bangumi.msg.bgm.fail', { input: data.args[0] }];
return [
Expand Down
12 changes: 12 additions & 0 deletions modules/bangumi/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"extends": "../../tsconfig.node.json",
"compilerOptions": {
"rootDir": "./src",
"outDir": "./lib"
},
"references": [
{
"path": "../../packages/kotori"
}
]
}
3 changes: 3 additions & 0 deletions modules/better-join/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
"version": "1.0.0",
"description": "better join tips,before close manger's join welcome",
"main": "lib/index.js",
"scripts": {
"build": "tsc --build"
},
"license": "GPL-3.0",
"author": "Himeno <[email protected]>",
"peerDependencies": {
Expand Down
12 changes: 12 additions & 0 deletions modules/better-join/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"extends": "../../tsconfig.node.json",
"compilerOptions": {
"rootDir": "./src",
"outDir": "./lib"
},
"references": [
{
"path": "../../packages/kotori"
}
]
}
3 changes: 3 additions & 0 deletions modules/bilibili/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
"version": "1.1.0",
"description": "bilibili plugin",
"main": "lib/index.js",
"scripts": {
"build": "tsc --build"
},
"license": "GPL-3.0",
"author": "Himeno <[email protected]>",
"peerDependencies": {
Expand Down
12 changes: 12 additions & 0 deletions modules/bilibili/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"extends": "../../tsconfig.node.json",
"compilerOptions": {
"rootDir": "./src",
"outDir": "./lib"
},
"references": [
{
"path": "../../packages/kotori"
}
]
}
3 changes: 3 additions & 0 deletions modules/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
"version": "1.1.0",
"description": "core plugin",
"main": "lib/index.js",
"scripts": {
"build": "tsc --build"
},
"license": "GPL-3.0",
"author": "Hotaru <[email protected]>",
"peerDependencies": {
Expand Down
12 changes: 12 additions & 0 deletions modules/core/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"extends": "../../tsconfig.node.json",
"compilerOptions": {
"rootDir": "./src",
"outDir": "./lib"
},
"references": [
{
"path": "../../packages/kotori"
}
]
}
3 changes: 3 additions & 0 deletions modules/github/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
"version": "1.1.0",
"description": "github repository searching",
"main": "lib/index.js",
"scripts": {
"build": "tsc --build"
},
"license": "GPL-3.0",
"author": "Hotaru <[email protected]>",
"peerDependencies": {
Expand Down
12 changes: 12 additions & 0 deletions modules/github/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"extends": "../../tsconfig.node.json",
"compilerOptions": {
"rootDir": "./src",
"outDir": "./lib"
},
"references": [
{
"path": "../../packages/kotori"
}
]
}
3 changes: 3 additions & 0 deletions modules/goodnight/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
"version": "1.1.0",
"description": "And in case i don't see you,good afternoon,good evening,and good night!",
"main": "lib/index.js",
"scripts": {
"build": "tsc --build"
},
"license": "GPL-3.0",
"author": "Hotaru <[email protected]>",
"peerDependencies": {
Expand Down
File renamed without changes.
12 changes: 12 additions & 0 deletions modules/goodnight/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"extends": "../../tsconfig.node.json",
"compilerOptions": {
"rootDir": "./src",
"outDir": "./lib"
},
"references": [
{
"path": "../../packages/kotori"
}
]
}
3 changes: 3 additions & 0 deletions modules/helper/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
"version": "1.1.0",
"description": "helper plugin",
"main": "lib/index.js",
"scripts": {
"build": "tsc --build"
},
"license": "GPL-3.0",
"author": "Hotaru <[email protected]>",
"peerDependencies": {
Expand Down
12 changes: 12 additions & 0 deletions modules/helper/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"extends": "../../tsconfig.node.json",
"compilerOptions": {
"rootDir": "./src",
"outDir": "./lib"
},
"references": [
{
"path": "../../packages/kotori"
}
]
}
3 changes: 3 additions & 0 deletions modules/hitokotos/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
"version": "1.1.0",
"description": "Seventeen kind of different sentences",
"main": "lib/index.js",
"scripts": {
"build": "tsc --build"
},
"license": "GPL-3.0",
"author": "Hotaru <[email protected]>",
"peerDependencies": {
Expand Down
12 changes: 12 additions & 0 deletions modules/hitokotos/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"extends": "../../tsconfig.node.json",
"compilerOptions": {
"rootDir": "./src",
"outDir": "./lib"
},
"references": [
{
"path": "../../packages/kotori"
}
]
}
3 changes: 3 additions & 0 deletions modules/i18n-command/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
"version": "1.1.0",
"description": "i18n for command",
"main": "lib/index.js",
"scripts": {
"build": "tsc --build"
},
"license": "GPL-3.0",
"author": "Hotaru <[email protected]>",
"peerDependencies": {
Expand Down
12 changes: 12 additions & 0 deletions modules/i18n-command/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"extends": "../../tsconfig.node.json",
"compilerOptions": {
"rootDir": "./src",
"outDir": "./lib"
},
"references": [
{
"path": "../../packages/kotori"
}
]
}
3 changes: 3 additions & 0 deletions modules/mediawiki/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
"version": "1.1.0",
"description": "mediawiki search tool",
"main": "lib/index.js",
"scripts": {
"build": "tsc --build"
},
"license": "GPL-3.0",
"author": "Himeno <[email protected]>",
"peerDependencies": {
Expand Down
12 changes: 12 additions & 0 deletions modules/mediawiki/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"extends": "../../tsconfig.node.json",
"compilerOptions": {
"rootDir": "./src",
"outDir": "./lib"
},
"references": [
{
"path": "../../packages/kotori"
}
]
}
3 changes: 3 additions & 0 deletions modules/menu/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
"version": "1.0.0",
"description": "menu plugin",
"main": "lib/index.js",
"scripts": {
"build": "tsc --build"
},
"license": "GPL-3.0",
"author": "Hotaru <[email protected]>",
"peerDependencies": {
Expand Down
12 changes: 12 additions & 0 deletions modules/menu/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"extends": "../../tsconfig.node.json",
"compilerOptions": {
"rootDir": "./src",
"outDir": "./lib"
},
"references": [
{
"path": "../../packages/kotori"
}
]
}
3 changes: 3 additions & 0 deletions modules/music/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
"version": "1.1.0",
"description": "music plugin",
"main": "lib/index.js",
"scripts": {
"build": "tsc --build"
},
"license": "GPL-3.0",
"author": "Himeno <[email protected]>",
"peerDependencies": {
Expand Down
12 changes: 12 additions & 0 deletions modules/music/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"extends": "../../tsconfig.node.json",
"compilerOptions": {
"rootDir": "./src",
"outDir": "./lib"
},
"references": [
{
"path": "../../packages/kotori"
}
]
}
3 changes: 3 additions & 0 deletions modules/newnew/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
"version": "1.1.0",
"description": "查看今日牛牛的长度和排行",
"main": "lib/index.js",
"scripts": {
"build": "tsc --build"
},
"license": "GPL-3.0",
"author": "Himeno <[email protected]>",
"peerDependencies": {
Expand Down
Loading

0 comments on commit 7a404da

Please sign in to comment.