Skip to content

Commit

Permalink
refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
m-abdelwahab committed Jun 6, 2024
1 parent 7f7de8b commit 1c50bc4
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/cleanup-projects.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ jobs:
env:
DATABASE_URL: ${{ secrets.DATABASE_URL }}
NEON_API_KEY: ${{ secrets.NEON_API_KEY }}
run: bun run packages/db/cleanup-projects.ts
run: bun run packages/db/src/cleanup-projects.ts
7 changes: 4 additions & 3 deletions packages/db/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,14 @@
"name": "@instant-postgres/db",
"version": "0.1.0",
"private": true,
"main": "./index.ts",
"types": "./index.ts",
"main": "./src/index.ts",
"types": "./src/index.ts",
"license": "MIT",
"exports": {
".": "./src/index.ts",
"./schema": "./src/schema/index.ts",
"./run-query": "./src/run-query.ts"
"./run-query": "./src/run-query.ts",
"./cleanup-projects":"./src/cleanup-projects.ts"
},
"scripts": {
"clean": "rm -rf .turbo node_modules",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { neon } from "@instant-postgres/neon";
import { type Project, projects } from "./src/schema";
import { type Project, projects } from "./schema";
import type { NeonDriver } from "drizzle-orm/neon-serverless";
import { and, sql } from "drizzle-orm";
import { db } from "./src";
import { db } from ".";

const DATABASE_URL = process.env.DATABASE_URL;
const NEON_API_KEY = process.env.NEON_API_KEY;
Expand Down

0 comments on commit 1c50bc4

Please sign in to comment.