mirror of
https://github.com/paperclipai/paperclip
synced 2026-04-26 01:35:18 +02:00
Use globalThis.process.env in the vendor patch so the spawned child process config does not trip over the local process binding inside embedded-postgres. Co-Authored-By: Paperclip <noreply@paperclip.ing>
23 lines
1.6 KiB
Diff
23 lines
1.6 KiB
Diff
diff --git a/dist/index.js b/dist/index.js
|
|
index ccfe17a82f4879bf20cc345c579a987d9eba5309..dd689f5908f625f49b4785318daea736aa88927f 100644
|
|
--- a/dist/index.js
|
|
+++ b/dist/index.js
|
|
@@ -133,7 +133,7 @@ class EmbeddedPostgres {
|
|
`--pwfile=${passwordFile}`,
|
|
`--lc-messages=${LC_MESSAGES_LOCALE}`,
|
|
...this.options.initdbFlags,
|
|
- ], Object.assign(Object.assign({}, permissionIds), { env: { LC_MESSAGES: LC_MESSAGES_LOCALE } }));
|
|
+ ], Object.assign(Object.assign({}, permissionIds), { env: Object.assign(Object.assign({}, globalThis.process.env), { LC_MESSAGES: LC_MESSAGES_LOCALE }) }));
|
|
// Connect to stderr, as that is where the messages get sent
|
|
(_a = process.stdout) === null || _a === void 0 ? void 0 : _a.on('data', (chunk) => {
|
|
// Parse the data as a string and log it
|
|
@@ -177,7 +177,7 @@ class EmbeddedPostgres {
|
|
'-p',
|
|
this.options.port.toString(),
|
|
...this.options.postgresFlags,
|
|
- ], Object.assign(Object.assign({}, permissionIds), { env: { LC_MESSAGES: LC_MESSAGES_LOCALE } }));
|
|
+ ], Object.assign(Object.assign({}, permissionIds), { env: Object.assign(Object.assign({}, globalThis.process.env), { LC_MESSAGES: LC_MESSAGES_LOCALE }) }));
|
|
// Connect to stderr, as that is where the messages get sent
|
|
(_a = this.process.stderr) === null || _a === void 0 ? void 0 : _a.on('data', (chunk) => {
|
|
// Parse the data as a string and log it
|