From 8e771ed2c7093272b77636d6c26e6200e62ccf6b Mon Sep 17 00:00:00 2001 From: lucas-neynar Date: Sat, 29 Mar 2025 16:26:43 -0600 Subject: [PATCH] format: make seed phrase warning more visible --- bin/init.js | 17 ++++++++++------- package.json | 2 +- 2 files changed, 11 insertions(+), 8 deletions(-) diff --git a/bin/init.js b/bin/init.js index 0efcd12..01813da 100644 --- a/bin/init.js +++ b/bin/init.js @@ -14,13 +14,16 @@ const __dirname = dirname(__filename); const REPO_URL = 'https://github.com/neynarxyz/create-farcaster-mini-app.git'; const SCRIPT_VERSION = JSON.parse(fs.readFileSync(path.join(__dirname, '..', 'package.json'), 'utf8')).version; -function printWelcomeMessage() { - const purple = '\x1b[35m'; - const blue = '\x1b[34m'; - const reset = '\x1b[0m'; - const dim = '\x1b[2m'; - const bright = '\x1b[1m'; +// ANSI color codes +const purple = '\x1b[35m'; +const blue = '\x1b[34m'; +const reset = '\x1b[0m'; +const dim = '\x1b[2m'; +const bright = '\x1b[1m'; +const yellow = '\x1b[33m'; +const italic = '\x1b[3m'; +function printWelcomeMessage() { console.log(` ${purple}╔═══════════════════════════════════════════════════╗${reset} ${purple}║ ║${reset} @@ -245,7 +248,7 @@ export async function init() { { type: 'password', name: 'seedPhrase', - message: 'Enter your Farcaster custody account seed phrase to generate a signed manifest for your frame\n(optional -- leave blank to create an unsigned frame)\n(seed phrase is only ever stored in .env.local)\n\nSeed phrase:', + message: `Enter your Farcaster custody account seed phrase to generate a signed manifest for your frame\n(optional -- leave blank to create an unsigned frame)\n⚠️ ${yellow}${italic}seed phrase is only ever stored in .env.local${reset} ⚠️\nSeed phrase:`, default: null } ]); diff --git a/package.json b/package.json index 3582ec5..6068e07 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@neynar/create-farcaster-mini-app", - "version": "1.2.8", + "version": "1.2.9", "type": "module", "private": false, "access": "public",