Skip to content

Commit

Permalink
chore: use bun to execute scripts
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
metonym committed Apr 4, 2024
1 parent 8b85ae2 commit cb7c446
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
# https://docs.npmjs.com/generating-provenance-statements
run: |
npm install --force
npm run build:lib
npm run package
node scripts
node scripts/npm-package
cd package
npm publish --provenance --access public
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
"scripts": {
"dev": "bunx --bun astro dev",
"build": "bunx --bun astro build",
"build:lib": "node scripts",
"package": "node scripts/npm-package",
"build:lib": "bun scripts/index.js",
"package": "bun scripts/npm-package.js",
"test": "bun test tests/*.ts",
"test:e2e": "playwright test",
"format": "prettier --write .",
Expand Down

0 comments on commit cb7c446

Please sign in to comment.