Skip to content

Commit 2386c78

Browse files
committed
feat: switch to component model for wit-bindgen-wasm
Time to eat our own dog food Signed-off-by: Gordon Smith <GordonJSmith@gmail.com>
1 parent c9c8d4d commit 2386c78

File tree

18 files changed

+1033
-1327
lines changed

18 files changed

+1033
-1327
lines changed

.github/workflows/ci.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ jobs:
1515
os: [ubuntu-latest, windows-latest, macos-latest]
1616
node-version: [22, 24]
1717
runs-on: ${{ matrix.os }}
18+
defaults:
19+
run:
20+
shell: bash
1821
permissions:
1922
contents: read
2023
issues: write
@@ -41,6 +44,9 @@ jobs:
4144
- name: Install dependencies
4245
run: npm ci
4346

47+
- name: Setup WASM build tools
48+
run: npm run setup-wasm
49+
4450
- name: Run tests
4551
run: npm test
4652

.vscodeignore

Lines changed: 12 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,12 @@
1-
.vscode/**
2-
.vscode-test/**
3-
.github/
4-
.gitignore
5-
node_modules/
6-
tests/
7-
commitlint.config.cjs
8-
src/**
9-
.yarnrc
10-
**/tsconfig.json
11-
**/.eslintrc.json
12-
**/*.map
13-
**/*.ts
14-
wit-bindgen-wasm/**
1+
# Exclude everything by default
2+
**
3+
4+
# Include only what the extension needs at runtime
5+
!dist/**
6+
!syntaxes/**
7+
!images/wit-icon.png
8+
!snippets.json
9+
!language-configuration.json
10+
!LICENSE
11+
!README.md
12+
!CHANGELOG.md

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ This extension is available on:
238238
This extension includes a WebAssembly component that requires the following tools for building:
239239

240240
- **Rust** (with `cargo`): Required for building the WebAssembly module
241-
- **wasm-pack v0.13.1**: Used specifically for the `wit-bindgen-wasm` subproject
241+
- **wasm-tools v1.245.0**: Used for embedding WIT metadata and creating WebAssembly components
242242

243243
You can install these dependencies by running:
244244
```bash

0 commit comments

Comments
 (0)