UNPKG

create-web3-dapp-dev

Version:

<p align="center"> <br /> <a href="https://createweb3dapp.alchemy.com"> <img src=".github/images/cw3d-logo.png" width="200" alt=""/></a> <br /> </p>

19 lines (17 loc) 624 B
import { execSync } from "child_process"; import prompts from "prompts"; export const checkNewPackageUpdates = async () => { try { // success command console.log("\n⏳ Checking for new updates..."); const command = "npm outdated --location=global"; const output = execSync(command); } catch (error: any) { // console.log(error.stdout.toString()) if (error.stdout.toString().includes("create-web3-dapp")) { console.log( "\nThe version of create-web3-dapp installed is outdated.\nRun npx create-web3-dapp@latest to always use the latest version. Ignore this message if already used.\n" ); } } };