Skip to content

Commit 9b85313

Browse files
fix: pnpm warning fixed
1 parent c2f773f commit 9b85313

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

create-db/index.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -752,4 +752,7 @@ export async function main() {
752752
}
753753
}
754754

755-
main();
755+
// Only run main() if this file is being executed directly, not when imported
756+
if (import.meta.url === `file://${process.argv[1]}`) {
757+
main();
758+
}

create-db/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"version": "1.0.9",
44
"description": "Instantly create a temporary Prisma Postgres database with one command, then claim and persist it in your Prisma Data Platform project when ready.",
55
"main": "index.js",
6-
"author": "",
6+
"author": "prisma",
77
"repository": {
88
"type": "git",
99
"url": "git+https://github.com/prisma/create-db.git"

create-pg/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"version": "1.0.9",
44
"description": "Instantly create a temporary Prisma Postgres database with one command, then claim and persist it in your Prisma Data Platform project when ready.",
55
"main": "index.js",
6-
"author": "",
6+
"author": "prisma",
77
"repository": {
88
"type": "git",
99
"url": "git+https://github.com/prisma/create-db.git"

0 commit comments

Comments
 (0)