Skip to content

Commit c522ff1

Browse files
committed
chore: prepare for jsr publication
1 parent 7026523 commit c522ff1

File tree

3 files changed

+22
-1
lines changed

3 files changed

+22
-1
lines changed

Diff for: jsr.json

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"name": "@net7/helloasso-js",
3+
"version": "0.0.4",
4+
"exports": "./src/index.ts"
5+
}

Diff for: package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
"type": "module",
66
"scripts": {
77
"build": "bun run build.mjs",
8-
"prepublishOnly": "bun run build"
8+
"prepublishOnly": "bun run build",
9+
"publish": "npm publish && bunx jsr publish"
910
},
1011
"exports": {
1112
".": {

Diff for: set-version.sh

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# check if jq and sponge are installed
2+
if ! command -v jq &> /dev/null
3+
then
4+
echo "install jq and sponge"
5+
exit
6+
fi
7+
8+
if ! command -v sponge &> /dev/null
9+
then
10+
echo "install jq and sponge"
11+
exit
12+
fi
13+
14+
jq ".version = \"$1\"" package.json | sponge package.json
15+
jq ".version = \"$1\"" jsr.json | sponge jsr.json

0 commit comments

Comments
 (0)