publish to jsr before npm.

This commit is contained in:
fiatjaf 2025-05-12 05:26:30 -03:00
parent 4ba9c8886b
commit ca174e6cd8
1 changed files with 4 additions and 1 deletions

View File

@ -12,11 +12,14 @@ test-only file:
bun test {{file}}
publish: build
npm publish
# publish to jsr first because it is more strict and will catch some errors
perl -i -0pe "s/},\n \"optionalDependencies\": {\n/,/" package.json
jsr publish --allow-dirty
git checkout -- package.json
# then to npm
npm publish
format:
eslint --ext .ts --fix *.ts
prettier --write *.ts