@prisma/cli-init 0.0.0-dev.202512162145 → 0.0.0-dev.202512162210
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.
|
@@ -1505,7 +1505,7 @@ async function writeBinaryFile(buffer, path2) {
|
|
|
1505
1505
|
await chmod(path2, "755");
|
|
1506
1506
|
}
|
|
1507
1507
|
async function streamAsTextTo(file, path2) {
|
|
1508
|
-
await file.stream().pipeTo(WriteStream.toWeb(createWriteStream(path2, { encoding: "
|
|
1508
|
+
await file.stream().pipeTo(WriteStream.toWeb(createWriteStream(path2, { encoding: "utf8" })));
|
|
1509
1509
|
}
|
|
1510
1510
|
function isFileNotFoundError(error) {
|
|
1511
1511
|
return error != null && typeof error === "object" && "code" in error && error.code === "ENOENT";
|
package/dist/index.js
CHANGED
|
@@ -21,7 +21,7 @@ import {
|
|
|
21
21
|
url,
|
|
22
22
|
withResolvers,
|
|
23
23
|
y
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-7WBH7PZA.js";
|
|
25
25
|
import {
|
|
26
26
|
__commonJS,
|
|
27
27
|
__require,
|
|
@@ -2547,20 +2547,24 @@ function getConnectionString(port, queryParams) {
|
|
|
2547
2547
|
}
|
|
2548
2548
|
async function getDB(dataDir, debug3) {
|
|
2549
2549
|
const { PGlite } = await import("@electric-sql/pglite");
|
|
2550
|
+
const { vector } = await import("@electric-sql/pglite/vector");
|
|
2550
2551
|
return await PGlite.create({
|
|
2551
2552
|
database: BASE_PGLITE_OPTIONS.database,
|
|
2552
2553
|
dataDir,
|
|
2553
2554
|
debug: debug3 ? 5 : void 0,
|
|
2555
|
+
extensions: { vector },
|
|
2554
2556
|
relaxedDurability: false,
|
|
2555
2557
|
username: BASE_PGLITE_OPTIONS.username
|
|
2556
2558
|
});
|
|
2557
2559
|
}
|
|
2558
2560
|
async function getShadowDB(_dataDir, debug3) {
|
|
2559
2561
|
const { PGlite } = await import("@electric-sql/pglite");
|
|
2562
|
+
const { vector } = await import("@electric-sql/pglite/vector");
|
|
2560
2563
|
return await PGlite.create({
|
|
2561
2564
|
database: BASE_PGLITE_OPTIONS.database,
|
|
2562
2565
|
dataDir: "memory://",
|
|
2563
2566
|
debug: debug3 ? 5 : void 0,
|
|
2567
|
+
extensions: { vector },
|
|
2564
2568
|
relaxedDurability: false,
|
|
2565
2569
|
username: BASE_PGLITE_OPTIONS.username
|
|
2566
2570
|
});
|
|
@@ -2632,7 +2636,7 @@ async function getApp(port, dbServer, serverState) {
|
|
|
2632
2636
|
const { debug: debug3 } = serverState;
|
|
2633
2637
|
const [{ Hono }, { accelerateRoute }, { utilityRoute }] = await Promise.all([
|
|
2634
2638
|
import("hono/tiny"),
|
|
2635
|
-
import("./accelerate-
|
|
2639
|
+
import("./accelerate-5VID4BSA.js"),
|
|
2636
2640
|
import("./utility-QJR3G2JJ.js")
|
|
2637
2641
|
]);
|
|
2638
2642
|
const app = new Hono();
|