team-toon-tack 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.
|
@@ -23,19 +23,18 @@ export async function initLinear(options, paths) {
|
|
|
23
23
|
// Mirror into LINEAR_API_KEY so getLinearClient() picks it up regardless
|
|
24
24
|
// of which env var name the user selected.
|
|
25
25
|
process.env.LINEAR_API_KEY = apiKey;
|
|
26
|
-
// Offer to persist to .
|
|
27
|
-
//
|
|
26
|
+
// Offer to persist to project-root .env so dotenv-aware tools (and future
|
|
27
|
+
// ttt runs) can reuse it without relying on the user's shell profile.
|
|
28
|
+
console.log("\nš Local .env file:");
|
|
29
|
+
console.log(` Path: ${paths.envPath}${fromSystemEnv ? " (you already have this key in your shell ā this just pins it per-project)" : ""}`);
|
|
28
30
|
let saveToEnvFile = false;
|
|
29
31
|
if (options.interactive) {
|
|
30
32
|
saveToEnvFile = await confirm({
|
|
31
|
-
message:
|
|
32
|
-
|
|
33
|
-
: `Save ${envName} to ${paths.envPath}?`,
|
|
34
|
-
default: !fromSystemEnv,
|
|
33
|
+
message: `Write ${envName} to ${paths.envPath}?`,
|
|
34
|
+
default: true,
|
|
35
35
|
});
|
|
36
36
|
}
|
|
37
37
|
if (saveToEnvFile) {
|
|
38
|
-
await fs.mkdir(paths.baseDir, { recursive: true });
|
|
39
38
|
await writeDotEnv(paths.envPath, { [envName]: apiKey });
|
|
40
39
|
console.log(` ā Wrote ${envName} to ${paths.envPath}`);
|
|
41
40
|
}
|