From cb816778d61605a618adfc6b85b5bbcc2ed6abd5 Mon Sep 17 00:00:00 2001 From: dschlabach Date: Tue, 5 Nov 2024 10:09:21 -0500 Subject: [PATCH 1/2] fix for yarn and pnpm --- create-onchain/src/cli.ts | 2 +- create-onchain/templates/next/.yarnrc.yml | 2 ++ create-onchain/templates/next/package.json | 1 + 3 files changed, 4 insertions(+), 1 deletion(-) create mode 100644 create-onchain/templates/next/.yarnrc.yml diff --git a/create-onchain/src/cli.ts b/create-onchain/src/cli.ts index c29c0643b5..1b371d266a 100644 --- a/create-onchain/src/cli.ts +++ b/create-onchain/src/cli.ts @@ -15,7 +15,7 @@ import { const sourceDir = path.resolve( fileURLToPath(import.meta.url), - '../../../templates/next' +'../../../templates/next' ); const renameFiles: Record = { diff --git a/create-onchain/templates/next/.yarnrc.yml b/create-onchain/templates/next/.yarnrc.yml new file mode 100644 index 0000000000..14fd359c8f --- /dev/null +++ b/create-onchain/templates/next/.yarnrc.yml @@ -0,0 +1,2 @@ +# You can remove this file if you don't want to use Yarn package manager. +nodeLinker: node-modules \ No newline at end of file diff --git a/create-onchain/templates/next/package.json b/create-onchain/templates/next/package.json index c985d9ade9..90817b564a 100644 --- a/create-onchain/templates/next/package.json +++ b/create-onchain/templates/next/package.json @@ -13,6 +13,7 @@ "next": "14.2.15", "react": "^18", "react-dom": "^18", + "@tanstack/react-query": "^5", "wagmi": "^2.12.25", "viem": "^2.21.40" }, From de24abc2c0f0f6b42b7c26136e08ca540320ce39 Mon Sep 17 00:00:00 2001 From: dschlabach Date: Tue, 5 Nov 2024 10:11:48 -0500 Subject: [PATCH 2/2] format --- create-onchain/src/cli.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/create-onchain/src/cli.ts b/create-onchain/src/cli.ts index 1b371d266a..c29c0643b5 100644 --- a/create-onchain/src/cli.ts +++ b/create-onchain/src/cli.ts @@ -15,7 +15,7 @@ import { const sourceDir = path.resolve( fileURLToPath(import.meta.url), -'../../../templates/next' + '../../../templates/next' ); const renameFiles: Record = {