@vercel/ruby 2.2.5 → 2.3.1
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 +31 -14
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -7219,11 +7219,9 @@ function installGlobalCleanupHandlers() {
|
|
|
7219
7219
|
};
|
|
7220
7220
|
process.on("SIGINT", () => {
|
|
7221
7221
|
killAll();
|
|
7222
|
-
process.exit(130);
|
|
7223
7222
|
});
|
|
7224
7223
|
process.on("SIGTERM", () => {
|
|
7225
7224
|
killAll();
|
|
7226
|
-
process.exit(143);
|
|
7227
7225
|
});
|
|
7228
7226
|
process.on("exit", () => {
|
|
7229
7227
|
killAll();
|
|
@@ -7262,8 +7260,22 @@ async function run(cmd, args, opts) {
|
|
|
7262
7260
|
env: opts.env,
|
|
7263
7261
|
stdio: ["ignore", "pipe", "pipe"]
|
|
7264
7262
|
});
|
|
7265
|
-
child.stdout?.on("data", (
|
|
7266
|
-
|
|
7263
|
+
child.stdout?.on("data", (data) => {
|
|
7264
|
+
const chunk = Buffer.isBuffer(data) ? data : Buffer.from(data);
|
|
7265
|
+
if (opts.onStdout) {
|
|
7266
|
+
opts.onStdout(chunk);
|
|
7267
|
+
} else {
|
|
7268
|
+
process.stdout.write(chunk.toString());
|
|
7269
|
+
}
|
|
7270
|
+
});
|
|
7271
|
+
child.stderr?.on("data", (data) => {
|
|
7272
|
+
const chunk = Buffer.isBuffer(data) ? data : Buffer.from(data);
|
|
7273
|
+
if (opts.onStderr) {
|
|
7274
|
+
opts.onStderr(chunk);
|
|
7275
|
+
} else {
|
|
7276
|
+
process.stderr.write(chunk.toString());
|
|
7277
|
+
}
|
|
7278
|
+
});
|
|
7267
7279
|
child.on("close", (code, signal) => resolve({ code, signal }));
|
|
7268
7280
|
});
|
|
7269
7281
|
}
|
|
@@ -7331,7 +7343,12 @@ var startDevServer = async (opts) => {
|
|
|
7331
7343
|
const check = await run(
|
|
7332
7344
|
bundlerPath,
|
|
7333
7345
|
["check", "--gemfile", gemfile],
|
|
7334
|
-
{
|
|
7346
|
+
{
|
|
7347
|
+
cwd: projectDir,
|
|
7348
|
+
env,
|
|
7349
|
+
onStdout: opts.onStdout,
|
|
7350
|
+
onStderr: opts.onStderr
|
|
7351
|
+
}
|
|
7335
7352
|
);
|
|
7336
7353
|
if (check.code !== 0) {
|
|
7337
7354
|
return false;
|
|
@@ -7358,21 +7375,21 @@ var startDevServer = async (opts) => {
|
|
|
7358
7375
|
const child = (0, import_child_process2.spawn)(cmd, args, {
|
|
7359
7376
|
cwd: workPath,
|
|
7360
7377
|
env,
|
|
7361
|
-
stdio: ["
|
|
7378
|
+
stdio: ["ignore", "pipe", "pipe"]
|
|
7362
7379
|
});
|
|
7363
7380
|
childProcess = child;
|
|
7364
7381
|
stdoutLogListener = (buf) => {
|
|
7365
|
-
|
|
7366
|
-
|
|
7367
|
-
|
|
7368
|
-
|
|
7382
|
+
if (opts.onStdout) {
|
|
7383
|
+
opts.onStdout(buf);
|
|
7384
|
+
} else {
|
|
7385
|
+
process.stdout.write(buf.toString());
|
|
7369
7386
|
}
|
|
7370
7387
|
};
|
|
7371
7388
|
stderrLogListener = (buf) => {
|
|
7372
|
-
|
|
7373
|
-
|
|
7374
|
-
|
|
7375
|
-
|
|
7389
|
+
if (opts.onStderr) {
|
|
7390
|
+
opts.onStderr(buf);
|
|
7391
|
+
} else {
|
|
7392
|
+
process.stderr.write(buf.toString());
|
|
7376
7393
|
}
|
|
7377
7394
|
};
|
|
7378
7395
|
child.stdout?.on("data", stdoutLogListener);
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vercel/ruby",
|
|
3
3
|
"author": "Nathan Cahill <nathan@nathancahill.com>",
|
|
4
|
-
"version": "2.
|
|
4
|
+
"version": "2.3.1",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"main": "./dist/index",
|
|
7
7
|
"homepage": "https://vercel.com/docs/runtimes#official-runtimes/ruby",
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"jest-junit": "16.0.0",
|
|
25
25
|
"semver": "6.3.1",
|
|
26
26
|
"which": "3.0.0",
|
|
27
|
-
"@vercel/build-utils": "13.
|
|
27
|
+
"@vercel/build-utils": "13.4.0"
|
|
28
28
|
},
|
|
29
29
|
"scripts": {
|
|
30
30
|
"build": "node ../../utils/build-builder.mjs",
|