@html-validate/commitlint-config 3.6.1 → 3.6.2

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/formatter.js CHANGED
@@ -357,9 +357,9 @@ function stringEncaseCRLFWithFirstIndex(string, prefix, postfix, index) {
357
357
 
358
358
  // node_modules/chalk/source/index.js
359
359
  var { stdout: stdoutColor, stderr: stderrColor } = supports_color_default;
360
- var GENERATOR = Symbol("GENERATOR");
361
- var STYLER = Symbol("STYLER");
362
- var IS_EMPTY = Symbol("IS_EMPTY");
360
+ var GENERATOR = /* @__PURE__ */ Symbol("GENERATOR");
361
+ var STYLER = /* @__PURE__ */ Symbol("STYLER");
362
+ var IS_EMPTY = /* @__PURE__ */ Symbol("IS_EMPTY");
363
363
  var levelMapping = [
364
364
  "ansi",
365
365
  "ansi",
package/dist/install.js CHANGED
@@ -410,19 +410,21 @@ var require_ci_info = __commonJS({
410
410
  exports.name = null;
411
411
  exports.isPR = null;
412
412
  exports.id = null;
413
- vendors.forEach(function(vendor) {
414
- const envs = Array.isArray(vendor.env) ? vendor.env : [vendor.env];
415
- const isCI2 = envs.every(function(obj) {
416
- return checkEnv(obj);
413
+ if (env.CI !== "false") {
414
+ vendors.forEach(function(vendor) {
415
+ const envs = Array.isArray(vendor.env) ? vendor.env : [vendor.env];
416
+ const isCI2 = envs.every(function(obj) {
417
+ return checkEnv(obj);
418
+ });
419
+ exports[vendor.constant] = isCI2;
420
+ if (!isCI2) {
421
+ return;
422
+ }
423
+ exports.name = vendor.name;
424
+ exports.isPR = checkPR(vendor);
425
+ exports.id = vendor.constant;
417
426
  });
418
- exports[vendor.constant] = isCI2;
419
- if (!isCI2) {
420
- return;
421
- }
422
- exports.name = vendor.name;
423
- exports.isPR = checkPR(vendor);
424
- exports.id = vendor.constant;
425
- });
427
+ }
426
428
  exports.isCI = !!(env.CI !== "false" && // Bypass all checks if CI env is explicitly set to 'false'
427
429
  (env.BUILD_ID || // Jenkins, Cloudbees
428
430
  env.BUILD_NUMBER || // Jenkins, TeamCity
@@ -485,9 +487,9 @@ var require_is_ci = __commonJS({
485
487
 
486
488
  // src/install.ts
487
489
  var import_is_ci = __toESM(require_is_ci(), 1);
490
+ import { spawnSync } from "node:child_process";
488
491
  import fs from "node:fs";
489
492
  import path from "node:path";
490
- import { spawnSync } from "node:child_process";
491
493
  var MAX_DEPTH = 100;
492
494
  function findGit(cwd) {
493
495
  let current = cwd;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@html-validate/commitlint-config",
3
- "version": "3.6.1",
3
+ "version": "3.6.2",
4
4
  "description": "Commitlint sharable config used by the various HTML-validate packages",
5
5
  "keywords": [
6
6
  "commitlint"