create-better-t-stack 2.25.4 → 2.25.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.js +7 -4
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1057,13 +1057,16 @@ const getLatestCLIVersion = () => {
|
|
|
1057
1057
|
//#endregion
|
|
1058
1058
|
//#region src/utils/telemetry.ts
|
|
1059
1059
|
/**
|
|
1060
|
-
*
|
|
1060
|
+
* Returns true if telemetry/analytics should be enabled, false otherwise.
|
|
1061
1061
|
*
|
|
1062
|
-
*
|
|
1063
|
-
* -
|
|
1064
|
-
* - Running in development environment (NODE_ENV=development)
|
|
1062
|
+
* - If BTS_TELEMETRY_DISABLED is present and "1", disables analytics.
|
|
1063
|
+
* - Otherwise, BTS_TELEMETRY: "0" disables, "1" enables (default: enabled).
|
|
1065
1064
|
*/
|
|
1066
1065
|
function isTelemetryEnabled() {
|
|
1066
|
+
const BTS_TELEMETRY_DISABLED = process.env.BTS_TELEMETRY_DISABLED;
|
|
1067
|
+
const BTS_TELEMETRY = "1";
|
|
1068
|
+
if (BTS_TELEMETRY_DISABLED !== void 0) return BTS_TELEMETRY_DISABLED !== "1";
|
|
1069
|
+
if (BTS_TELEMETRY !== void 0) return BTS_TELEMETRY === "1";
|
|
1067
1070
|
return true;
|
|
1068
1071
|
}
|
|
1069
1072
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-better-t-stack",
|
|
3
|
-
"version": "2.25.
|
|
3
|
+
"version": "2.25.6",
|
|
4
4
|
"description": "A modern CLI tool for scaffolding end-to-end type-safe TypeScript projects with best practices and customizable configurations",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|