create-db 1.0.10-pr65-DC-6214-accelerate-removed-19338438232.0 → 1.0.10-pr65-DC-6214-accelerate-removed-19338564383.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 +3 -3
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -820,7 +820,7 @@ export async function main() {
820
820
  }
821
821
  }
822
822
 
823
- // Only run main() if this file is being executed directly, not when imported
824
- if (import.meta.url === `file://${process.argv[1]}`) {
825
- main();
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://', '')) {
825
+ main().catch(console.error);
826
826
  }
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-19338438232.0",
3
+ "version": "1.0.10-pr65-DC-6214-accelerate-removed-19338564383.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",