From d14a32562af9c3b95d401fe0e1307a29bd938427 Mon Sep 17 00:00:00 2001 From: Peter Oliver <70300655+peteralexandercharles@users.noreply.github.com> Date: Tue, 30 Aug 2022 13:11:20 -0300 Subject: [PATCH] explain what the code does --- scripts/bootstrap.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/scripts/bootstrap.js b/scripts/bootstrap.js index b2922b5..0fb06d6 100644 --- a/scripts/bootstrap.js +++ b/scripts/bootstrap.js @@ -1,3 +1,7 @@ +// This file is a wrapper around `yarn` that allows us to run `yarn` from the +// root of the project, but still have it run the `bootstrap` script when no +// arguments are passed. + const os = require('os'); const path = require('path'); const child_process = require('child_process'); @@ -26,4 +30,4 @@ if (process.cwd() !== root || args.length) { result = child_process.spawnSync('yarn', ['bootstrap'], options); } -process.exitCode = result.status; +process.exitCode = result.status; \ No newline at end of file