Skip to content

Commit

Permalink
chore: adjust build
Browse files Browse the repository at this point in the history
  • Loading branch information
shigma committed Jan 14, 2020
1 parent 3bb9f5a commit 22bbfbe
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions build/bump.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 <T> (callback: (pkg: Package, name: string) => T) {
Expand Down
2 changes: 1 addition & 1 deletion build/start.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
})

0 comments on commit 22bbfbe

Please sign in to comment.