@prisma/cli-init 0.0.0-dev.202512152002 → 0.0.0-dev.202512161536
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 +25 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2818,6 +2818,31 @@ var StatelessServerState = class extends ServerState {
|
|
|
2818
2818
|
return "memory://";
|
|
2819
2819
|
}
|
|
2820
2820
|
async [PRIVATE_INITIALIZE_SYMBOL]() {
|
|
2821
|
+
let servers;
|
|
2822
|
+
try {
|
|
2823
|
+
servers = await ServerState.scan({ debug: this.debug, onlyMetadata: true });
|
|
2824
|
+
} catch (error) {
|
|
2825
|
+
if (this.debug) {
|
|
2826
|
+
console.warn(
|
|
2827
|
+
`[State] failed to scan for existing servers, assuming filesystem does not exist or other reasons.`,
|
|
2828
|
+
error
|
|
2829
|
+
);
|
|
2830
|
+
}
|
|
2831
|
+
servers = [];
|
|
2832
|
+
}
|
|
2833
|
+
const ports = await pickPorts({
|
|
2834
|
+
debug: this.debug,
|
|
2835
|
+
name: this.name,
|
|
2836
|
+
requestedPorts: {
|
|
2837
|
+
databasePort: this.databasePort,
|
|
2838
|
+
port: this.port,
|
|
2839
|
+
shadowDatabasePort: this.shadowDatabasePort
|
|
2840
|
+
},
|
|
2841
|
+
servers
|
|
2842
|
+
});
|
|
2843
|
+
this._databasePort = ports.databasePort;
|
|
2844
|
+
this._port = ports.port;
|
|
2845
|
+
this._shadowDatabasePort = ports.shadowDatabasePort;
|
|
2821
2846
|
}
|
|
2822
2847
|
async close() {
|
|
2823
2848
|
}
|