@html-validate/commitlint-config 3.6.0 → 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/commitlint.js +10605 -38806
- package/dist/formatter.js +3 -3
- package/dist/install.js +15 -13
- package/package.json +1 -1
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
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
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
|
-
|
|
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;
|