Skip to content

Commit 3111dca

Browse files
committed
add chainset for publishing packages
1 parent c10b4fd commit 3111dca

File tree

7 files changed

+1225
-577
lines changed

7 files changed

+1225
-577
lines changed

.changeset/README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Changesets
2+
3+
Hello and welcome! This folder has been automatically generated by `@changesets/cli`, a build tool that works
4+
with multi-package repos, or single-package repos to help you version and publish your code. You can
5+
find the full documentation for it [in our repository](https://github.com/changesets/changesets)
6+
7+
We have a quick list of common questions to get you started engaging with this project in
8+
[our documentation](https://github.com/changesets/changesets/blob/main/docs/common-questions.md)

.changeset/config.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"$schema": "https://unpkg.com/@changesets/config@3.0.5/schema.json",
3+
"changelog": "@changesets/cli/changelog",
4+
"commit": false,
5+
"fixed": [],
6+
"linked": [],
7+
"access": "public",
8+
"baseBranch": "main",
9+
"updateInternalDependencies": "patch",
10+
"ignore": []
11+
}

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,12 @@ docker exec -it <container-id> pm2 reload all
6262

6363
For the versions available, see the tags on this repository.
6464

65+
### Releasing packages to NPM
66+
67+
We use [changesets](https://github.com/changesets/changesets) to release to NPM. You can use the `release` script in `package.json` to publish.
68+
69+
Currently the only workspace being released as an NPM package is the one in `solidity`, which contains the contracts and typechain artifacts.
70+
6571
### License
6672

6773
This project is licensed under the Apache 2.0 License - see the LICENSE.md file for details.

package.json

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
{
2-
"name": "intents-framework",
2+
"name": "@bootnodedev/intents-framework",
33
"version": "0.1.0",
44
"scripts": {
5-
"build:solver": "yarn workspace solver build"
5+
"build": "yarn workspaces foreach --all --parallel --topological run build",
6+
"build:solver": "yarn workspace solver build",
7+
"release": "yarn build && yarn changeset publish"
68
},
79
"repository": {
810
"type": "git",
@@ -19,5 +21,8 @@
1921
"typescript/solver",
2022
"solidity"
2123
],
22-
"packageManager": "yarn@4.5.1"
24+
"packageManager": "yarn@4.5.1",
25+
"devDependencies": {
26+
"@changesets/cli": "^2.27.12"
27+
}
2328
}

solidity/package.json

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
2-
"name": "7683-router",
3-
"description": "A reference ERC7683 implementation",
4-
"version": "1.0.0",
2+
"name": "@bootnodedev/intent-framework-core",
3+
"description": "Core solidity contracts for the Intent Framework",
4+
"version": "0.1.0",
55
"author": {
66
"name": "BootNode"
77
},
@@ -44,9 +44,8 @@
4444
"/contracts"
4545
],
4646
"keywords": [],
47-
"private": true,
4847
"scripts": {
49-
"clean": "yarn hardhat-esm clean && rm -rf ./dist ./cache ./types ./coverage ./out ./forge-cache ./fixtures && forge clean",
48+
"clean": "yarn hardhat-esm clean && rm -rf ./dist ./cache ./cache_hardhat ./types ./coverage ./out ./forge-cache ./fixtures && forge clean",
5049
"build": "yarn hardhat-esm compile && tsc && ./exportBuildArtifact.sh",
5150
"hardhat-esm": "NODE_OPTIONS='--experimental-loader ts-node/esm/transpile-only --no-warnings=ExperimentalWarning' hardhat --config hardhat.config.cts",
5251
"forge:build": "forge build",

typescript/solver/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
"name": "solver",
33
"type": "module",
44
"version": "0.1.0",
5+
"private": true,
56
"scripts": {
67
"solver": "node ./dist/index.js",
78
"build": "tsc",

0 commit comments

Comments
 (0)