Skip to content

Commit dbc104d

Browse files
committed
feat(dev): local CCC PRs for testing unpublished changes and up deps
1 parent 901c06c commit dbc104d

File tree

8 files changed

+172
-152
lines changed

8 files changed

+172
-152
lines changed

.gitignore

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,7 @@
33
.pnpm-store/
44

55
# Artifacts
6-
**/dist/
6+
**/dist/
7+
8+
# Local development branch of ccc
9+
packages/ccc

README.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,22 @@ graph TD;
2727
click F "https://github.com/ickb/stack/tree/master/packages/sdk" "Go to @ickb/sdk"
2828
```
2929

30+
## Develop CCC
31+
32+
Import locally unpublished CCC pull requests (PRs), for example when working with a PR that has not yet been published to canary. The first PR specified will be checked out.
33+
34+
```json
35+
{
36+
"overrides": {
37+
"@ckb-ccc/core": "workspace:*"
38+
},
39+
"scripts": {
40+
"preinstall": "pnpm install:ccc:pr",
41+
"install:ccc:pr": " set -eux -- 314 261; cd packages; git clone https://github.com/ckb-devrel/ccc.git || exit 0; cd ccc; st=true; for p in $@; do git fetch origin pull/$p/head:pr-$p; if $st; then git checkout pr-$p; st=false; else git merge --no-ff --no-edit pr-$p; fi; done; pnpm -r install"
42+
}
43+
}
44+
```
45+
3046
## Epoch Semantic Versioning
3147

3248
This repository follows [Epoch Semantic Versioning](https://antfu.me/posts/epoch-semver). In short ESV aims to provide a more nuanced and effective way to communicate software changes, allowing for better user understanding and smoother upgrades.

apps/bot/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
"provenance": true
4848
},
4949
"devDependencies": {
50-
"@types/node": "^24.6.2"
50+
"@types/node": "^24.7.0"
5151
},
5252
"dependencies": {
5353
"@ckb-lumos/base": "^0.23.0",

apps/faucet/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
"provenance": true
4747
},
4848
"devDependencies": {
49-
"@types/node": "^24.6.2"
49+
"@types/node": "^24.7.0"
5050
},
5151
"dependencies": {
5252
"@ckb-ccc/core": "catalog:",

apps/interface/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@
2222
"@eslint/js": "^9.37.0",
2323
"@tailwindcss/vite": "^4.1.14",
2424
"@types/node": "^22.18.8",
25-
"@types/react": "^19.2.0",
26-
"@types/react-dom": "^19.2.0",
25+
"@types/react": "^19.2.2",
26+
"@types/react-dom": "^19.2.1",
2727
"@vitejs/plugin-basic-ssl": "^1.2.0",
2828
"@vitejs/plugin-react": "^4.7.0",
2929
"babel-plugin-react-compiler": "latest",
@@ -35,7 +35,7 @@
3535
"prettier-plugin-tailwindcss": "^0.6.14",
3636
"tailwindcss": "^4.1.14",
3737
"typescript": "^5.9.3",
38-
"typescript-eslint": "^8.45.0",
38+
"typescript-eslint": "^8.46.0",
3939
"vite": "^6.3.6"
4040
},
4141
"dependencies": {

apps/tester/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
"provenance": true
4747
},
4848
"devDependencies": {
49-
"@types/node": "^24.6.2"
49+
"@types/node": "^24.7.0"
5050
},
5151
"dependencies": {
5252
"@ckb-lumos/base": "^0.23.0",

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"private": true,
33
"scripts": {
4+
"install:ccc:pr": " set -eux -- 314; cd packages; git clone https://github.com/ckb-devrel/ccc.git || exit 0; cd ccc; st=true; for p in $@; do git fetch origin pull/$p/head:pr-$p; if $st; then git checkout pr-$p; st=false; else git merge --no-ff --no-edit pr-$p; fi; done; pnpm -r install",
45
"test": "vitest",
56
"test:ci": "vitest run",
67
"test:cov": "vitest run --coverage",
@@ -29,7 +30,7 @@
2930
"prettier-plugin-organize-imports": "^4.3.0",
3031
"typedoc": "0.28.7",
3132
"typescript": "^5.9.3",
32-
"typescript-eslint": "^8.45.0",
33+
"typescript-eslint": "^8.46.0",
3334
"vitest": "^3.2.4"
3435
},
3536
"packageManager": "pnpm@10.15.1"

0 commit comments

Comments
 (0)