@prisma/cli-init 0.0.0-dev.202512161536 → 0.0.0-dev.202512161638
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.
- package/dist/index.js +5 -5
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2737,7 +2737,7 @@ var ServerState = class {
|
|
|
2737
2737
|
this._shadowDatabasePort = options.shadowDatabasePort ?? NO_PORT;
|
|
2738
2738
|
}
|
|
2739
2739
|
static async createExclusively(options) {
|
|
2740
|
-
const serverState = options?.dryRun !== true && options?.persistenceMode
|
|
2740
|
+
const serverState = options?.dryRun !== true && options?.persistenceMode === "stateful" ? new StatefulServerState(options) : new StatelessServerState(options);
|
|
2741
2741
|
await serverState[PRIVATE_INITIALIZE_SYMBOL]();
|
|
2742
2742
|
return serverState;
|
|
2743
2743
|
}
|
|
@@ -2805,10 +2805,10 @@ var StatelessServerState = class extends ServerState {
|
|
|
2805
2805
|
constructor(options) {
|
|
2806
2806
|
super({
|
|
2807
2807
|
...options,
|
|
2808
|
-
databasePort: options?.databasePort
|
|
2808
|
+
databasePort: options?.databasePort,
|
|
2809
2809
|
persistenceMode: "stateless",
|
|
2810
|
-
port: options?.port
|
|
2811
|
-
shadowDatabasePort: options?.shadowDatabasePort
|
|
2810
|
+
port: options?.port,
|
|
2811
|
+
shadowDatabasePort: options?.shadowDatabasePort
|
|
2812
2812
|
});
|
|
2813
2813
|
}
|
|
2814
2814
|
get databaseDumpPath() {
|
|
@@ -2832,7 +2832,7 @@ var StatelessServerState = class extends ServerState {
|
|
|
2832
2832
|
}
|
|
2833
2833
|
const ports = await pickPorts({
|
|
2834
2834
|
debug: this.debug,
|
|
2835
|
-
name:
|
|
2835
|
+
name: "",
|
|
2836
2836
|
requestedPorts: {
|
|
2837
2837
|
databasePort: this.databasePort,
|
|
2838
2838
|
port: this.port,
|