mirror of
https://github.com/neynarxyz/create-farcaster-mini-app.git
synced 2025-11-16 08:08:56 -05:00
fix: move dev script and check for pid
This commit is contained in:
parent
d483780019
commit
be7f23a88b
1781
package-lock.json
generated
1781
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "create-neynar-farcaster-frame",
|
"name": "create-neynar-farcaster-frame",
|
||||||
"version": "1.0.6",
|
"version": "1.0.7",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"files": [
|
"files": [
|
||||||
"bin/index.js"
|
"bin/index.js"
|
||||||
@ -14,8 +14,7 @@
|
|||||||
"web3"
|
"web3"
|
||||||
],
|
],
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"localtunnel": "node localtunnel.js",
|
"dev": "node scripts/dev.js",
|
||||||
"dev": "node dev.js",
|
|
||||||
"build": "next build",
|
"build": "next build",
|
||||||
"start": "next start",
|
"start": "next start",
|
||||||
"lint": "next lint"
|
"lint": "next lint"
|
||||||
@ -27,5 +26,9 @@
|
|||||||
"dotenv": "^16.4.7",
|
"dotenv": "^16.4.7",
|
||||||
"inquirer": "^12.4.3",
|
"inquirer": "^12.4.3",
|
||||||
"viem": "^2.23.6"
|
"viem": "^2.23.6"
|
||||||
|
},
|
||||||
|
"devDependencies": {
|
||||||
|
"typescript": "^5.6.3",
|
||||||
|
"@neynar/nodejs-sdk": "^2.19.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
4
dev.js → scripts/dev.js
Normal file → Executable file
4
dev.js → scripts/dev.js
Normal file → Executable file
@ -56,7 +56,9 @@ async function startDev() {
|
|||||||
// Kill the main process first
|
// Kill the main process first
|
||||||
nextDev.kill('SIGKILL');
|
nextDev.kill('SIGKILL');
|
||||||
// Then kill any remaining child processes in the group
|
// Then kill any remaining child processes in the group
|
||||||
process.kill(-nextDev.pid);
|
if (nextDev?.pid) {
|
||||||
|
process.kill(-nextDev.pid);
|
||||||
|
}
|
||||||
console.log('🛑 Next.js dev server stopped');
|
console.log('🛑 Next.js dev server stopped');
|
||||||
}
|
}
|
||||||
|
|
||||||
Loading…
x
Reference in New Issue
Block a user