Skip to content

Commit a25ff14

Browse files
committed
build: use test-renderer 1.3.2 from npm instead of a vendored build
1 parent 6923050 commit a25ff14

7 files changed

Lines changed: 6 additions & 67 deletions

File tree

‎.github/workflows/ci.yml‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@ jobs:
1313
- uses: oven-sh/setup-bun@v2
1414
with:
1515
bun-version-file: package.json
16-
# Must run before `bun install`, which reads the tarball first.
17-
- run: ./scripts/vendor-test-renderer.sh
1816
- run: bun install --frozen-lockfile
1917
- run: bun run format:check
2018

‎.github/workflows/test.yml‎

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,6 @@ jobs:
1717
- uses: oven-sh/setup-bun@v2
1818
with:
1919
bun-version-file: package.json
20-
# Must run before `bun install`, which reads the tarball first.
21-
- run: ./scripts/vendor-test-renderer.sh
2220
- run: bun install --frozen-lockfile
2321
- if: inputs.nitro-ui == 'latest'
2422
run: ./scripts/use-latest-nitro-ui.sh
@@ -31,8 +29,6 @@ jobs:
3129
- uses: oven-sh/setup-bun@v2
3230
with:
3331
bun-version-file: package.json
34-
# Must run before `bun install`, which reads the tarball first.
35-
- run: ./scripts/vendor-test-renderer.sh
3632
- run: bun install --frozen-lockfile
3733
- if: inputs.nitro-ui == 'latest'
3834
run: ./scripts/use-latest-nitro-ui.sh
@@ -56,8 +52,6 @@ jobs:
5652
- uses: oven-sh/setup-bun@v2
5753
with:
5854
bun-version-file: package.json
59-
# Must run before `bun install`, which reads the tarball first.
60-
- run: ./scripts/vendor-test-renderer.sh
6155
- run: bun install --frozen-lockfile
6256
- if: inputs.nitro-ui == 'latest'
6357
run: ./scripts/use-latest-nitro-ui.sh

‎AGENTS.md‎

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -28,21 +28,15 @@ reviewed steps, rather than copying it wholesale.
2828
depends on (currently 19.3.0). A second React copy breaks hooks. After
2929
changing dependencies, check that `node_modules/.bun` has only one `react@`
3030
entry.
31-
- **test-renderer:** built from a pinned `main` commit into `vendor/` until a
32-
release includes `createRefValue` (see `vendor/README.md`). The tarball isn't
33-
committed: `scripts/vendor-test-renderer.sh` builds it, which needs `git`,
34-
network access and `npm`. Run it before `bun install`, which reads the
35-
tarball before any install script runs (a `preinstall` script only works
36-
when Bun's cache already has it, so it fails on a fresh CI machine). Switch
37-
to the npm release once it's out, and drop the script and its CI steps.
31+
- **test-renderer:** 1.3.2 or newer, the first release with the
32+
`createRefValue` root option and `TestInstance.refValue`.
3833

3934
## Common tasks
4035

4136
This repo uses [Bun](https://bun.com) as its package manager, like the rest of
4237
the NitroUI ecosystem.
4338

44-
- Install dependencies: `./scripts/vendor-test-renderer.sh && bun install`.
45-
The script skips the build when the tarball exists. `bunfig.toml` sets the isolated linker,
39+
- Install dependencies: `bun install`. `bunfig.toml` sets the isolated linker,
4640
so code can only import dependencies declared in `package.json`. Don't switch
4741
it to hoisted to work around a missing dependency: declare the dependency.
4842
- Typecheck: `bun run typecheck`

‎bun.lock‎

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
},
2323
"dependencies": {
2424
"pretty-format": "^30.5.1",
25-
"test-renderer": "file:./vendor/test-renderer-1.3.1-main-b5f87c5.tgz"
25+
"test-renderer": "^1.3.2"
2626
},
2727
"devDependencies": {
2828
"@babel/core": "^8.1.4",

‎scripts/vendor-test-renderer.sh‎

Lines changed: 0 additions & 34 deletions
This file was deleted.

‎vendor/README.md‎

Lines changed: 0 additions & 13 deletions
This file was deleted.

0 commit comments

Comments
 (0)