create-db 1.0.10-pr65-DC-6214-accelerate-removed-19338564383.0 → 1.0.10-pr65-DC-6214-accelerate-removed-19338736828.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/index.js +9 -1
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -821,6 +821,14 @@ export async function main() {
821
821
  }
822
822
 
823
823
  // Run main() if this file is being executed directly
824
- if (import.meta.url.endsWith('/index.js') || process.argv[1] === import.meta.url.replace('file://', '')) {
824
+ const isDirectExecution =
825
+ import.meta.url.endsWith("/index.js") ||
826
+ process.argv[1] === import.meta.url.replace("file://", "") ||
827
+ process.argv[1].includes("create-db") ||
828
+ process.argv[1].includes("create-pg") ||
829
+ process.argv[1].includes("create-postgres");
830
+
831
+ if (isDirectExecution && !process.env.__CREATE_DB_EXECUTING) {
832
+ process.env.__CREATE_DB_EXECUTING = "true";
825
833
  main().catch(console.error);
826
834
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-db",
3
- "version": "1.0.10-pr65-DC-6214-accelerate-removed-19338564383.0",
3
+ "version": "1.0.10-pr65-DC-6214-accelerate-removed-19338736828.0",
4
4
  "description": "Instantly create a temporary Prisma Postgres database with one command, then claim and persist it in your Prisma Data Platform project when ready.",
5
5
  "main": "index.js",
6
6
  "author": "prisma",