From 8d1f85b0a4900fd11902dac0778da90aaf84bb29 Mon Sep 17 00:00:00 2001 From: Rohit Paul <113459757+RohitPaul0007@users.noreply.github.com> Date: Wed, 13 Sep 2023 14:46:56 +0530 Subject: [PATCH] Modernize build script syntax slightly (#2546) --- build.cjs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/build.cjs b/build.cjs index f63bc3c41..38988de2c 100755 --- a/build.cjs +++ b/build.cjs @@ -1,16 +1,16 @@ #!/usr/bin/env node "use strict"; /* eslint-disable @sinonjs/no-prototype-methods/no-prototype-methods */ -var fs = require("fs"); -var browserify = require("browserify"); -var pkg = require("./package.json"); -var sinon = require("./lib/sinon"); +const fs = require("fs"); +const browserify = require("browserify"); +const pkg = require("./package.json"); +const sinon = require("./lib/sinon"); // YYYY-MM-DD -var date = new Date().toISOString().split("T")[0]; +const date = new Date().toISOString().split("T")[0]; // Keep the preamble on one line to retain source maps -var preamble = `/* Sinon.JS ${pkg.version}, ${date}, @license BSD-3 */`; +const preamble = `/* Sinon.JS ${pkg.version}, ${date}, @license BSD-3 */`; try { fs.mkdirSync("pkg");