@kubb/core 5.5.4 → 5.5.6

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/index.cjs CHANGED
@@ -70,9 +70,11 @@ function applyConfigDefaults(config, { defaultAdapter, barrelPlugin, barrelPlugi
70
70
  //#region ../../internals/utils/src/isCIEnvironment.ts
71
71
  /**
72
72
  * Returns `true` when a known CI provider has set its environment variable.
73
+ * `CI=false` and `CI=0` count as not CI, so a user can opt out locally.
73
74
  */
74
75
  function isCIEnvironment() {
75
- return !!(node_process.default.env.CI || node_process.default.env.GITHUB_ACTIONS || node_process.default.env.GITLAB_CI || node_process.default.env.BITBUCKET_BUILD_NUMBER || node_process.default.env.JENKINS_URL || node_process.default.env.CIRCLECI || node_process.default.env.TRAVIS || node_process.default.env.TEAMCITY_VERSION || node_process.default.env.BUILDKITE || node_process.default.env.TF_BUILD);
76
+ const ci = node_process.default.env.CI;
77
+ return !!(ci && ci !== "false" && ci !== "0" || node_process.default.env.GITHUB_ACTIONS || node_process.default.env.GITLAB_CI || node_process.default.env.BITBUCKET_BUILD_NUMBER || node_process.default.env.JENKINS_URL || node_process.default.env.CIRCLECI || node_process.default.env.TRAVIS || node_process.default.env.TEAMCITY_VERSION || node_process.default.env.BUILDKITE || node_process.default.env.TF_BUILD);
76
78
  }
77
79
  //#endregion
78
80
  //#region ../../internals/utils/src/openInBrowser.ts
@@ -127,7 +129,7 @@ function formatMs(ms) {
127
129
  /**
128
130
  * Docs major version, derived from the package version so the link tracks the published major.
129
131
  */
130
- const docsMajor = "5.5.4".split(".")[0] ?? "5";
132
+ const docsMajor = "5.5.6".split(".")[0] ?? "5";
131
133
  /**
132
134
  * Builds a type guard that narrows a {@link Diagnostic} to the variant for `kind`. A diagnostic
133
135
  * with no `kind` is treated as a `problem`.