From 7a404da967c308df595f38f95664bab7d1ab4fe3 Mon Sep 17 00:00:00 2001 From: Hotaru Date: Sat, 30 Dec 2023 15:11:24 +0800 Subject: [PATCH] chore: fix build --- modules/adapter-cmd/package.json | 3 ++ modules/adapter-cmd/tsconfig.json | 11 +++++- modules/adapter-onebot/package.json | 3 ++ modules/adapter-onebot/tsconfig.json | 11 +++++- modules/adapter-qq/package.json | 3 ++ modules/adapter-qq/tsconfig.json | 11 +++++- modules/bangumi/package.json | 3 ++ modules/bangumi/src/index.ts | 4 +-- modules/bangumi/tsconfig.json | 12 +++++++ modules/better-join/package.json | 3 ++ modules/better-join/tsconfig.json | 12 +++++++ modules/bilibili/package.json | 3 ++ modules/bilibili/tsconfig.json | 12 +++++++ modules/core/package.json | 3 ++ modules/core/tsconfig.json | 12 +++++++ modules/github/package.json | 3 ++ modules/github/tsconfig.json | 12 +++++++ modules/goodnight/package.json | 3 ++ .../goodnight/src/{method.ts => method.tss} | 0 modules/goodnight/tsconfig.json | 12 +++++++ modules/helper/package.json | 3 ++ modules/helper/tsconfig.json | 12 +++++++ modules/hitokotos/package.json | 3 ++ modules/hitokotos/tsconfig.json | 12 +++++++ modules/i18n-command/package.json | 3 ++ modules/i18n-command/tsconfig.json | 12 +++++++ modules/mediawiki/package.json | 3 ++ modules/mediawiki/tsconfig.json | 12 +++++++ modules/menu/package.json | 3 ++ modules/menu/tsconfig.json | 12 +++++++ modules/music/package.json | 3 ++ modules/music/tsconfig.json | 12 +++++++ modules/newnew/package.json | 3 ++ modules/newnew/tsconfig.json | 12 +++++++ modules/nmsl/package.json | 3 ++ modules/nmsl/tsconfig.json | 12 +++++++ modules/random-img/package.json | 3 ++ modules/random-img/tsconfig.json | 12 +++++++ modules/testing/package.json | 3 ++ modules/testing/src/index.ts | 35 +++++++++---------- modules/testing/tsconfig.json | 12 +++++++ modules/weather/package.json | 3 ++ modules/weather/tsconfig.json | 12 +++++++ package.json | 4 +-- packages/logger/tsconfig.json | 7 +++- packages/tools/package.json | 1 - 46 files changed, 321 insertions(+), 27 deletions(-) create mode 100644 modules/bangumi/tsconfig.json create mode 100644 modules/better-join/tsconfig.json create mode 100644 modules/bilibili/tsconfig.json create mode 100644 modules/core/tsconfig.json create mode 100644 modules/github/tsconfig.json rename modules/goodnight/src/{method.ts => method.tss} (100%) create mode 100644 modules/goodnight/tsconfig.json create mode 100644 modules/helper/tsconfig.json create mode 100644 modules/hitokotos/tsconfig.json create mode 100644 modules/i18n-command/tsconfig.json create mode 100644 modules/mediawiki/tsconfig.json create mode 100644 modules/menu/tsconfig.json create mode 100644 modules/music/tsconfig.json create mode 100644 modules/newnew/tsconfig.json create mode 100644 modules/nmsl/tsconfig.json create mode 100644 modules/random-img/tsconfig.json create mode 100644 modules/testing/tsconfig.json create mode 100644 modules/weather/tsconfig.json diff --git a/modules/adapter-cmd/package.json b/modules/adapter-cmd/package.json index 120a69c2..27be74ff 100644 --- a/modules/adapter-cmd/package.json +++ b/modules/adapter-cmd/package.json @@ -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 ", "peerDependencies": { diff --git a/modules/adapter-cmd/tsconfig.json b/modules/adapter-cmd/tsconfig.json index dcbf9f3c..fe2bbf83 100644 --- a/modules/adapter-cmd/tsconfig.json +++ b/modules/adapter-cmd/tsconfig.json @@ -1,3 +1,12 @@ { - "extends": "../../tsconfig.node.json" + "extends": "../../tsconfig.node.json", + "compilerOptions": { + "rootDir": "./src", + "outDir": "./lib" + }, + "references": [ + { + "path": "../../packages/kotori" + } + ] } \ No newline at end of file diff --git a/modules/adapter-onebot/package.json b/modules/adapter-onebot/package.json index 07100e52..ee13446e 100644 --- a/modules/adapter-onebot/package.json +++ b/modules/adapter-onebot/package.json @@ -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 ", "peerDependencies": { diff --git a/modules/adapter-onebot/tsconfig.json b/modules/adapter-onebot/tsconfig.json index dcbf9f3c..fe2bbf83 100644 --- a/modules/adapter-onebot/tsconfig.json +++ b/modules/adapter-onebot/tsconfig.json @@ -1,3 +1,12 @@ { - "extends": "../../tsconfig.node.json" + "extends": "../../tsconfig.node.json", + "compilerOptions": { + "rootDir": "./src", + "outDir": "./lib" + }, + "references": [ + { + "path": "../../packages/kotori" + } + ] } \ No newline at end of file diff --git a/modules/adapter-qq/package.json b/modules/adapter-qq/package.json index e0d4bf03..b533ff55 100644 --- a/modules/adapter-qq/package.json +++ b/modules/adapter-qq/package.json @@ -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 ", "scripts": { diff --git a/modules/adapter-qq/tsconfig.json b/modules/adapter-qq/tsconfig.json index dcbf9f3c..fe2bbf83 100644 --- a/modules/adapter-qq/tsconfig.json +++ b/modules/adapter-qq/tsconfig.json @@ -1,3 +1,12 @@ { - "extends": "../../tsconfig.node.json" + "extends": "../../tsconfig.node.json", + "compilerOptions": { + "rootDir": "./src", + "outDir": "./lib" + }, + "references": [ + { + "path": "../../packages/kotori" + } + ] } \ No newline at end of file diff --git a/modules/bangumi/package.json b/modules/bangumi/package.json index 9d53595c..17c92af6 100644 --- a/modules/bangumi/package.json +++ b/modules/bangumi/package.json @@ -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 ", "peerDependencies": { diff --git a/modules/bangumi/src/index.ts b/modules/bangumi/src/index.ts index 30185331..a3822d74 100644 --- a/modules/bangumi/src/index.ts +++ b/modules/bangumi/src/index.ts @@ -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({ @@ -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 [ diff --git a/modules/bangumi/tsconfig.json b/modules/bangumi/tsconfig.json new file mode 100644 index 00000000..fe2bbf83 --- /dev/null +++ b/modules/bangumi/tsconfig.json @@ -0,0 +1,12 @@ +{ + "extends": "../../tsconfig.node.json", + "compilerOptions": { + "rootDir": "./src", + "outDir": "./lib" + }, + "references": [ + { + "path": "../../packages/kotori" + } + ] +} \ No newline at end of file diff --git a/modules/better-join/package.json b/modules/better-join/package.json index cae80274..7dda2837 100644 --- a/modules/better-join/package.json +++ b/modules/better-join/package.json @@ -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 ", "peerDependencies": { diff --git a/modules/better-join/tsconfig.json b/modules/better-join/tsconfig.json new file mode 100644 index 00000000..fe2bbf83 --- /dev/null +++ b/modules/better-join/tsconfig.json @@ -0,0 +1,12 @@ +{ + "extends": "../../tsconfig.node.json", + "compilerOptions": { + "rootDir": "./src", + "outDir": "./lib" + }, + "references": [ + { + "path": "../../packages/kotori" + } + ] +} \ No newline at end of file diff --git a/modules/bilibili/package.json b/modules/bilibili/package.json index 24013e47..3443c8d6 100644 --- a/modules/bilibili/package.json +++ b/modules/bilibili/package.json @@ -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 ", "peerDependencies": { diff --git a/modules/bilibili/tsconfig.json b/modules/bilibili/tsconfig.json new file mode 100644 index 00000000..fe2bbf83 --- /dev/null +++ b/modules/bilibili/tsconfig.json @@ -0,0 +1,12 @@ +{ + "extends": "../../tsconfig.node.json", + "compilerOptions": { + "rootDir": "./src", + "outDir": "./lib" + }, + "references": [ + { + "path": "../../packages/kotori" + } + ] +} \ No newline at end of file diff --git a/modules/core/package.json b/modules/core/package.json index d1e6e234..cd8612e8 100644 --- a/modules/core/package.json +++ b/modules/core/package.json @@ -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 ", "peerDependencies": { diff --git a/modules/core/tsconfig.json b/modules/core/tsconfig.json new file mode 100644 index 00000000..fe2bbf83 --- /dev/null +++ b/modules/core/tsconfig.json @@ -0,0 +1,12 @@ +{ + "extends": "../../tsconfig.node.json", + "compilerOptions": { + "rootDir": "./src", + "outDir": "./lib" + }, + "references": [ + { + "path": "../../packages/kotori" + } + ] +} \ No newline at end of file diff --git a/modules/github/package.json b/modules/github/package.json index 8be09466..4786bb06 100644 --- a/modules/github/package.json +++ b/modules/github/package.json @@ -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 ", "peerDependencies": { diff --git a/modules/github/tsconfig.json b/modules/github/tsconfig.json new file mode 100644 index 00000000..fe2bbf83 --- /dev/null +++ b/modules/github/tsconfig.json @@ -0,0 +1,12 @@ +{ + "extends": "../../tsconfig.node.json", + "compilerOptions": { + "rootDir": "./src", + "outDir": "./lib" + }, + "references": [ + { + "path": "../../packages/kotori" + } + ] +} \ No newline at end of file diff --git a/modules/goodnight/package.json b/modules/goodnight/package.json index 4f18de8e..c6a9a4ca 100644 --- a/modules/goodnight/package.json +++ b/modules/goodnight/package.json @@ -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 ", "peerDependencies": { diff --git a/modules/goodnight/src/method.ts b/modules/goodnight/src/method.tss similarity index 100% rename from modules/goodnight/src/method.ts rename to modules/goodnight/src/method.tss diff --git a/modules/goodnight/tsconfig.json b/modules/goodnight/tsconfig.json new file mode 100644 index 00000000..fe2bbf83 --- /dev/null +++ b/modules/goodnight/tsconfig.json @@ -0,0 +1,12 @@ +{ + "extends": "../../tsconfig.node.json", + "compilerOptions": { + "rootDir": "./src", + "outDir": "./lib" + }, + "references": [ + { + "path": "../../packages/kotori" + } + ] +} \ No newline at end of file diff --git a/modules/helper/package.json b/modules/helper/package.json index 933a2c82..f86e1545 100644 --- a/modules/helper/package.json +++ b/modules/helper/package.json @@ -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 ", "peerDependencies": { diff --git a/modules/helper/tsconfig.json b/modules/helper/tsconfig.json new file mode 100644 index 00000000..fe2bbf83 --- /dev/null +++ b/modules/helper/tsconfig.json @@ -0,0 +1,12 @@ +{ + "extends": "../../tsconfig.node.json", + "compilerOptions": { + "rootDir": "./src", + "outDir": "./lib" + }, + "references": [ + { + "path": "../../packages/kotori" + } + ] +} \ No newline at end of file diff --git a/modules/hitokotos/package.json b/modules/hitokotos/package.json index 2548cc2b..b3b6687a 100644 --- a/modules/hitokotos/package.json +++ b/modules/hitokotos/package.json @@ -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 ", "peerDependencies": { diff --git a/modules/hitokotos/tsconfig.json b/modules/hitokotos/tsconfig.json new file mode 100644 index 00000000..fe2bbf83 --- /dev/null +++ b/modules/hitokotos/tsconfig.json @@ -0,0 +1,12 @@ +{ + "extends": "../../tsconfig.node.json", + "compilerOptions": { + "rootDir": "./src", + "outDir": "./lib" + }, + "references": [ + { + "path": "../../packages/kotori" + } + ] +} \ No newline at end of file diff --git a/modules/i18n-command/package.json b/modules/i18n-command/package.json index bb309491..56f41487 100644 --- a/modules/i18n-command/package.json +++ b/modules/i18n-command/package.json @@ -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 ", "peerDependencies": { diff --git a/modules/i18n-command/tsconfig.json b/modules/i18n-command/tsconfig.json new file mode 100644 index 00000000..fe2bbf83 --- /dev/null +++ b/modules/i18n-command/tsconfig.json @@ -0,0 +1,12 @@ +{ + "extends": "../../tsconfig.node.json", + "compilerOptions": { + "rootDir": "./src", + "outDir": "./lib" + }, + "references": [ + { + "path": "../../packages/kotori" + } + ] +} \ No newline at end of file diff --git a/modules/mediawiki/package.json b/modules/mediawiki/package.json index a88a7378..6690cf3a 100644 --- a/modules/mediawiki/package.json +++ b/modules/mediawiki/package.json @@ -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 ", "peerDependencies": { diff --git a/modules/mediawiki/tsconfig.json b/modules/mediawiki/tsconfig.json new file mode 100644 index 00000000..fe2bbf83 --- /dev/null +++ b/modules/mediawiki/tsconfig.json @@ -0,0 +1,12 @@ +{ + "extends": "../../tsconfig.node.json", + "compilerOptions": { + "rootDir": "./src", + "outDir": "./lib" + }, + "references": [ + { + "path": "../../packages/kotori" + } + ] +} \ No newline at end of file diff --git a/modules/menu/package.json b/modules/menu/package.json index e2275cb0..a8fcfc92 100644 --- a/modules/menu/package.json +++ b/modules/menu/package.json @@ -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 ", "peerDependencies": { diff --git a/modules/menu/tsconfig.json b/modules/menu/tsconfig.json new file mode 100644 index 00000000..fe2bbf83 --- /dev/null +++ b/modules/menu/tsconfig.json @@ -0,0 +1,12 @@ +{ + "extends": "../../tsconfig.node.json", + "compilerOptions": { + "rootDir": "./src", + "outDir": "./lib" + }, + "references": [ + { + "path": "../../packages/kotori" + } + ] +} \ No newline at end of file diff --git a/modules/music/package.json b/modules/music/package.json index 97f9380e..cbb98870 100644 --- a/modules/music/package.json +++ b/modules/music/package.json @@ -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 ", "peerDependencies": { diff --git a/modules/music/tsconfig.json b/modules/music/tsconfig.json new file mode 100644 index 00000000..fe2bbf83 --- /dev/null +++ b/modules/music/tsconfig.json @@ -0,0 +1,12 @@ +{ + "extends": "../../tsconfig.node.json", + "compilerOptions": { + "rootDir": "./src", + "outDir": "./lib" + }, + "references": [ + { + "path": "../../packages/kotori" + } + ] +} \ No newline at end of file diff --git a/modules/newnew/package.json b/modules/newnew/package.json index 13a39e6d..7d66594b 100644 --- a/modules/newnew/package.json +++ b/modules/newnew/package.json @@ -3,6 +3,9 @@ "version": "1.1.0", "description": "查看今日牛牛的长度和排行", "main": "lib/index.js", + "scripts": { + "build": "tsc --build" + }, "license": "GPL-3.0", "author": "Himeno ", "peerDependencies": { diff --git a/modules/newnew/tsconfig.json b/modules/newnew/tsconfig.json new file mode 100644 index 00000000..fe2bbf83 --- /dev/null +++ b/modules/newnew/tsconfig.json @@ -0,0 +1,12 @@ +{ + "extends": "../../tsconfig.node.json", + "compilerOptions": { + "rootDir": "./src", + "outDir": "./lib" + }, + "references": [ + { + "path": "../../packages/kotori" + } + ] +} \ No newline at end of file diff --git a/modules/nmsl/package.json b/modules/nmsl/package.json index 44372015..b2b3c938 100644 --- a/modules/nmsl/package.json +++ b/modules/nmsl/package.json @@ -3,6 +3,9 @@ "version": "1.0.0", "description": "孙笑川在线帮你翻译成抽象话", "main": "lib/index.js", + "scripts": { + "build": "tsc --build" + }, "license": "GPL-3.0", "author": "Hotaru ", "peerDependencies": { diff --git a/modules/nmsl/tsconfig.json b/modules/nmsl/tsconfig.json new file mode 100644 index 00000000..fe2bbf83 --- /dev/null +++ b/modules/nmsl/tsconfig.json @@ -0,0 +1,12 @@ +{ + "extends": "../../tsconfig.node.json", + "compilerOptions": { + "rootDir": "./src", + "outDir": "./lib" + }, + "references": [ + { + "path": "../../packages/kotori" + } + ] +} \ No newline at end of file diff --git a/modules/random-img/package.json b/modules/random-img/package.json index f7e6e8b5..f1773054 100644 --- a/modules/random-img/package.json +++ b/modules/random-img/package.json @@ -3,6 +3,9 @@ "version": "1.1.0", "description": "Random imgs base for Core", "main": "lib/index.js", + "scripts": { + "build": "tsc --build" + }, "license": "GPL-3.0", "author": "Hotaru ", "peerDependencies": { diff --git a/modules/random-img/tsconfig.json b/modules/random-img/tsconfig.json new file mode 100644 index 00000000..fe2bbf83 --- /dev/null +++ b/modules/random-img/tsconfig.json @@ -0,0 +1,12 @@ +{ + "extends": "../../tsconfig.node.json", + "compilerOptions": { + "rootDir": "./src", + "outDir": "./lib" + }, + "references": [ + { + "path": "../../packages/kotori" + } + ] +} \ No newline at end of file diff --git a/modules/testing/package.json b/modules/testing/package.json index 324fe853..51868fba 100644 --- a/modules/testing/package.json +++ b/modules/testing/package.json @@ -3,6 +3,9 @@ "version": "1.1.0", "description": "testing plugin", "main": "lib/index.js", + "scripts": { + "build": "tsc --build" + }, "license": "GPL-3.0", "author": "Hotaru ", "peerDependencies": { diff --git a/modules/testing/src/index.ts b/modules/testing/src/index.ts index ab225031..d5a4d3ad 100644 --- a/modules/testing/src/index.ts +++ b/modules/testing/src/index.ts @@ -1,32 +1,31 @@ import Kotori from 'kotori-bot'; Kotori.command('echo [num:number=3]') - .action((data, message) => { - Kotori.logger.debug(data, data.args[0]); - Kotori.logger.debug(message); - return [ - `返回消息:~%message%`, - { - message: data.args[0], - }, - ]; - }) - .alias('print') - .scope('group'); + .action((data, message) => { + Kotori.logger.debug(data, data.args[0]); + Kotori.logger.debug(message); + return [ + `返回消息:~%message%`, + { + message: data.args[0], + }, + ]; + }) + .alias('print') + .scope('group'); Kotori.regexp(/^(.*)#print$/, match => match[1]); Kotori.command('ison').action((_, events) => { - if (events.api.adapter.config.master === events.userId) return `在的哟主人~`; - return '你是...谁?'; + if (events.api.adapter.config.master === events.userId) return `在的哟主人~`; + return '你是...谁?'; }); - +/* Kotori.on('poke', session => { if (session.api.adapter.platform !== 'onebot') return ''; if (session.userId === session.api.adapter.selfId || session.targetId !== session.api.adapter.selfId) return ''; - /* session.api.extra.poke(session.userId); */ + // session.api.extra.poke(session.userId); session.send(`[CQ:poke,qq=${session.userId}]`) return '戳回去!!'; -}); - +}); */ diff --git a/modules/testing/tsconfig.json b/modules/testing/tsconfig.json new file mode 100644 index 00000000..fe2bbf83 --- /dev/null +++ b/modules/testing/tsconfig.json @@ -0,0 +1,12 @@ +{ + "extends": "../../tsconfig.node.json", + "compilerOptions": { + "rootDir": "./src", + "outDir": "./lib" + }, + "references": [ + { + "path": "../../packages/kotori" + } + ] +} \ No newline at end of file diff --git a/modules/weather/package.json b/modules/weather/package.json index 8b3f79fc..db16b789 100644 --- a/modules/weather/package.json +++ b/modules/weather/package.json @@ -3,6 +3,9 @@ "version": "1.0.0", "description": "weather. plugin", "main": "lib/index.js", + "scripts": { + "build": "tsc --build" + }, "license": "GPL-3.0", "author": "Hotaru ", "peerDependencies": { diff --git a/modules/weather/tsconfig.json b/modules/weather/tsconfig.json new file mode 100644 index 00000000..fe2bbf83 --- /dev/null +++ b/modules/weather/tsconfig.json @@ -0,0 +1,12 @@ +{ + "extends": "../../tsconfig.node.json", + "compilerOptions": { + "rootDir": "./src", + "outDir": "./lib" + }, + "references": [ + { + "path": "../../packages/kotori" + } + ] +} \ No newline at end of file diff --git a/package.json b/package.json index e896ee39..dd612dbc 100644 --- a/package.json +++ b/package.json @@ -5,10 +5,10 @@ "private": true, "scripts": { "loader": "pnpm --filter @kotori-bot/loader", - "build": "pnpm run loader build", + "build": "pnpm -r build", "start": "pnpm run loader start", "dev:only": "pnpm run loader dev", - "dev": "pnpm build && pnpm run dev:only", + "dev": "pnpm run build && pnpm run dev:only", "test": "echo testing", "lint": "eslint \"{packages,modules}/*/src/*.{ts,tsx}\" --fix", "format": "prettier --config .prettierrc \"{packages,modules}/*/src/*.ts\" --write", diff --git a/packages/logger/tsconfig.json b/packages/logger/tsconfig.json index a3e3facb..e23ea686 100644 --- a/packages/logger/tsconfig.json +++ b/packages/logger/tsconfig.json @@ -3,5 +3,10 @@ "compilerOptions": { "rootDir": "./src", "outDir": "./lib" - } + }, + "references": [ + { + "path": "../tools" + } + ] } \ No newline at end of file diff --git a/packages/tools/package.json b/packages/tools/package.json index 2c820d26..b5997773 100644 --- a/packages/tools/package.json +++ b/packages/tools/package.json @@ -3,7 +3,6 @@ "version": "1.1.0", "description": "Tools For Kotori", "main": "dist/index.js", - "types": "type/index.js", "license": "GPL-3.0", "author": "Hotaru ", "dependencies": {