Skip to content

Commit

Permalink
Modernize build script syntax slightly (#2546)
Browse files Browse the repository at this point in the history
  • Loading branch information
RohitPaul0007 authored Sep 13, 2023
1 parent 67a8cea commit 8d1f85b
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions build.cjs
Original file line number Diff line number Diff line change
@@ -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");
Expand Down

0 comments on commit 8d1f85b

Please sign in to comment.