diff --git a/packages/preset-next/src/generators/next-application/__snapshots__/next-application-generator.spec.ts.snap b/packages/preset-next/src/generators/next-application/__snapshots__/next-application-generator.spec.ts.snap index 39066ac..0f26976 100644 --- a/packages/preset-next/src/generators/next-application/__snapshots__/next-application-generator.spec.ts.snap +++ b/packages/preset-next/src/generators/next-application/__snapshots__/next-application-generator.spec.ts.snap @@ -82,7 +82,7 @@ exports[`application generator custom apps should generate app without anchor 1` "\`\`\`", "#### Install Dependencies", "\`\`\`shell", - "pnpm install", + "yarn install", "\`\`\`", "#### Start the web app", "\`\`\`", @@ -90,7 +90,7 @@ exports[`application generator custom apps should generate app without anchor 1` "\`\`\`", "## Apps", "### web", - "This is a React app that uses the Anchor generated client to interact with the Solana program.", + "This is a React app.", "#### Commands", "Start the web app", "\`\`\`shell", @@ -829,7 +829,7 @@ exports[`application generator default apps should generate default app with "no "\`\`\`", "#### Install Dependencies", "\`\`\`shell", - "pnpm install", + "yarn install", "\`\`\`", "#### Start the web app", "\`\`\`", @@ -2838,7 +2838,7 @@ exports[`application generator default apps should generate default app with "ta "\`\`\`", "#### Install Dependencies", "\`\`\`shell", - "pnpm install", + "yarn install", "\`\`\`", "#### Start the web app", "\`\`\`", diff --git a/packages/preset-react/src/generators/react-application/__snapshots__/react-application-generator.spec.ts.snap b/packages/preset-react/src/generators/react-application/__snapshots__/react-application-generator.spec.ts.snap index 808d2e4..e2c705f 100644 --- a/packages/preset-react/src/generators/react-application/__snapshots__/react-application-generator.spec.ts.snap +++ b/packages/preset-react/src/generators/react-application/__snapshots__/react-application-generator.spec.ts.snap @@ -82,7 +82,7 @@ exports[`react-application generator custom apps should generate app without anc "\`\`\`", "#### Install Dependencies", "\`\`\`shell", - "pnpm install", + "yarn install", "\`\`\`", "#### Start the web app", "\`\`\`", @@ -90,7 +90,7 @@ exports[`react-application generator custom apps should generate app without anc "\`\`\`", "## Apps", "### web", - "This is a React app that uses the Anchor generated client to interact with the Solana program.", + "This is a React app.", "#### Commands", "Start the web app", "\`\`\`shell", @@ -547,7 +547,7 @@ exports[`react-application generator custom apps should generate app without anc "", "", "", - "TestApp", + "proj", "", "", "", "", - "TestApp", + "proj", "", " - <%= className %> + <%= npmScope %> diff --git a/packages/preset-react/src/generators/react-template/files/readme/README.md.template b/packages/preset-react/src/generators/react-template/files/readme/README.md.template index 5e88b6d..c24fc54 100644 --- a/packages/preset-react/src/generators/react-template/files/readme/README.md.template +++ b/packages/preset-react/src/generators/react-template/files/readme/README.md.template @@ -25,7 +25,7 @@ cd #### Install Dependencies ```shell -pnpm install +<%= runCmd %> install ``` #### Start the web app @@ -80,7 +80,7 @@ You will manually need to update the constant in `<%= anchorName.fileName %>/lib ### web -This is a React app that uses the Anchor generated client to interact with the Solana program. +This is a <% if (preset === 'react') { %>React<% } else if (preset === 'next') { %>Next.js<% } %> app<% if (anchor.fileName !== 'none') { %> that uses the Anchor generated client to interact with the Solana program<% } %>. #### Commands