Skip to content

Commit 84ad254

Browse files
authored
refactor: use bun instead of npm (#15)
(this should make it easier to work with and compile typescript)
1 parent d0bb8f5 commit 84ad254

File tree

5 files changed

+11
-2797
lines changed

5 files changed

+11
-2797
lines changed

.github/workflows/publish.yml

+8-22
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,9 @@
1-
name: 🚀 Publish to the Visual Studio Marketplace
1+
name: publish release to marketplace
2+
23
on:
34
push:
45
branches:
56
- main
6-
workflow_dispatch:
7-
inputs:
8-
version:
9-
description: The version to release (e.g. x.x.x or major, minor, patch)
10-
required: false
11-
no-publish:
12-
type: boolean
13-
description: Skip publishing to the marketplace
14-
default: false
157

168
permissions:
179
contents: write
@@ -21,23 +13,17 @@ jobs:
2113
runs-on: ubuntu-latest
2214
steps:
2315
- uses: actions/checkout@v4
24-
- uses: actions/setup-node@v4
25-
with:
26-
node-version: lts/*
27-
- run: npm clean-install
28-
29-
- if: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.version }}
30-
run: npm version ${{ github.event.inputs.version }} --no-git-tag-version
16+
- uses: oven-sh/setup-bun@v2
3117

3218
- run: |
33-
npm exec vsce package
19+
bun install
20+
bun run vsce package
3421
echo "filepath=$(ls *.vsix)" >> $GITHUB_ENV
35-
echo "version=$(npm pkg get version | tr -d \")" >> $GITHUB_ENV
22+
echo "version=$(ls *.vsix | grep -oE '\d+\.\d+\.\d+')" >> $GITHUB_ENV
3623
37-
- if: ${{ !github.event.inputs.no-publish }}
38-
env:
24+
- env:
3925
VSCE_PAT: ${{ secrets.VSCE_PAT }}
40-
run: npm exec vsce publish -- --packagePath $filepath
26+
run: bun run vsce publish --packagePath $filepath
4127

4228
- env:
4329
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.husky/commit-msg

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
#!/usr/bin/env sh
22

3-
echo "[commit-msg] ..."
4-
bun run commitlint --edit ${1}
3+
bun run commitlint --edit $1

.vscode/launch.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
{
2+
"version": "0.2.0",
23
"configurations": [
34
{
4-
"name": "Launch Extension",
5+
"name": "launch extension",
56
"type": "extensionHost",
67
"request": "launch",
78
"args": [

bun.lockb

109 KB
Binary file not shown.

0 commit comments

Comments
 (0)