Skip to content

Commit

Permalink
🎉 pomelo: create workspace
Browse files Browse the repository at this point in the history
  • Loading branch information
cruzdanilo committed Dec 8, 2023
1 parent d31ac38 commit f3bfe9f
Show file tree
Hide file tree
Showing 8 changed files with 46 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,4 @@ web-build/
expo-env.d.ts
.metro-health-check*
.DS_Store
.vercel
Binary file modified bun.lockb
Binary file not shown.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
"test:eslint": "eslint --max-warnings=0 ."
},
"workspaces": [
"pomelo",
"webauthn"
],
"engines": {
Expand Down
7 changes: 7 additions & 0 deletions pomelo/api/opa.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import type { VercelRequest, VercelResponse } from "@vercel/node";

export const runtime = "nodejs";

export default function opa(request: VercelRequest, response: VercelResponse) {
return response.status(200).end("opa");
}
12 changes: 12 additions & 0 deletions pomelo/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"name": "@exactly/pomelo",
"type": "module",
"dependencies": {
"@vercel/node": "^3.0.11"
},
"devDependencies": {
"@types/node": "^20.10.4",
"typescript": "^5.3.3",
"vercel": "^32.6.1"
}
}
15 changes: 15 additions & 0 deletions pomelo/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"compilerOptions": {
"lib": ["ESNext"],
"target": "ESNext",
"module": "NodeNext",
"moduleResolution": "NodeNext",
"noUncheckedIndexedAccess": true,
"resolveJsonModule": true,
"esModuleInterop": true,
"skipLibCheck": true,
"noEmit": true,
"pretty": true,
"strict": true
}
}
5 changes: 5 additions & 0 deletions pomelo/vercel.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"$schema": "https://openapi.vercel.sh/vercel.json",
"installCommand": "curl -fsSL https://bun.sh/install | bash && ~/.bun/bin/bun install --frozen-lockfile",
"buildCommand": "~/.bun/bin/bun run build"
}
5 changes: 5 additions & 0 deletions vercel.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"$schema": "https://openapi.vercel.sh/vercel.json",
"installCommand": "curl -fsSL https://bun.sh/install | bash && ~/.bun/bin/bun install --frozen-lockfile",
"buildCommand": "~/.bun/bin/bun run build"
}

0 comments on commit f3bfe9f

Please sign in to comment.