publish to jsr before npm.
This commit is contained in:
parent
4ba9c8886b
commit
ca174e6cd8
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
|
||||
|
|
Loading…
Reference in New Issue