diff --git a/.changeset/bright-fans-drop.md b/.changeset/bright-fans-drop.md new file mode 100644 index 0000000000..3f7d98cdbf --- /dev/null +++ b/.changeset/bright-fans-drop.md @@ -0,0 +1,6 @@ +--- +'wagmi-private': patch +'wagmi': patch +--- + +init changesets diff --git a/.changeset/config.json b/.changeset/config.json index 3a7aa93887..9eea876799 100644 --- a/.changeset/config.json +++ b/.changeset/config.json @@ -7,5 +7,6 @@ "updateInternalDependencies": "patch", "___experimentalUnsafeOptions_WILL_CHANGE_IN_PATCH": { "onlyUpdatePeerDependentsWhenOutOfRange": true - } + }, + "ignore": ["docs", "example-next", "example-vite-react"] } diff --git a/package.json b/package.json index 446f1a371b..e3cc86039a 100644 --- a/package.json +++ b/package.json @@ -2,13 +2,14 @@ "name": "root", "scripts": { "build": "preconstruct build", - "changeset:release": "pnpm build && changeset publish", + "changeset:release": "pnpm gen:readme && pnpm build && changeset publish", "changeset:version": "changeset version && pnpm install --lockfile-only", "dev": "preconstruct dev && pnpm gen:abis", "dev:docs": "manypkg run docs dev", "dev:example:next": "manypkg run example-next dev", "dev:example:vite-react": "manypkg run example-vite-react dev", "gen:abis": "pnpm node scripts/generateABIs.js", + "gen:readme": "pnpm node scripts/copyREADME.js", "lint": "eslint --cache", "lint:fix": "pnpm lint --fix", "lint:format": "prettier --write", diff --git a/packages/react/package.json b/packages/react/package.json index fe280dff3c..868f5bd973 100644 --- a/packages/react/package.json +++ b/packages/react/package.json @@ -2,6 +2,8 @@ "name": "wagmi", "license": "MIT", "version": "0.0.1", + "repository": "tmm/wagmi", + "homepage": "https://wagmi-xyz.vercel.app", "sideEffects": false, "main": "dist/wagmi.cjs.js", "module": "dist/wagmi.esm.js", diff --git a/scripts/copyREADME.js b/scripts/copyREADME.js new file mode 100644 index 0000000000..5adafef300 --- /dev/null +++ b/scripts/copyREADME.js @@ -0,0 +1,19 @@ +const fs = require('fs-extra') +const glob = require('glob') + +const path = require('path') + +;(async () => { + const packages = glob.sync('packages/*', { + onlyDirectories: true, + absolute: true, + ignore: ['packages/private'], + }) + + for (const packageDir of packages) { + await fs.copyFile( + path.join(__dirname, '../README.md'), + path.join(packageDir, 'README.md'), + ) + } +})()