Skip to content

Commit

Permalink
bun ci
Browse files Browse the repository at this point in the history
  • Loading branch information
alexey-pd committed Jun 23, 2024
1 parent 76ad564 commit c17bb75
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 19 deletions.
2 changes: 1 addition & 1 deletion .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
version: 2
updates:
- package-ecosystem: npm
- package-ecosystem: bun
directory: /
schedule:
interval: weekly
6 changes: 3 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ jobs:
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- run: npm ci
- run: npm run lint
- run: npm run typecheck
- run: bun install --frozen-lockfile
- run: bun lint
- run: bun typecheck

auto-merge:
if: github.event_name == 'pull_request' && github.actor == 'dependabot[bot]'
Expand Down
8 changes: 4 additions & 4 deletions api/index.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { handle } from "@hono/node-server/vercel";
import { createBot } from "#root/bot/index.js";
import { config as configuration } from "#root/config.js";
import { createServer } from "#root/server/index.js";
import { handle } from '@hono/node-server/vercel';
import { createBot } from '#root/bot/index.js';
import { config as configuration } from '#root/config.js';
import { createServer } from '#root/server/index.js';

const bot = createBot(configuration.BOT_TOKEN);
const server = await createServer(bot);
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
},
"scripts": {
"lint": "eslint .",
"lint:fix": "eslint . --fix",
"format": "eslint . --fix",
"typecheck": "tsc",
"build": "tsc --noEmit false",
Expand Down
22 changes: 11 additions & 11 deletions vercel.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
{
"installCommand": "npm install",
"buildCommand": "npm run build",
"devCommand": "npm run dev",
"outputDirectory": "build",
"rewrites": [
{
"source": "/(.*)",
"destination": "/api"
}
]
}
"installCommand": "bun install",
"buildCommand": "bun run build",
"devCommand": "bun run dev",
"outputDirectory": "build",
"rewrites": [
{
"source": "/(.*)",
"destination": "/api"
}
]
}

0 comments on commit c17bb75

Please sign in to comment.