diff --git a/build/bump.ts b/build/bump.ts index cb5d965d01..b95eb3d871 100644 --- a/build/bump.ts +++ b/build/bump.ts @@ -89,6 +89,7 @@ function getPackage (name: string) { || packages[`packages/koishi-${name}`] || packages[`packages/database-${name}`] || packages[`packages/plugin-${name}`] + || packages[`plugins/plugin-${name}`] } function each (callback: (pkg: Package, name: string) => T) { diff --git a/build/start.ts b/build/start.ts index 9ebfb9907f..3f4fcf1a28 100644 --- a/build/start.ts +++ b/build/start.ts @@ -4,7 +4,7 @@ import spawn from 'cross-spawn' const name = process.argv[2] if (!name) process.exit(0) -spawn('npx', ['koishi', 'run', ...process.argv.slice(3)], { +spawn('npx', ['koishi', 'run', ...process.argv.slice(3), '--', '-r', 'ts-node/register'], { cwd: resolve(__dirname, '../bots', name), stdio: 'inherit', })