From e82b4638a90a1ea822f912b1d4bbbbd903e96ded Mon Sep 17 00:00:00 2001 From: Vivian Plasencia Date: Thu, 29 Feb 2024 22:24:53 +0100 Subject: [PATCH 1/3] fix: download the correct cli template files --- packages/cli-template-contracts-hardhat/package.json | 2 +- packages/cli-template-monorepo-ethers/package.json | 2 +- packages/cli-template-monorepo-subgraph/package.json | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/cli-template-contracts-hardhat/package.json b/packages/cli-template-contracts-hardhat/package.json index 6ebd222b..726eb82c 100644 --- a/packages/cli-template-contracts-hardhat/package.json +++ b/packages/cli-template-contracts-hardhat/package.json @@ -32,7 +32,7 @@ "test:report-gas": "REPORT_GAS=true hardhat test", "test:coverage": "hardhat coverage", "typechain": "hardhat typechain", - "prepublish": "tar -czf files.tgz .gitignore", + "prepublish": "tar --exclude typechain-types --exclude artifacts --exclude cache --exclude node_modules -czf files.tgz .gitignore .yarn .yarnrc.yml", "lint": "eslint . --ext .js,.ts && solhint 'contracts/**/*.sol'", "prettier": "prettier -c --plugin=prettier-plugin-solidity .", "prettier:write": "prettier -w --plugin=prettier-plugin-solidity ." diff --git a/packages/cli-template-monorepo-ethers/package.json b/packages/cli-template-monorepo-ethers/package.json index fdb4dd8f..459beecf 100644 --- a/packages/cli-template-monorepo-ethers/package.json +++ b/packages/cli-template-monorepo-ethers/package.json @@ -18,7 +18,7 @@ "lint": "yarn workspaces foreach -A -pi run lint", "prettier": "prettier -c . && yarn workspaces foreach -A -pi run prettier", "prettier:write": "prettier -w . && yarn workspaces foreach -A -pi run prettier:write", - "prepublish": "tar -czf files.tgz .gitignore .yarn .yarnrc.yml apps" + "prepublish": "tar --exclude typechain-types --exclude artifacts --exclude cache --exclude node_modules --exclude out --exclude .next --exclude build -czf files.tgz .gitignore .yarn .yarnrc.yml apps" }, "workspaces": [ "apps/*" diff --git a/packages/cli-template-monorepo-subgraph/package.json b/packages/cli-template-monorepo-subgraph/package.json index f73fb535..5ce7909e 100644 --- a/packages/cli-template-monorepo-subgraph/package.json +++ b/packages/cli-template-monorepo-subgraph/package.json @@ -18,7 +18,7 @@ "lint": "yarn workspaces foreach -A -pi run lint", "prettier": "prettier -c . && yarn workspaces foreach -A -pi run prettier", "prettier:write": "prettier -w . && yarn workspaces foreach -A -pi run prettier:write", - "prepublish": "tar -czf files.tgz .gitignore .yarn .yarnrc.yml apps" + "prepublish": "tar --exclude typechain-types --exclude artifacts --exclude cache --exclude node_modules --exclude out --exclude .next --exclude build -czf files.tgz .gitignore .yarn .yarnrc.yml apps" }, "workspaces": [ "apps/*" From bee7433a524478040bf67b35a67039c82407301b Mon Sep 17 00:00:00 2001 From: Vivian Plasencia Date: Fri, 1 Mar 2024 13:15:44 +0100 Subject: [PATCH 2/3] refactor(cli-template-monorepo-hardhat): remove unnecessary exclude tags --- packages/cli-template-contracts-hardhat/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/cli-template-contracts-hardhat/package.json b/packages/cli-template-contracts-hardhat/package.json index 726eb82c..5809d9dd 100644 --- a/packages/cli-template-contracts-hardhat/package.json +++ b/packages/cli-template-contracts-hardhat/package.json @@ -32,7 +32,7 @@ "test:report-gas": "REPORT_GAS=true hardhat test", "test:coverage": "hardhat coverage", "typechain": "hardhat typechain", - "prepublish": "tar --exclude typechain-types --exclude artifacts --exclude cache --exclude node_modules -czf files.tgz .gitignore .yarn .yarnrc.yml", + "prepublish": "tar -czf files.tgz .gitignore .yarn .yarnrc.yml", "lint": "eslint . --ext .js,.ts && solhint 'contracts/**/*.sol'", "prettier": "prettier -c --plugin=prettier-plugin-solidity .", "prettier:write": "prettier -w --plugin=prettier-plugin-solidity ." From 42969e2f00b6980cbcef53f2780fc67c4eda314b Mon Sep 17 00:00:00 2001 From: Vivian Plasencia Date: Fri, 1 Mar 2024 13:29:44 +0100 Subject: [PATCH 3/3] refactor(cli-template-contracts-hardhat): remove unnecessary files from config --- packages/cli-template-contracts-hardhat/package.json | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/packages/cli-template-contracts-hardhat/package.json b/packages/cli-template-contracts-hardhat/package.json index 5809d9dd..adfe241c 100644 --- a/packages/cli-template-contracts-hardhat/package.json +++ b/packages/cli-template-contracts-hardhat/package.json @@ -16,9 +16,7 @@ ".prettierrc.json", "hardhat.config.ts", "tsconfig.json", - "README.md", - ".yarn/", - ".yarnrc.yml" + "README.md" ], "publishConfig": { "access": "public"