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