fix: update package name in comments

This commit is contained in:
lucas-neynar 2025-03-26 11:45:55 -07:00
parent c0562fca24
commit c211f8520c
No known key found for this signature in database
3 changed files with 83 additions and 83 deletions

View File

@ -8,7 +8,7 @@ This is a [NextJS](https://nextjs.org/) + TypeScript + React app.
To create a new frames project, run: To create a new frames project, run:
```{bash} ```{bash}
npx create-neynar-farcaster-frame@latest npx @neynar/create-farcaster-mini-app@latest
``` ```
To run the project: To run the project:
@ -20,7 +20,7 @@ npm run dev
### Importing the CLI ### Importing the CLI
To invoke the CLI directly in JavaScript, add the npm package to your project and use the following import statement: To invoke the CLI directly in JavaScript, add the npm package to your project and use the following import statement:
```{javascript} ```{javascript}
import { init } from 'create-neynar-farcaster-frame'; import { init } from '@neynar/create-farcaster-mini-app';
``` ```
## Deploying to Vercel ## Deploying to Vercel

View File

@ -11,7 +11,7 @@ import { mnemonicToAccount } from 'viem/accounts';
const __filename = fileURLToPath(import.meta.url); const __filename = fileURLToPath(import.meta.url);
const __dirname = dirname(__filename); const __dirname = dirname(__filename);
const REPO_URL = 'https://github.com/neynarxyz/create-neynar-farcaster-frame.git'; 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; const SCRIPT_VERSION = JSON.parse(fs.readFileSync(path.join(__dirname, '..', 'package.json'), 'utf8')).version;
function printWelcomeMessage() { function printWelcomeMessage() {
@ -435,7 +435,7 @@ export async function init() {
// Update README // Update README
console.log('\nUpdating README...'); console.log('\nUpdating README...');
const readmePath = path.join(projectPath, 'README.md'); const readmePath = path.join(projectPath, 'README.md');
const prependText = `<!-- generated by create-neynar-farcaster-frame version ${SCRIPT_VERSION} -->\n\n`; const prependText = `<!-- generated by @neynar/create-farcaster-mini-app version ${SCRIPT_VERSION} -->\n\n`;
if (fs.existsSync(readmePath)) { if (fs.existsSync(readmePath)) {
const originalReadmeContent = fs.readFileSync(readmePath, { encoding: 'utf8' }); const originalReadmeContent = fs.readFileSync(readmePath, { encoding: 'utf8' });
const updatedReadmeContent = prependText + originalReadmeContent; const updatedReadmeContent = prependText + originalReadmeContent;
@ -461,7 +461,7 @@ export async function init() {
console.log('\nInitializing git repository...'); console.log('\nInitializing git repository...');
execSync('git init', { cwd: projectPath }); execSync('git init', { cwd: projectPath });
execSync('git add .', { cwd: projectPath }); execSync('git add .', { cwd: projectPath });
execSync('git commit -m "initial commit from create-neynar-farcaster-frame"', { cwd: projectPath }); execSync('git commit -m "initial commit from @neynar/create-farcaster-mini-app"', { cwd: projectPath });
// Calculate border length based on message length // Calculate border length based on message length
const message = `✨🪐 Successfully created frame ${projectName} with git and dependencies installed! 🪐✨`; const message = `✨🪐 Successfully created frame ${projectName} with git and dependencies installed! 🪐✨`;

156
package-lock.json generated
View File

@ -1,19 +1,19 @@
{ {
"name": "create-neynar-farcaster-frame", "name": "@neynar/create-farcaster-mini-app",
"version": "1.1.2", "version": "1.2.5",
"lockfileVersion": 3, "lockfileVersion": 3,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "create-neynar-farcaster-frame", "name": "@neynar/create-farcaster-mini-app",
"version": "1.1.2", "version": "1.2.5",
"dependencies": { "dependencies": {
"dotenv": "^16.4.7", "dotenv": "^16.4.7",
"inquirer": "^12.4.3", "inquirer": "^12.4.3",
"viem": "^2.23.6" "viem": "^2.23.6"
}, },
"bin": { "bin": {
"create-neynar-farcaster-frame": "bin/index.js" "create-farcaster-mini-app": "bin/index.js"
}, },
"devDependencies": { "devDependencies": {
"@neynar/nodejs-sdk": "^2.19.0", "@neynar/nodejs-sdk": "^2.19.0",
@ -28,9 +28,9 @@
"license": "MIT" "license": "MIT"
}, },
"node_modules/@babel/runtime": { "node_modules/@babel/runtime": {
"version": "7.26.10", "version": "7.27.0",
"resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.26.10.tgz", "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.27.0.tgz",
"integrity": "sha512-2WJMeRQPHKSPemqk/awGrAiuFfzBmOIPXKizAsVhWH9YJqLZ0H+HS4c8loHGgW6utJ3E/ejXQUsiGaQy2NZ9Fw==", "integrity": "sha512-VtPOkrdPHZsKc/clNqyi9WUA8TINkZ4cGk63UUE3u4pmB2k+ZMQRDuIOagv8UVd6j7k0T3+RRIb7beKTebNbcw==",
"dev": true, "dev": true,
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
@ -41,12 +41,12 @@
} }
}, },
"node_modules/@inquirer/checkbox": { "node_modules/@inquirer/checkbox": {
"version": "4.1.3", "version": "4.1.4",
"resolved": "https://registry.npmjs.org/@inquirer/checkbox/-/checkbox-4.1.3.tgz", "resolved": "https://registry.npmjs.org/@inquirer/checkbox/-/checkbox-4.1.4.tgz",
"integrity": "sha512-KU1MGwf24iABJjGESxhyj+/rlQYSRoCfcuHDEHXfZ1DENmbuSRfyrUb+LLjHoee5TNOFKwaFxDXc5/zRwJUPMQ==", "integrity": "sha512-d30576EZdApjAMceijXA5jDzRQHT/MygbC+J8I7EqA6f/FRpYxlRtRJbHF8gHeWYeSdOuTEJqonn7QLB1ELezA==",
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
"@inquirer/core": "^10.1.8", "@inquirer/core": "^10.1.9",
"@inquirer/figures": "^1.0.11", "@inquirer/figures": "^1.0.11",
"@inquirer/type": "^3.0.5", "@inquirer/type": "^3.0.5",
"ansi-escapes": "^4.3.2", "ansi-escapes": "^4.3.2",
@ -65,12 +65,12 @@
} }
}, },
"node_modules/@inquirer/confirm": { "node_modules/@inquirer/confirm": {
"version": "5.1.7", "version": "5.1.8",
"resolved": "https://registry.npmjs.org/@inquirer/confirm/-/confirm-5.1.7.tgz", "resolved": "https://registry.npmjs.org/@inquirer/confirm/-/confirm-5.1.8.tgz",
"integrity": "sha512-Xrfbrw9eSiHb+GsesO8TQIeHSMTP0xyvTCeeYevgZ4sKW+iz9w/47bgfG9b0niQm+xaLY2EWPBINUPldLwvYiw==", "integrity": "sha512-dNLWCYZvXDjO3rnQfk2iuJNL4Ivwz/T2+C3+WnNfJKsNGSuOs3wAo2F6e0p946gtSAk31nZMfW+MRmYaplPKsg==",
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
"@inquirer/core": "^10.1.8", "@inquirer/core": "^10.1.9",
"@inquirer/type": "^3.0.5" "@inquirer/type": "^3.0.5"
}, },
"engines": { "engines": {
@ -86,9 +86,9 @@
} }
}, },
"node_modules/@inquirer/core": { "node_modules/@inquirer/core": {
"version": "10.1.8", "version": "10.1.9",
"resolved": "https://registry.npmjs.org/@inquirer/core/-/core-10.1.8.tgz", "resolved": "https://registry.npmjs.org/@inquirer/core/-/core-10.1.9.tgz",
"integrity": "sha512-HpAqR8y715zPpM9e/9Q+N88bnGwqqL8ePgZ0SMv/s3673JLMv3bIkoivGmjPqXlEgisUksSXibweQccUwEx4qQ==", "integrity": "sha512-sXhVB8n20NYkUBfDYgizGHlpRVaCRjtuzNZA6xpALIUbkgfd2Hjz+DfEN6+h1BRnuxw0/P4jCIMjMsEOAMwAJw==",
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
"@inquirer/figures": "^1.0.11", "@inquirer/figures": "^1.0.11",
@ -113,12 +113,12 @@
} }
}, },
"node_modules/@inquirer/editor": { "node_modules/@inquirer/editor": {
"version": "4.2.8", "version": "4.2.9",
"resolved": "https://registry.npmjs.org/@inquirer/editor/-/editor-4.2.8.tgz", "resolved": "https://registry.npmjs.org/@inquirer/editor/-/editor-4.2.9.tgz",
"integrity": "sha512-UkGKbMFlQw5k4ZLjDwEi5z8NIVlP/3DAlLHta0o0pSsdpPThNmPtUL8mvGCHUaQtR+QrxR9yRYNWgKMsHkfIUA==", "integrity": "sha512-8HjOppAxO7O4wV1ETUlJFg6NDjp/W2NP5FB9ZPAcinAlNT4ZIWOLe2pUVwmmPRSV0NMdI5r/+lflN55AwZOKSw==",
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
"@inquirer/core": "^10.1.8", "@inquirer/core": "^10.1.9",
"@inquirer/type": "^3.0.5", "@inquirer/type": "^3.0.5",
"external-editor": "^3.1.0" "external-editor": "^3.1.0"
}, },
@ -135,12 +135,12 @@
} }
}, },
"node_modules/@inquirer/expand": { "node_modules/@inquirer/expand": {
"version": "4.0.10", "version": "4.0.11",
"resolved": "https://registry.npmjs.org/@inquirer/expand/-/expand-4.0.10.tgz", "resolved": "https://registry.npmjs.org/@inquirer/expand/-/expand-4.0.11.tgz",
"integrity": "sha512-leyBouGJ77ggv51Jb/OJmLGGnU2HYc13MZ2iiPNLwe2VgFgZPVqsrRWSa1RAHKyazjOyvSNKLD1B2K7A/iWi1g==", "integrity": "sha512-OZSUW4hFMW2TYvX/Sv+NnOZgO8CHT2TU1roUCUIF2T+wfw60XFRRp9MRUPCT06cRnKL+aemt2YmTWwt7rOrNEA==",
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
"@inquirer/core": "^10.1.8", "@inquirer/core": "^10.1.9",
"@inquirer/type": "^3.0.5", "@inquirer/type": "^3.0.5",
"yoctocolors-cjs": "^2.1.2" "yoctocolors-cjs": "^2.1.2"
}, },
@ -166,12 +166,12 @@
} }
}, },
"node_modules/@inquirer/input": { "node_modules/@inquirer/input": {
"version": "4.1.7", "version": "4.1.8",
"resolved": "https://registry.npmjs.org/@inquirer/input/-/input-4.1.7.tgz", "resolved": "https://registry.npmjs.org/@inquirer/input/-/input-4.1.8.tgz",
"integrity": "sha512-rCQAipJNA14UTH84df/z4jDJ9LZ54H6zzuCAi7WZ0qVqx3CSqLjfXAMd5cpISIxbiHVJCPRB81gZksq6CZsqDg==", "integrity": "sha512-WXJI16oOZ3/LiENCAxe8joniNp8MQxF6Wi5V+EBbVA0ZIOpFcL4I9e7f7cXse0HJeIPCWO8Lcgnk98juItCi7Q==",
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
"@inquirer/core": "^10.1.8", "@inquirer/core": "^10.1.9",
"@inquirer/type": "^3.0.5" "@inquirer/type": "^3.0.5"
}, },
"engines": { "engines": {
@ -187,12 +187,12 @@
} }
}, },
"node_modules/@inquirer/number": { "node_modules/@inquirer/number": {
"version": "3.0.10", "version": "3.0.11",
"resolved": "https://registry.npmjs.org/@inquirer/number/-/number-3.0.10.tgz", "resolved": "https://registry.npmjs.org/@inquirer/number/-/number-3.0.11.tgz",
"integrity": "sha512-GLsdnxzNefjCJUmWyjaAuNklHgDpCTL4RMllAVhVvAzBwRW9g38eZ5tWgzo1lirtSDTpsh593hqXVhxvdrjfwA==", "integrity": "sha512-pQK68CsKOgwvU2eA53AG/4npRTH2pvs/pZ2bFvzpBhrznh8Mcwt19c+nMO7LHRr3Vreu1KPhNBF3vQAKrjIulw==",
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
"@inquirer/core": "^10.1.8", "@inquirer/core": "^10.1.9",
"@inquirer/type": "^3.0.5" "@inquirer/type": "^3.0.5"
}, },
"engines": { "engines": {
@ -208,12 +208,12 @@
} }
}, },
"node_modules/@inquirer/password": { "node_modules/@inquirer/password": {
"version": "4.0.10", "version": "4.0.11",
"resolved": "https://registry.npmjs.org/@inquirer/password/-/password-4.0.10.tgz", "resolved": "https://registry.npmjs.org/@inquirer/password/-/password-4.0.11.tgz",
"integrity": "sha512-JC538ujqeYKkFqLoWZ0ILBteIUO2yajBMVEUZSxjl9x6fiEQtM+I5Rca7M2D8edMDbyHLnXifGH1hJZdh8V5rA==", "integrity": "sha512-dH6zLdv+HEv1nBs96Case6eppkRggMe8LoOTl30+Gq5Wf27AO/vHFgStTVz4aoevLdNXqwE23++IXGw4eiOXTg==",
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
"@inquirer/core": "^10.1.8", "@inquirer/core": "^10.1.9",
"@inquirer/type": "^3.0.5", "@inquirer/type": "^3.0.5",
"ansi-escapes": "^4.3.2" "ansi-escapes": "^4.3.2"
}, },
@ -230,21 +230,21 @@
} }
}, },
"node_modules/@inquirer/prompts": { "node_modules/@inquirer/prompts": {
"version": "7.3.3", "version": "7.4.0",
"resolved": "https://registry.npmjs.org/@inquirer/prompts/-/prompts-7.3.3.tgz", "resolved": "https://registry.npmjs.org/@inquirer/prompts/-/prompts-7.4.0.tgz",
"integrity": "sha512-QS1AQgJ113iE/nmym03yKZKHvGjVWwkGZT3B1yKrrMG0bJKQg1jUkntFP8aPd2FUQzu/nga7QU2eDpzIP5it0Q==", "integrity": "sha512-EZiJidQOT4O5PYtqnu1JbF0clv36oW2CviR66c7ma4LsupmmQlUwmdReGKRp456OWPWMz3PdrPiYg3aCk3op2w==",
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
"@inquirer/checkbox": "^4.1.3", "@inquirer/checkbox": "^4.1.4",
"@inquirer/confirm": "^5.1.7", "@inquirer/confirm": "^5.1.8",
"@inquirer/editor": "^4.2.8", "@inquirer/editor": "^4.2.9",
"@inquirer/expand": "^4.0.10", "@inquirer/expand": "^4.0.11",
"@inquirer/input": "^4.1.7", "@inquirer/input": "^4.1.8",
"@inquirer/number": "^3.0.10", "@inquirer/number": "^3.0.11",
"@inquirer/password": "^4.0.10", "@inquirer/password": "^4.0.11",
"@inquirer/rawlist": "^4.0.10", "@inquirer/rawlist": "^4.0.11",
"@inquirer/search": "^3.0.10", "@inquirer/search": "^3.0.11",
"@inquirer/select": "^4.0.10" "@inquirer/select": "^4.1.0"
}, },
"engines": { "engines": {
"node": ">=18" "node": ">=18"
@ -259,12 +259,12 @@
} }
}, },
"node_modules/@inquirer/rawlist": { "node_modules/@inquirer/rawlist": {
"version": "4.0.10", "version": "4.0.11",
"resolved": "https://registry.npmjs.org/@inquirer/rawlist/-/rawlist-4.0.10.tgz", "resolved": "https://registry.npmjs.org/@inquirer/rawlist/-/rawlist-4.0.11.tgz",
"integrity": "sha512-vOQbQkmhaCsF2bUmjoyRSZJBz77UnIF/F3ZS2LMgwbgyaG2WgwKHh0WKNj0APDB72WDbZijhW5nObQbk+TnbcA==", "integrity": "sha512-uAYtTx0IF/PqUAvsRrF3xvnxJV516wmR6YVONOmCWJbbt87HcDHLfL9wmBQFbNJRv5kCjdYKrZcavDkH3sVJPg==",
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
"@inquirer/core": "^10.1.8", "@inquirer/core": "^10.1.9",
"@inquirer/type": "^3.0.5", "@inquirer/type": "^3.0.5",
"yoctocolors-cjs": "^2.1.2" "yoctocolors-cjs": "^2.1.2"
}, },
@ -281,12 +281,12 @@
} }
}, },
"node_modules/@inquirer/search": { "node_modules/@inquirer/search": {
"version": "3.0.10", "version": "3.0.11",
"resolved": "https://registry.npmjs.org/@inquirer/search/-/search-3.0.10.tgz", "resolved": "https://registry.npmjs.org/@inquirer/search/-/search-3.0.11.tgz",
"integrity": "sha512-EAVKAz6P1LajZOdoL+R+XC3HJYSU261fbJzO4fCkJJ7UPFcm+nP+gzC+DDZWsb2WK9PQvKsnaKiNKsY8B6dBWQ==", "integrity": "sha512-9CWQT0ikYcg6Ls3TOa7jljsD7PgjcsYEM0bYE+Gkz+uoW9u8eaJCRHJKkucpRE5+xKtaaDbrND+nPDoxzjYyew==",
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
"@inquirer/core": "^10.1.8", "@inquirer/core": "^10.1.9",
"@inquirer/figures": "^1.0.11", "@inquirer/figures": "^1.0.11",
"@inquirer/type": "^3.0.5", "@inquirer/type": "^3.0.5",
"yoctocolors-cjs": "^2.1.2" "yoctocolors-cjs": "^2.1.2"
@ -304,12 +304,12 @@
} }
}, },
"node_modules/@inquirer/select": { "node_modules/@inquirer/select": {
"version": "4.0.10", "version": "4.1.0",
"resolved": "https://registry.npmjs.org/@inquirer/select/-/select-4.0.10.tgz", "resolved": "https://registry.npmjs.org/@inquirer/select/-/select-4.1.0.tgz",
"integrity": "sha512-Tg8S9nESnCfISu5tCZSuXpXq0wHuDVimj7xyHstABgR34zcJnLdq/VbjB2mdZvNAMAehYBnNzSjxB06UE8LLAA==", "integrity": "sha512-z0a2fmgTSRN+YBuiK1ROfJ2Nvrpij5lVN3gPDkQGhavdvIVGHGW29LwYZfM/j42Ai2hUghTI/uoBuTbrJk42bA==",
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
"@inquirer/core": "^10.1.8", "@inquirer/core": "^10.1.9",
"@inquirer/figures": "^1.0.11", "@inquirer/figures": "^1.0.11",
"@inquirer/type": "^3.0.5", "@inquirer/type": "^3.0.5",
"ansi-escapes": "^4.3.2", "ansi-escapes": "^4.3.2",
@ -436,9 +436,9 @@
} }
}, },
"node_modules/@neynar/nodejs-sdk": { "node_modules/@neynar/nodejs-sdk": {
"version": "2.19.0", "version": "2.23.0",
"resolved": "https://registry.npmjs.org/@neynar/nodejs-sdk/-/nodejs-sdk-2.19.0.tgz", "resolved": "https://registry.npmjs.org/@neynar/nodejs-sdk/-/nodejs-sdk-2.23.0.tgz",
"integrity": "sha512-T9zpr9KWbfpfBuAJlKt7p8PcDWxxtdDjRX0bI/bfzEZLSu5acQA7br+x1PRiOKtUt1loGkTYwhXmtrHzAXAO9A==", "integrity": "sha512-OGASRM4JIvx/kL8YUEQnuDhbiK6Y+/oTXBQwcXkFSLGbOqagkKaILWiHr8J7sYogtgdEJHYW2J9n91tliGPK3Q==",
"dev": true, "dev": true,
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
@ -632,9 +632,9 @@
"license": "MIT" "license": "MIT"
}, },
"node_modules/@types/node": { "node_modules/@types/node": {
"version": "22.13.10", "version": "22.13.13",
"resolved": "https://registry.npmjs.org/@types/node/-/node-22.13.10.tgz", "resolved": "https://registry.npmjs.org/@types/node/-/node-22.13.13.tgz",
"integrity": "sha512-I6LPUvlRH+O6VRUqYOcMudhaIdUVWfsjnZavnsraHvpBwaEyMN29ry+0UVJhImYL16xsscu0aske3yA+uPOWfw==", "integrity": "sha512-ClsL5nMwKaBRwPcCvH8E7+nU4GxHVx1axNvMZTFHMEfNI7oahimt26P5zjVCRrjiIWj6YFXfE1v3dEp94wLcGQ==",
"devOptional": true, "devOptional": true,
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
@ -1654,13 +1654,13 @@
"license": "ISC" "license": "ISC"
}, },
"node_modules/inquirer": { "node_modules/inquirer": {
"version": "12.4.3", "version": "12.5.0",
"resolved": "https://registry.npmjs.org/inquirer/-/inquirer-12.4.3.tgz", "resolved": "https://registry.npmjs.org/inquirer/-/inquirer-12.5.0.tgz",
"integrity": "sha512-p9+jcDKhFHKTunvpffCk7I9eKt8+NPNWO8hMSSoLPv5vahP5Vhr78qWzDtA+6FBWQtFTuLFUWmxTyhC6G2Xz/Q==", "integrity": "sha512-aiBBq5aKF1k87MTxXDylLfwpRwToShiHrSv4EmB07EYyLgmnjEz5B3rn0aGw1X3JA/64Ngf2T54oGwc+BCsPIQ==",
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
"@inquirer/core": "^10.1.8", "@inquirer/core": "^10.1.9",
"@inquirer/prompts": "^7.3.3", "@inquirer/prompts": "^7.4.0",
"@inquirer/type": "^3.0.5", "@inquirer/type": "^3.0.5",
"ansi-escapes": "^4.3.2", "ansi-escapes": "^4.3.2",
"mute-stream": "^2.0.0", "mute-stream": "^2.0.0",
@ -2450,9 +2450,9 @@
"license": "MIT" "license": "MIT"
}, },
"node_modules/viem": { "node_modules/viem": {
"version": "2.23.10", "version": "2.23.15",
"resolved": "https://registry.npmjs.org/viem/-/viem-2.23.10.tgz", "resolved": "https://registry.npmjs.org/viem/-/viem-2.23.15.tgz",
"integrity": "sha512-va6Wde+v96PdfzdPEspCML1MjAqe+88O8BD+R9Kun/4s5KMUNcqfHbXdZP0ZZ2Zms80styvH2pDRAqCho6TqkA==", "integrity": "sha512-2t9lROkSzj/ciEZ08NqAHZ6c+J1wKLwJ4qpUxcHdVHcLBt6GfO9+ycuZycTT05ckfJ6TbwnMXMa3bMonvhtUMw==",
"funding": [ "funding": [
{ {
"type": "github", "type": "github",