Skip to content

Commit eb556c5

Browse files
committed
docs: remove changesets goal
1 parent 53b8b63 commit eb556c5

File tree

1 file changed

+29
-1
lines changed

1 file changed

+29
-1
lines changed

README.md

Lines changed: 29 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,40 @@ Deno社が始めた新しいレジストリ『[JSR](https://jsr.io)』にパッ
1616
- [x] JSRでサブパッケージが公開できるか試す
1717
- [x] JSRのlintが効かない問題を解決する
1818
- [x] importがエラーになる問題を解決する
19-
- [ ] Squash mergeと`npm:changesets/cli`を使って、PR単位で機能をまとめたリリースができるか試す
19+
- [x] Squash mergeと`npm:changesets/cli`を使って、PR単位で機能をまとめたリリースができるか試す
20+
- [ ] リリーススクリプトを調整して、コマンドを叩いたらPRが作成されるように修正
2021

2122
### エラー解決
2223
#### GitHub ActionsでGitHub Releasesが生成できない
2324
`jobs.<job_name>.permissions.contents``write`になっていなかった
2425

26+
#### 素のDenoでchangesetsが使えない
27+
`changesets init`は動作したが、`changesets version`が以下のエラーが出て動作しない
28+
29+
```sh
30+
$ deno run npm:@changesets/[email protected] version
31+
✅ Granted all env access.
32+
✅ Granted all read access.
33+
✅ Granted all sys access.
34+
🦋 error Error: No package.json could be found upwards from the directory /home/windchime-yk/dev/playground/learn-jsr
35+
🦋 error at _callee4$ (file:///home/windchime-yk/.cache/deno/npm/registry.npmjs.org/@manypkg/find-root/1.1.0/dist/find-root.cjs.dev.js:217:19)
36+
🦋 error at tryCatch (file:///home/windchime-yk/.cache/deno/npm/registry.npmjs.org/@babel/runtime/7.26.7/helpers/regeneratorRuntime.js:45:16)
37+
🦋 error at Generator.<anonymous> (file:///home/windchime-yk/.cache/deno/npm/registry.npmjs.org/@babel/runtime/7.26.7/helpers/regeneratorRuntime.js:133:17)
38+
🦋 error at Generator.next (file:///home/windchime-yk/.cache/deno/npm/registry.npmjs.org/@babel/runtime/7.26.7/helpers/regeneratorRuntime.js:74:21)
39+
🦋 error at asyncGeneratorStep (file:///home/windchime-yk/.cache/deno/npm/registry.npmjs.org/@babel/runtime/7.26.7/helpers/asyncToGenerator.js:3:17)
40+
🦋 error at _next (file:///home/windchime-yk/.cache/deno/npm/registry.npmjs.org/@babel/runtime/7.26.7/helpers/asyncToGenerator.js:17:9)
41+
🦋 error at eventLoopTick (ext:core/01_core.js:177:7) {
42+
🦋 error directory: '/home/windchime-yk/dev/playground/learn-jsr'
43+
🦋 error }
44+
```
45+
これは書いてあるとおり、今のプロジェクトに`package.json`が存在しないためエラーになっている
46+
実際のところ、Denoは`package.json`もカバーしているので利用可能かもしれないが、私個人が`deno.jsonc`でやっていきたいためchangesetsは使わない方針とする
47+
changesetsのDeno対応は開発リソースの都合でメンテナは着手しづらい状況になっているようで、コミュニティ側が対応しない限りは難しいと考えられる
48+
https://github.com/changesets/changesets/discussions/824
49+
50+
Deno公式は、標準ライブラリのリリースに自前のリリースライブラリである[`@deno/bump-workspaces`](https://jsr.io/@deno/bump-workspaces)を使っている
51+
Freshはリポジトリを見る限りでは手動な模様
52+
2553
## 公開先
2654
- [@whyk/greeting](https://jsr.io/@whyk/greeting)
2755

0 commit comments

Comments
 (0)