Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update build.cjs #2546

Merged
merged 1 commit into from
Sep 13, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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 All @@ -19,9 +19,9 @@
}

/**
* @param entryPoint

Check warning on line 22 in build.cjs

View workflow job for this annotation

GitHub Actions / lint

Missing JSDoc @param "entryPoint" type
* @param config

Check warning on line 23 in build.cjs

View workflow job for this annotation

GitHub Actions / lint

Missing JSDoc @param "config" type
* @param done

Check warning on line 24 in build.cjs

View workflow job for this annotation

GitHub Actions / lint

Missing JSDoc @param "done" type
*/
function makeBundle(entryPoint, config, done) {
browserify(entryPoint, config).bundle(function (err, buffer) {
Expand Down