mirror of
https://github.com/nbd-wtf/nostr-tools.git
synced 2025-12-08 16:28:49 +00:00
publish to jsr before npm.
This commit is contained in:
5
justfile
5
justfile
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user