Skip to content

Commit

Permalink
Fix: Removing unwanted dotenv dependency 👽 (#911)
Browse files Browse the repository at this point in the history
* Fix: Removing unwanted dotenv dependency 👽

* Refactor: pnpm i cmd
  • Loading branch information
Ipriyankrajai authored Jul 4, 2024
1 parent 77b0c62 commit 5806b6e
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 13 deletions.
2 changes: 0 additions & 2 deletions packages/db/drizzle.config.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import "dotenv/config";

import type { Config } from "drizzle-kit";

import { env } from "./env.mjs";
Expand Down
3 changes: 1 addition & 2 deletions packages/db/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
"@clickhouse/client-web": "1.0.1",
"@libsql/client": "0.6.2",
"@t3-oss/env-core": "0.7.0",
"dotenv": "16.3.1",
"drizzle-orm": "0.30.10",
"drizzle-zod": "0.5.1",
"zod": "3.23.8"
Expand All @@ -34,4 +33,4 @@
"utf-8-validate": "6.0.3"
},
"author": "OpenStatus"
}
}
4 changes: 1 addition & 3 deletions packages/db/src/migrate.mts
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import "dotenv/config";

import { createClient } from "@libsql/client";
import { drizzle } from "drizzle-orm/libsql";
import { migrate } from "drizzle-orm/libsql/migrator";
Expand All @@ -8,7 +6,7 @@ import { env } from "../env.mjs";

async function main() {
const db = drizzle(
createClient({ url: env.DATABASE_URL, authToken: env.DATABASE_AUTH_TOKEN }),
createClient({ url: env.DATABASE_URL, authToken: env.DATABASE_AUTH_TOKEN })
);
console.log("Running migrations");

Expand Down
4 changes: 1 addition & 3 deletions packages/db/src/seed.mts
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import "dotenv/config";

import { createClient } from "@libsql/client";
import { eq } from "drizzle-orm";
import { drizzle } from "drizzle-orm/libsql";
Expand All @@ -23,7 +21,7 @@ import {

async function main() {
const db = drizzle(
createClient({ url: env.DATABASE_URL, authToken: env.DATABASE_AUTH_TOKEN }),
createClient({ url: env.DATABASE_URL, authToken: env.DATABASE_AUTH_TOKEN })
);
console.log("Seeding database ");
await db
Expand Down
3 changes: 0 additions & 3 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 5806b6e

Please sign in to comment.