Skip to content

Commit

Permalink
chore: add changeset (#4)
Browse files Browse the repository at this point in the history
* chore: add changeset

* chore: ignore packages

* chore: copy readme script
  • Loading branch information
tmm authored Dec 28, 2021
1 parent 525ce5b commit 2fbd821
Show file tree
Hide file tree
Showing 5 changed files with 31 additions and 2 deletions.
6 changes: 6 additions & 0 deletions .changeset/bright-fans-drop.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
'wagmi-private': patch
'wagmi': patch
---

init changesets
3 changes: 2 additions & 1 deletion .changeset/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,6 @@
"updateInternalDependencies": "patch",
"___experimentalUnsafeOptions_WILL_CHANGE_IN_PATCH": {
"onlyUpdatePeerDependentsWhenOutOfRange": true
}
},
"ignore": ["docs", "example-next", "example-vite-react"]
}
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 2 additions & 0 deletions packages/react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
19 changes: 19 additions & 0 deletions scripts/copyREADME.js
Original file line number Diff line number Diff line change
@@ -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'),
)
}
})()

1 comment on commit 2fbd821

@vercel
Copy link

@vercel vercel bot commented on 2fbd821 Dec 28, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

Please sign in to comment.