From cb7c446686469d3eee34e5f306c069a44b8c54ff Mon Sep 17 00:00:00 2001 From: metonym Date: Thu, 4 Apr 2024 09:39:44 -0700 Subject: [PATCH] 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. --- .github/workflows/release.yml | 4 ++-- package.json | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 0b7f2b0c..12824bdc 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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 diff --git a/package.json b/package.json index 36d3d127..18318129 100644 --- a/package.json +++ b/package.json @@ -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 .",