Skip to content

Commit cb7c446

Browse files
committed
chore: use bun to execute scripts
We cannot convert the scripts to TypeScript without needing an additional build step as the workflow used to publish the package to NPM still requires Node.js.
1 parent 8b85ae2 commit cb7c446

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.github/workflows/release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
# https://docs.npmjs.com/generating-provenance-statements
2424
run: |
2525
npm install --force
26-
npm run build:lib
27-
npm run package
26+
node scripts
27+
node scripts/npm-package
2828
cd package
2929
npm publish --provenance --access public

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
"scripts": {
99
"dev": "bunx --bun astro dev",
1010
"build": "bunx --bun astro build",
11-
"build:lib": "node scripts",
12-
"package": "node scripts/npm-package",
11+
"build:lib": "bun scripts/index.js",
12+
"package": "bun scripts/npm-package.js",
1313
"test": "bun test tests/*.ts",
1414
"test:e2e": "playwright test",
1515
"format": "prettier --write .",

0 commit comments

Comments
 (0)